Skip to content

Commit e6d9b0e

Browse files
committed
SemConv 1.33.0
1 parent 7faf931 commit e6d9b0e

File tree

167 files changed

+14647
-2092
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+14647
-2092
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
%%%------------------------------------------------------------------------
3+
%% Copyright The OpenTelemetry Authors
4+
%% Licensed under the Apache License, Version 2.0 (the "License");
5+
%% you may not use this file except in compliance with the License.
6+
%% You may obtain a copy of the License at
7+
%%
8+
%% http://www.apache.org/licenses/LICENSE-2.0
9+
%%
10+
%% Unless required by applicable law or agreed to in writing, software
11+
%% distributed under the License is distributed on an "AS IS" BASIS,
12+
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
%% See the License for the specific language governing permissions and
14+
%% limitations under the License.
15+
%%%-------------------------------------------------------------------------
16+
17+
%% The column number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Line'. This constraint is imposed to prevent redundancy and maintain data integrity.
18+
%%
19+
-define(CODE_COLUMN_NUMBER, 'code.column.number').
20+
21+
22+
%% The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity.
23+
%%
24+
-define(CODE_FILE_PATH, 'code.file.path').
25+
26+
27+
%% The method or function fully-qualified name without arguments. The value should fit the natural representation of the language runtime, which is also likely the same used within `code.stacktrace` attribute value. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity.
28+
%%
29+
-define(CODE_FUNCTION_NAME, 'code.function.name').
30+
31+
32+
%% The line number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Line'. This constraint is imposed to prevent redundancy and maintain data integrity.
33+
%%
34+
-define(CODE_LINE_NUMBER, 'code.line.number').
35+
36+
37+
%% A stacktrace as a string in the natural representation for the language runtime. The representation is identical to [`exception.stacktrace`](/docs/exceptions/exceptions-spans.md#stacktrace-representation). This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Location'. This constraint is imposed to prevent redundancy and maintain data integrity.
38+
%%
39+
-define(CODE_STACKTRACE, 'code.stacktrace').
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
2+
%%%------------------------------------------------------------------------
3+
%% Copyright The OpenTelemetry Authors
4+
%% Licensed under the Apache License, Version 2.0 (the "License");
5+
%% you may not use this file except in compliance with the License.
6+
%% You may obtain a copy of the License at
7+
%%
8+
%% http://www.apache.org/licenses/LICENSE-2.0
9+
%%
10+
%% Unless required by applicable law or agreed to in writing, software
11+
%% distributed under the License is distributed on an "AS IS" BASIS,
12+
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
%% See the License for the specific language governing permissions and
14+
%% limitations under the License.
15+
%%%-------------------------------------------------------------------------
16+
17+
%% The name of a collection (table, container) within the database.
18+
-define(DB_COLLECTION_NAME, 'db.collection.name').
19+
20+
21+
%% The name of the database, fully qualified within the server address and port.
22+
%%
23+
-define(DB_NAMESPACE, 'db.namespace').
24+
25+
26+
%% The number of queries included in a batch operation.
27+
-define(DB_OPERATION_BATCH_SIZE, 'db.operation.batch.size').
28+
29+
30+
%% The name of the operation or command being executed.
31+
%%
32+
-define(DB_OPERATION_NAME, 'db.operation.name').
33+
34+
35+
%% Low cardinality summary of a database query.
36+
%%
37+
-define(DB_QUERY_SUMMARY, 'db.query.summary').
38+
39+
40+
%% The database query being executed.
41+
%%
42+
-define(DB_QUERY_TEXT, 'db.query.text').
43+
44+
45+
%% Database response status code.
46+
-define(DB_RESPONSE_STATUS_CODE, 'db.response.status_code').
47+
48+
49+
%% The name of a stored procedure within the database.
50+
-define(DB_STORED_PROCEDURE_NAME, 'db.stored_procedure.name').
51+
52+
53+
%% The database management system (DBMS) product as identified by the client instrumentation.
54+
-define(DB_SYSTEM_NAME, 'db.system.name').
55+
56+
-define(DB_SYSTEM_NAME_VALUES_OTHER_SQL, 'other_sql').
57+
58+
-define(DB_SYSTEM_NAME_VALUES_SOFTWAREAG_ADABAS, 'softwareag.adabas').
59+
60+
-define(DB_SYSTEM_NAME_VALUES_ACTIAN_INGRES, 'actian.ingres').
61+
62+
-define(DB_SYSTEM_NAME_VALUES_AWS_DYNAMODB, 'aws.dynamodb').
63+
64+
-define(DB_SYSTEM_NAME_VALUES_AWS_REDSHIFT, 'aws.redshift').
65+
66+
-define(DB_SYSTEM_NAME_VALUES_AZURE_COSMOSDB, 'azure.cosmosdb').
67+
68+
-define(DB_SYSTEM_NAME_VALUES_INTERSYSTEMS_CACHE, 'intersystems.cache').
69+
70+
-define(DB_SYSTEM_NAME_VALUES_CASSANDRA, 'cassandra').
71+
72+
-define(DB_SYSTEM_NAME_VALUES_CLICKHOUSE, 'clickhouse').
73+
74+
-define(DB_SYSTEM_NAME_VALUES_COCKROACHDB, 'cockroachdb').
75+
76+
-define(DB_SYSTEM_NAME_VALUES_COUCHBASE, 'couchbase').
77+
78+
-define(DB_SYSTEM_NAME_VALUES_COUCHDB, 'couchdb').
79+
80+
-define(DB_SYSTEM_NAME_VALUES_DERBY, 'derby').
81+
82+
-define(DB_SYSTEM_NAME_VALUES_ELASTICSEARCH, 'elasticsearch').
83+
84+
-define(DB_SYSTEM_NAME_VALUES_FIREBIRDSQL, 'firebirdsql').
85+
86+
-define(DB_SYSTEM_NAME_VALUES_GCP_SPANNER, 'gcp.spanner').
87+
88+
-define(DB_SYSTEM_NAME_VALUES_GEODE, 'geode').
89+
90+
-define(DB_SYSTEM_NAME_VALUES_H2DATABASE, 'h2database').
91+
92+
-define(DB_SYSTEM_NAME_VALUES_HBASE, 'hbase').
93+
94+
-define(DB_SYSTEM_NAME_VALUES_HIVE, 'hive').
95+
96+
-define(DB_SYSTEM_NAME_VALUES_HSQLDB, 'hsqldb').
97+
98+
-define(DB_SYSTEM_NAME_VALUES_IBM_DB2, 'ibm.db2').
99+
100+
-define(DB_SYSTEM_NAME_VALUES_IBM_INFORMIX, 'ibm.informix').
101+
102+
-define(DB_SYSTEM_NAME_VALUES_IBM_NETEZZA, 'ibm.netezza').
103+
104+
-define(DB_SYSTEM_NAME_VALUES_INFLUXDB, 'influxdb').
105+
106+
-define(DB_SYSTEM_NAME_VALUES_INSTANTDB, 'instantdb').
107+
108+
-define(DB_SYSTEM_NAME_VALUES_MARIADB, 'mariadb').
109+
110+
-define(DB_SYSTEM_NAME_VALUES_MEMCACHED, 'memcached').
111+
112+
-define(DB_SYSTEM_NAME_VALUES_MONGODB, 'mongodb').
113+
114+
-define(DB_SYSTEM_NAME_VALUES_MICROSOFT_SQL_SERVER, 'microsoft.sql_server').
115+
116+
-define(DB_SYSTEM_NAME_VALUES_MYSQL, 'mysql').
117+
118+
-define(DB_SYSTEM_NAME_VALUES_NEO4J, 'neo4j').
119+
120+
-define(DB_SYSTEM_NAME_VALUES_OPENSEARCH, 'opensearch').
121+
122+
-define(DB_SYSTEM_NAME_VALUES_ORACLE_DB, 'oracle.db').
123+
124+
-define(DB_SYSTEM_NAME_VALUES_POSTGRESQL, 'postgresql').
125+
126+
-define(DB_SYSTEM_NAME_VALUES_REDIS, 'redis').
127+
128+
-define(DB_SYSTEM_NAME_VALUES_SAP_HANA, 'sap.hana').
129+
130+
-define(DB_SYSTEM_NAME_VALUES_SAP_MAXDB, 'sap.maxdb').
131+
132+
-define(DB_SYSTEM_NAME_VALUES_SQLITE, 'sqlite').
133+
134+
-define(DB_SYSTEM_NAME_VALUES_TERADATA, 'teradata').
135+
136+
-define(DB_SYSTEM_NAME_VALUES_TRINO, 'trino').
137+

apps/opentelemetry_semantic_conventions/include/attributes/exception_attributes.hrl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
%% See the License for the specific language governing permissions and
1414
%% limitations under the License.
1515
%%%-------------------------------------------------------------------------
16-
17-
%% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span.
16+
%% @deprecated It's no longer recommended to record exceptions that are handled and do not escape the scope of a span.
17+
%% Indicates that the exception is escaping the scope of the span.
1818
%%
1919
-define(EXCEPTION_ESCAPED, 'exception.escaped').
2020

apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
-define(NETWORK_PEER_PORT, 'network.peer.port').
3131

3232

33-
%% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent.
33+
%% [OSI application layer](https://wikipedia.org/wiki/Application_layer) or non-OSI equivalent.
3434
-define(NETWORK_PROTOCOL_NAME, 'network.protocol.name').
3535

3636

3737
%% The actual version of the protocol used for network communication.
3838
-define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version').
3939

4040

41-
%% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication).
41+
%% [OSI transport layer](https://wikipedia.org/wiki/Transport_layer) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication).
4242
%%
4343
-define(NETWORK_TRANSPORT, 'network.transport').
4444

@@ -54,7 +54,7 @@
5454

5555

5656

57-
%% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent.
57+
%% [OSI network layer](https://wikipedia.org/wiki/Network_layer) or non-OSI equivalent.
5858
-define(NETWORK_TYPE, 'network.type').
5959

6060
-define(NETWORK_TYPE_VALUES_IPV4, 'ipv4').
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
%%%------------------------------------------------------------------------
3+
%% Copyright The OpenTelemetry Authors
4+
%% Licensed under the Apache License, Version 2.0 (the "License");
5+
%% you may not use this file except in compliance with the License.
6+
%% You may obtain a copy of the License at
7+
%%
8+
%% http://www.apache.org/licenses/LICENSE-2.0
9+
%%
10+
%% Unless required by applicable law or agreed to in writing, software
11+
%% distributed under the License is distributed on an "AS IS" BASIS,
12+
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
%% See the License for the specific language governing permissions and
14+
%% limitations under the License.
15+
%%%-------------------------------------------------------------------------
16+
-include_lib("opentelemetry_semantic_conventions/include/attributes/android_attributes.hrl").
17+
18+
19+
%% This attribute represents the state of the application.
20+
%%
21+
-define(ANDROID_APP_STATE, 'android.app.state').
22+
23+
-define(ANDROID_APP_STATE_VALUES_CREATED, 'created').
24+
25+
-define(ANDROID_APP_STATE_VALUES_BACKGROUND, 'background').
26+
27+
-define(ANDROID_APP_STATE_VALUES_FOREGROUND, 'foreground').
28+
29+
30+
31+
%% Uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found [here](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels).
32+
%%
33+
-define(ANDROID_OS_API_LEVEL, 'android.os.api_level').
34+
35+
%% @deprecated Renamed to `android.app.state`
36+
%% Deprecated. Use `android.app.state` instead.
37+
-define(ANDROID_STATE, 'android.state').
38+
39+
-define(ANDROID_STATE_VALUES_CREATED, 'created').
40+
41+
-define(ANDROID_STATE_VALUES_BACKGROUND, 'background').
42+
43+
-define(ANDROID_STATE_VALUES_FOREGROUND, 'foreground').
44+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
%%%------------------------------------------------------------------------
3+
%% Copyright The OpenTelemetry Authors
4+
%% Licensed under the Apache License, Version 2.0 (the "License");
5+
%% you may not use this file except in compliance with the License.
6+
%% You may obtain a copy of the License at
7+
%%
8+
%% http://www.apache.org/licenses/LICENSE-2.0
9+
%%
10+
%% Unless required by applicable law or agreed to in writing, software
11+
%% distributed under the License is distributed on an "AS IS" BASIS,
12+
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
%% See the License for the specific language governing permissions and
14+
%% limitations under the License.
15+
%%%-------------------------------------------------------------------------
16+
-include_lib("opentelemetry_semantic_conventions/include/attributes/app_attributes.hrl").
17+
18+
19+
%% A unique identifier representing the installation of an application on a specific device
20+
%%
21+
-define(APP_INSTALLATION_ID, 'app.installation.id').
22+
23+
24+
%% The x (horizontal) coordinate of a screen coordinate, in screen pixels.
25+
-define(APP_SCREEN_COORDINATE_X, 'app.screen.coordinate.x').
26+
27+
28+
%% The y (vertical) component of a screen coordinate, in screen pixels.
29+
%%
30+
-define(APP_SCREEN_COORDINATE_Y, 'app.screen.coordinate.y').
31+
32+
33+
%% An identifier that uniquely differentiates this widget from other widgets in the same application.
34+
%%
35+
-define(APP_WIDGET_ID, 'app.widget.id').
36+
37+
38+
%% The name of an application widget.
39+
-define(APP_WIDGET_NAME, 'app.widget.name').

apps/opentelemetry_semantic_conventions/include/incubating/attributes/artifact_attributes.hrl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
%% See the License for the specific language governing permissions and
1414
%% limitations under the License.
1515
%%%-------------------------------------------------------------------------
16+
-include_lib("opentelemetry_semantic_conventions/include/attributes/artifact_attributes.hrl").
17+
1618

1719
%% The provenance filename of the built attestation which directly relates to the build artifact filename. This filename SHOULD accompany the artifact at publish time. See the [SLSA Relationship](https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations) specification for more information.
1820
%%
1921
-define(ARTIFACT_ATTESTATION_FILENAME, 'artifact.attestation.filename').
2022

2123

22-
%% The full [hash value (see glossary)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf), of the built attestation. Some envelopes in the software attestation space also refer to this as the [digest](https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec).
24+
%% The full [hash value (see glossary)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf), of the built attestation. Some envelopes in the [software attestation space](https://github.com/in-toto/attestation/tree/main/spec) also refer to this as the **digest**.
2325
%%
2426
-define(ARTIFACT_ATTESTATION_HASH, 'artifact.attestation.hash').
2527

apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
%% See the License for the specific language governing permissions and
1414
%% limitations under the License.
1515
%%%-------------------------------------------------------------------------
16+
-include_lib("opentelemetry_semantic_conventions/include/attributes/aws_attributes.hrl").
17+
1618

1719
%% The JSON-serialized value of each item in the `AttributeDefinitions` request field.
1820
-define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions').
@@ -147,6 +149,10 @@
147149
-define(AWS_EKS_CLUSTER_ARN, 'aws.eks.cluster.arn').
148150

149151

152+
%% The AWS extended request ID as returned in the response header `x-amz-id-2`.
153+
-define(AWS_EXTENDED_REQUEST_ID, 'aws.extended_request_id').
154+
155+
150156
%% The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable).
151157
%%
152158
-define(AWS_LAMBDA_INVOKED_ARN, 'aws.lambda.invoked_arn').
@@ -172,7 +178,7 @@
172178
-define(AWS_LOG_STREAM_NAMES, 'aws.log.stream.names').
173179

174180

175-
%% The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`.
181+
%% The AWS request ID as returned in the response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`.
176182
-define(AWS_REQUEST_ID, 'aws.request_id').
177183

178184

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
%%%------------------------------------------------------------------------
3+
%% Copyright The OpenTelemetry Authors
4+
%% Licensed under the Apache License, Version 2.0 (the "License");
5+
%% you may not use this file except in compliance with the License.
6+
%% You may obtain a copy of the License at
7+
%%
8+
%% http://www.apache.org/licenses/LICENSE-2.0
9+
%%
10+
%% Unless required by applicable law or agreed to in writing, software
11+
%% distributed under the License is distributed on an "AS IS" BASIS,
12+
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
%% See the License for the specific language governing permissions and
14+
%% limitations under the License.
15+
%%%-------------------------------------------------------------------------
16+
-include_lib("opentelemetry_semantic_conventions/include/attributes/az_attributes.hrl").
17+
18+
19+
%% [Azure Resource Provider Namespace](https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers) as recognized by the client.
20+
%%
21+
-define(AZ_NAMESPACE, 'az.namespace').
22+
23+
24+
%% The unique identifier of the service request. It's generated by the Azure service and returned with the response.
25+
-define(AZ_SERVICE_REQUEST_ID, 'az.service_request_id').

0 commit comments

Comments
 (0)