Skip to content

Commit 07f9074

Browse files
Update to semantic-conventions 1.27.0 (#81)
* Update to semantic-conventions 1.27.0 * update contributing link * Include 1.26.0 in schemaUrlVersions --------- Co-authored-by: Jack Berg <[email protected]>
1 parent 2cab896 commit 07f9074

31 files changed

+1082
-189
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ generate semantic conventions classes from the release contents.
8181
## Contributing
8282

8383
Before you start - see OpenTelemetry
84-
general [contributing](https://github.com/open-telemetry/community/blob/main/CONTRIBUTING.md)
84+
general [contributing](https://github.com/open-telemetry/community/tree/main/guides/contributor)
8585
requirements and recommendations.
8686

8787
Make sure to review the projects [license](LICENSE) and sign

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ val snapshot = true
1111
// end
1212

1313
// The release version of https://github.com/open-telemetry/semantic-conventions used to generate classes
14-
var semanticConventionsVersion = "1.26.0"
14+
var semanticConventionsVersion = "1.27.0"
1515
val schemaUrlVersions = listOf(
1616
semanticConventionsVersion,
17+
"1.26.0",
1718
"1.25.0",
1819
"1.24.0",
1920
"1.23.1",
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.opentelemetry.semconv.incubating;
7+
8+
import static io.opentelemetry.api.common.AttributeKey.stringKey;
9+
10+
import io.opentelemetry.api.common.AttributeKey;
11+
12+
// DO NOT EDIT, this is an Auto-generated file from
13+
// buildscripts/templates/SemanticAttributes.java.j2
14+
@SuppressWarnings("unused")
15+
public final class ArtifactIncubatingAttributes {
16+
17+
/**
18+
* The provenance filename of the built attestation which directly relates to the build artifact
19+
* filename. This filename SHOULD accompany the artifact at publish time. See the <a
20+
* href="https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations">SLSA
21+
* Relationship</a> specification for more information.
22+
*/
23+
public static final AttributeKey<String> ARTIFACT_ATTESTATION_FILENAME =
24+
stringKey("artifact.attestation.filename");
25+
26+
/**
27+
* The full <a href="https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf">hash value (see
28+
* glossary)</a>, of the built attestation. Some envelopes in the software attestation space also
29+
* refer to this as the <a
30+
* href="https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec">digest</a>.
31+
*/
32+
public static final AttributeKey<String> ARTIFACT_ATTESTATION_HASH =
33+
stringKey("artifact.attestation.hash");
34+
35+
/** The id of the build <a href="https://slsa.dev/attestation-model">software attestation</a>. */
36+
public static final AttributeKey<String> ARTIFACT_ATTESTATION_ID =
37+
stringKey("artifact.attestation.id");
38+
39+
/**
40+
* The human readable file name of the artifact, typically generated during build and release
41+
* processes. Often includes the package name and version in the file name.
42+
*
43+
* <p>Notes:
44+
*
45+
* <ul>
46+
* <li>This file name can also act as the <a
47+
* href="https://slsa.dev/spec/v1.0/terminology#package-model">Package Name</a> in cases
48+
* where the package ecosystem maps accordingly. Additionally, the artifact <a
49+
* href="https://slsa.dev/spec/v1.0/terminology#software-supply-chain">can be published</a>
50+
* for others, but that is not a guarantee.
51+
* </ul>
52+
*/
53+
public static final AttributeKey<String> ARTIFACT_FILENAME = stringKey("artifact.filename");
54+
55+
/**
56+
* The full <a href="https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf">hash value (see
57+
* glossary)</a>, often found in checksum.txt on a release of the artifact and used to verify
58+
* package integrity.
59+
*
60+
* <p>Notes:
61+
*
62+
* <ul>
63+
* <li>The specific algorithm used to create the cryptographic hash value is not defined. In
64+
* situations where an artifact has multiple cryptographic hashes, it is up to the
65+
* implementer to choose which hash value to set here; this should be the most secure hash
66+
* algorithm that is suitable for the situation and consistent with the corresponding
67+
* attestation. The implementer can then provide the other hash values through an additional
68+
* set of attribute extensions as they deem necessary.
69+
* </ul>
70+
*/
71+
public static final AttributeKey<String> ARTIFACT_HASH = stringKey("artifact.hash");
72+
73+
/**
74+
* The <a href="https://github.com/package-url/purl-spec">Package URL</a> of the <a
75+
* href="https://slsa.dev/spec/v1.0/terminology#package-model">package artifact</a> provides a
76+
* standard way to identify and locate the packaged artifact.
77+
*/
78+
public static final AttributeKey<String> ARTIFACT_PURL = stringKey("artifact.purl");
79+
80+
/** The version of the artifact. */
81+
public static final AttributeKey<String> ARTIFACT_VERSION = stringKey("artifact.version");
82+
83+
private ArtifactIncubatingAttributes() {}
84+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.opentelemetry.semconv.incubating;
7+
8+
import static io.opentelemetry.api.common.AttributeKey.stringKey;
9+
10+
import io.opentelemetry.api.common.AttributeKey;
11+
12+
// DO NOT EDIT, this is an Auto-generated file from
13+
// buildscripts/templates/SemanticAttributes.java.j2
14+
@SuppressWarnings("unused")
15+
public final class AzIncubatingAttributes {
16+
17+
/**
18+
* The unique identifier of the service request. It's generated by the Azure service and returned
19+
* with the response.
20+
*/
21+
public static final AttributeKey<String> AZ_SERVICE_REQUEST_ID =
22+
stringKey("az.service_request_id");
23+
24+
private AzIncubatingAttributes() {}
25+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.opentelemetry.semconv.incubating;
7+
8+
import static io.opentelemetry.api.common.AttributeKey.stringKey;
9+
10+
import io.opentelemetry.api.common.AttributeKey;
11+
12+
// DO NOT EDIT, this is an Auto-generated file from
13+
// buildscripts/templates/SemanticAttributes.java.j2
14+
@SuppressWarnings("unused")
15+
public final class CicdIncubatingAttributes {
16+
17+
/** The human readable name of the pipeline within a CI/CD system. */
18+
public static final AttributeKey<String> CICD_PIPELINE_NAME = stringKey("cicd.pipeline.name");
19+
20+
/** The unique identifier of a pipeline run within a CI/CD system. */
21+
public static final AttributeKey<String> CICD_PIPELINE_RUN_ID = stringKey("cicd.pipeline.run.id");
22+
23+
/**
24+
* The human readable name of a task within a pipeline. Task here most closely aligns with a <a
25+
* href="https://en.wikipedia.org/wiki/Pipeline_(computing)">computing process</a> in a pipeline.
26+
* Other terms for tasks include commands, steps, and procedures.
27+
*/
28+
public static final AttributeKey<String> CICD_PIPELINE_TASK_NAME =
29+
stringKey("cicd.pipeline.task.name");
30+
31+
/** The unique identifier of a task run within a pipeline. */
32+
public static final AttributeKey<String> CICD_PIPELINE_TASK_RUN_ID =
33+
stringKey("cicd.pipeline.task.run.id");
34+
35+
/**
36+
* The <a href="https://en.wikipedia.org/wiki/URL">URL</a> of the pipeline run providing the
37+
* complete address in order to locate and identify the pipeline run.
38+
*/
39+
public static final AttributeKey<String> CICD_PIPELINE_TASK_RUN_URL_FULL =
40+
stringKey("cicd.pipeline.task.run.url.full");
41+
42+
/** The type of the task within a pipeline. */
43+
public static final AttributeKey<String> CICD_PIPELINE_TASK_TYPE =
44+
stringKey("cicd.pipeline.task.type");
45+
46+
// Enum definitions
47+
/** Values for {@link #CICD_PIPELINE_TASK_TYPE}. */
48+
public static final class CicdPipelineTaskTypeValues {
49+
/** build. */
50+
public static final String BUILD = "build";
51+
52+
/** test. */
53+
public static final String TEST = "test";
54+
55+
/** deploy. */
56+
public static final String DEPLOY = "deploy";
57+
58+
private CicdPipelineTaskTypeValues() {}
59+
}
60+
61+
private CicdIncubatingAttributes() {}
62+
}

semconv-incubating/src/main/java/io/opentelemetry/semconv/incubating/CloudIncubatingAttributes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public final class CloudIncubatingAttributes {
8181
* Take care not to use the &quot;invoked ARN&quot; directly but replace any <a
8282
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">alias
8383
* suffix</a> with the resolved function version, as the same runtime instance may be
84-
* invokable with multiple different aliases.
84+
* invocable with multiple different aliases.
8585
* <li><strong>GCP:</strong> The <a
8686
* href="https://cloud.google.com/iam/docs/full-resource-names">URI of the resource</a>
8787
* <li><strong>Azure:</strong> The <a

semconv-incubating/src/main/java/io/opentelemetry/semconv/incubating/ContainerIncubatingAttributes.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ public final class ContainerIncubatingAttributes {
4040
public static final AttributeKey<String> CONTAINER_COMMAND_LINE =
4141
stringKey("container.command_line");
4242

43-
/** The CPU state for this data point. */
43+
/**
44+
* Deprecated, use {@code cpu.mode} instead.
45+
*
46+
* @deprecated Deprecated, use `cpu.mode` instead.
47+
*/
48+
@Deprecated
4449
public static final AttributeKey<String> CONTAINER_CPU_STATE = stringKey("container.cpu.state");
4550

4651
/**
@@ -117,7 +122,12 @@ public final class ContainerIncubatingAttributes {
117122
public static final AttributeKey<String> CONTAINER_RUNTIME = stringKey("container.runtime");
118123

119124
// Enum definitions
120-
/** Values for {@link #CONTAINER_CPU_STATE}. */
125+
/**
126+
* Values for {@link #CONTAINER_CPU_STATE}.
127+
*
128+
* @deprecated Deprecated, use `cpu.mode` instead.
129+
*/
130+
@Deprecated
121131
public static final class ContainerCpuStateValues {
122132
/**
123133
* When tasks of the cgroup are in user mode (Linux). When all container processes are in user
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.opentelemetry.semconv.incubating;
7+
8+
import static io.opentelemetry.api.common.AttributeKey.stringKey;
9+
10+
import io.opentelemetry.api.common.AttributeKey;
11+
12+
// DO NOT EDIT, this is an Auto-generated file from
13+
// buildscripts/templates/SemanticAttributes.java.j2
14+
@SuppressWarnings("unused")
15+
public final class CpuIncubatingAttributes {
16+
17+
/** The mode of the CPU */
18+
public static final AttributeKey<String> CPU_MODE = stringKey("cpu.mode");
19+
20+
// Enum definitions
21+
/** Values for {@link #CPU_MODE}. */
22+
public static final class CpuModeValues {
23+
/** user. */
24+
public static final String USER = "user";
25+
26+
/** system. */
27+
public static final String SYSTEM = "system";
28+
29+
/** nice. */
30+
public static final String NICE = "nice";
31+
32+
/** idle. */
33+
public static final String IDLE = "idle";
34+
35+
/** iowait. */
36+
public static final String IOWAIT = "iowait";
37+
38+
/** interrupt. */
39+
public static final String INTERRUPT = "interrupt";
40+
41+
/** steal. */
42+
public static final String STEAL = "steal";
43+
44+
/** kernel. */
45+
public static final String KERNEL = "kernel";
46+
47+
private CpuModeValues() {}
48+
}
49+
50+
private CpuIncubatingAttributes() {}
51+
}

0 commit comments

Comments
 (0)