Skip to content

Commit 636d1d0

Browse files
authored
feat(semantic-conventions): update semantic conventions to v1.40.0 (#6438)
1 parent 1bffafa commit 636d1d0

File tree

7 files changed

+914
-55
lines changed

7 files changed

+914
-55
lines changed

scripts/semconv/changelog-gen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ ${summary.join('\n')}
385385
function main() {
386386
const [aVer, bVer] = process.argv.slice(2);
387387
const s = semconvChangelogGen(aVer, bVer);
388-
console.log('The following could be added to the top "Enhancement" section of "semantic-conventions/CHANGELOG.md":');
388+
console.log('The following could be added to the top "Features" section of "semantic-conventions/CHANGELOG.md":');
389389
console.log('\n- - -');
390390
console.log(s)
391391
console.log('- - -');

scripts/semconv/generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ ROOT_DIR="${SCRIPT_DIR}/../../"
77

88
# Get latest version by running `git tag -l --sort=version:refname | tail -1`
99
# ... in git@github.com:open-telemetry/semantic-conventions.git
10-
SPEC_VERSION=v1.39.0
10+
SPEC_VERSION=v1.40.0
1111
# ... in git@github.com:open-telemetry/weaver.git
12-
GENERATOR_VERSION=v0.20.0
12+
GENERATOR_VERSION=v0.21.2
1313

1414
# When running on windows and you are getting references to ";C" (like Telemetry;C)
1515
# then this is an issue with the bash shell, so first run the following in your shell:

semantic-conventions/CHANGELOG.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,119 @@ All notable changes to the semantic-conventions package will be documented in th
99

1010
### :rocket: Features
1111

12+
* feat: update semantic conventions to v1.40.0 [#NNNN]
13+
* Semantic Conventions v1.40.0: [changelog](https://github.com/open-telemetry/semantic-conventions/blob/main/CHANGELOG.md#v1400) | [latest docs](https://opentelemetry.io/docs/specs/semconv/)
14+
* `@opentelemetry/semantic-conventions` (stable) changes: *2 added exports*
15+
* `@opentelemetry/semantic-conventions/incubating` (unstable) changes: *11 newly deprecated exports, 56 added exports*
16+
17+
#### Stable changes in v1.40.0
18+
19+
<details open>
20+
<summary>2 added exports</summary>
21+
22+
```js
23+
ATTR_SERVICE_INSTANCE_ID // service.instance.id
24+
ATTR_SERVICE_NAMESPACE // service.namespace
25+
```
26+
27+
</details>
28+
29+
#### Unstable changes in v1.40.0
30+
31+
<details>
32+
<summary>11 newly deprecated exports</summary>
33+
34+
```js
35+
METRIC_RPC_CLIENT_REQUEST_SIZE // rpc.client.request.size: Removed, no replacement at this time.
36+
METRIC_RPC_CLIENT_RESPONSE_SIZE // rpc.client.response.size: Removed, no replacement at this time.
37+
METRIC_RPC_SERVER_REQUEST_SIZE // rpc.server.request.size: Removed, no replacement at this time.
38+
METRIC_RPC_SERVER_RESPONSE_SIZE // rpc.server.response.size: Removed, no replacement at this time.
39+
METRIC_SYSTEM_MEMORY_SHARED // system.memory.shared: Replaced by `system.memory.linux.shared`.
40+
EVENT_RPC_MESSAGE // rpc.message: Deprecated, no replacement at this time.
41+
ATTR_ERROR_MESSAGE // error.message: Use domain-specific error message attribute. For example, use `feature_flag.error.message` for feature flag errors.
42+
ATTR_RPC_MESSAGE_COMPRESSED_SIZE // rpc.message.compressed_size: Deprecated, no replacement at this time.
43+
ATTR_RPC_MESSAGE_ID // rpc.message.id: Deprecated, no replacement at this time.
44+
ATTR_RPC_MESSAGE_TYPE // rpc.message.type: Deprecated, no replacement at this time.
45+
ATTR_RPC_MESSAGE_UNCOMPRESSED_SIZE // rpc.message.uncompressed_size: Deprecated, no replacement at this time.
46+
```
47+
48+
</details>
49+
50+
<details>
51+
<summary>56 added exports</summary>
52+
53+
```js
54+
METRIC_JVM_FILE_DESCRIPTOR_LIMIT // jvm.file_descriptor.limit
55+
56+
METRIC_K8S_SERVICE_ENDPOINT_COUNT // k8s.service.endpoint.count
57+
METRIC_K8S_SERVICE_LOAD_BALANCER_INGRESS_COUNT // k8s.service.load_balancer.ingress.count
58+
59+
METRIC_SYSTEM_MEMORY_LINUX_SHARED // system.memory.linux.shared
60+
61+
EVENT_DB_CLIENT_OPERATION_EXCEPTION // db.client.operation.exception
62+
EVENT_HTTP_CLIENT_REQUEST_EXCEPTION // http.client.request.exception
63+
EVENT_HTTP_SERVER_REQUEST_EXCEPTION // http.server.request.exception
64+
EVENT_RPC_CLIENT_CALL_EXCEPTION // rpc.client.call.exception
65+
EVENT_RPC_SERVER_CALL_EXCEPTION // rpc.server.call.exception
66+
67+
ATTR_FEATURE_FLAG_ERROR_MESSAGE // feature_flag.error.message
68+
69+
ATTR_GCP_GCE_INSTANCE_GROUP_MANAGER_NAME // gcp.gce.instance_group_manager.name
70+
ATTR_GCP_GCE_INSTANCE_GROUP_MANAGER_REGION // gcp.gce.instance_group_manager.region
71+
ATTR_GCP_GCE_INSTANCE_GROUP_MANAGER_ZONE // gcp.gce.instance_group_manager.zone
72+
73+
ATTR_GEN_AI_AGENT_VERSION // gen_ai.agent.version
74+
GEN_AI_OPERATION_NAME_VALUE_RETRIEVAL // "retrieval"
75+
ATTR_GEN_AI_RETRIEVAL_DOCUMENTS // gen_ai.retrieval.documents
76+
ATTR_GEN_AI_RETRIEVAL_QUERY_TEXT // gen_ai.retrieval.query.text
77+
ATTR_GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS // gen_ai.usage.cache_creation.input_tokens
78+
ATTR_GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS // gen_ai.usage.cache_read.input_tokens
79+
80+
ATTR_K8S_SERVICE_ANNOTATION // (key) => `k8s.service.annotation.${key}`
81+
ATTR_K8S_SERVICE_ENDPOINT_ADDRESS_TYPE // k8s.service.endpoint.address_type
82+
K8S_SERVICE_ENDPOINT_ADDRESS_TYPE_VALUE_FQDN // "FQDN"
83+
K8S_SERVICE_ENDPOINT_ADDRESS_TYPE_VALUE_IPV4 // "IPv4"
84+
K8S_SERVICE_ENDPOINT_ADDRESS_TYPE_VALUE_IPV6 // "IPv6"
85+
ATTR_K8S_SERVICE_ENDPOINT_CONDITION // k8s.service.endpoint.condition
86+
K8S_SERVICE_ENDPOINT_CONDITION_VALUE_READY // "ready"
87+
K8S_SERVICE_ENDPOINT_CONDITION_VALUE_SERVING // "serving"
88+
K8S_SERVICE_ENDPOINT_CONDITION_VALUE_TERMINATING // "terminating"
89+
ATTR_K8S_SERVICE_ENDPOINT_ZONE // k8s.service.endpoint.zone
90+
ATTR_K8S_SERVICE_LABEL // (key) => `k8s.service.label.${key}`
91+
ATTR_K8S_SERVICE_NAME // k8s.service.name
92+
ATTR_K8S_SERVICE_PUBLISH_NOT_READY_ADDRESSES // k8s.service.publish_not_ready_addresses
93+
ATTR_K8S_SERVICE_SELECTOR // (key) => `k8s.service.selector.${key}`
94+
ATTR_K8S_SERVICE_TRAFFIC_DISTRIBUTION // k8s.service.traffic_distribution
95+
ATTR_K8S_SERVICE_TYPE // k8s.service.type
96+
K8S_SERVICE_TYPE_VALUE_CLUSTER_IP // "ClusterIP"
97+
K8S_SERVICE_TYPE_VALUE_EXTERNAL_NAME // "ExternalName"
98+
K8S_SERVICE_TYPE_VALUE_LOAD_BALANCER // "LoadBalancer"
99+
K8S_SERVICE_TYPE_VALUE_NODE_PORT // "NodePort"
100+
ATTR_K8S_SERVICE_UID // k8s.service.uid
101+
102+
ATTR_OPENAI_API_TYPE // openai.api.type
103+
OPENAI_API_TYPE_VALUE_CHAT_COMPLETIONS // "chat_completions"
104+
OPENAI_API_TYPE_VALUE_RESPONSES // "responses"
105+
106+
ATTR_ORACLE_DB_DOMAIN // oracle.db.domain
107+
ATTR_ORACLE_DB_INSTANCE_NAME // oracle.db.instance.name
108+
ATTR_ORACLE_DB_NAME // oracle.db.name
109+
ATTR_ORACLE_DB_PDB // oracle.db.pdb
110+
ATTR_ORACLE_DB_SERVICE // oracle.db.service
111+
ATTR_ORACLE_CLOUD_REALM // oracle_cloud.realm
112+
113+
ATTR_PPROF_SCOPE_DEFAULT_SAMPLE_TYPE // pprof.scope.default_sample_type
114+
ATTR_PPROF_SCOPE_SAMPLE_TYPE_ORDER // pprof.scope.sample_type_order
115+
116+
ATTR_SERVICE_CRITICALITY // service.criticality
117+
SERVICE_CRITICALITY_VALUE_CRITICAL // "critical"
118+
SERVICE_CRITICALITY_VALUE_HIGH // "high"
119+
SERVICE_CRITICALITY_VALUE_LOW // "low"
120+
SERVICE_CRITICALITY_VALUE_MEDIUM // "medium"
121+
```
122+
123+
</details>
124+
12125
### :bug: Bug Fixes
13126

14127
### :books: Documentation

0 commit comments

Comments
 (0)