Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% 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.
%%
-define(CODE_COLUMN_NUMBER, 'code.column.number').


%% 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.
%%
-define(CODE_FILE_PATH, 'code.file.path').


%% 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.
%%
-define(CODE_FUNCTION_NAME, 'code.function.name').


%% 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.
%%
-define(CODE_LINE_NUMBER, 'code.line.number').


%% 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.
%%
-define(CODE_STACKTRACE, 'code.stacktrace').
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% The name of a collection (table, container) within the database.
-define(DB_COLLECTION_NAME, 'db.collection.name').


%% The name of the database, fully qualified within the server address and port.
%%
-define(DB_NAMESPACE, 'db.namespace').


%% The number of queries included in a batch operation.
-define(DB_OPERATION_BATCH_SIZE, 'db.operation.batch.size').


%% The name of the operation or command being executed.
%%
-define(DB_OPERATION_NAME, 'db.operation.name').


%% Low cardinality summary of a database query.
%%
-define(DB_QUERY_SUMMARY, 'db.query.summary').


%% The database query being executed.
%%
-define(DB_QUERY_TEXT, 'db.query.text').


%% Database response status code.
-define(DB_RESPONSE_STATUS_CODE, 'db.response.status_code').


%% The name of a stored procedure within the database.
-define(DB_STORED_PROCEDURE_NAME, 'db.stored_procedure.name').


%% The database management system (DBMS) product as identified by the client instrumentation.
-define(DB_SYSTEM_NAME, 'db.system.name').

-define(DB_SYSTEM_NAME_VALUES_OTHER_SQL, 'other_sql').

-define(DB_SYSTEM_NAME_VALUES_SOFTWAREAG_ADABAS, 'softwareag.adabas').

-define(DB_SYSTEM_NAME_VALUES_ACTIAN_INGRES, 'actian.ingres').

-define(DB_SYSTEM_NAME_VALUES_AWS_DYNAMODB, 'aws.dynamodb').

-define(DB_SYSTEM_NAME_VALUES_AWS_REDSHIFT, 'aws.redshift').

-define(DB_SYSTEM_NAME_VALUES_AZURE_COSMOSDB, 'azure.cosmosdb').

-define(DB_SYSTEM_NAME_VALUES_INTERSYSTEMS_CACHE, 'intersystems.cache').

-define(DB_SYSTEM_NAME_VALUES_CASSANDRA, 'cassandra').

-define(DB_SYSTEM_NAME_VALUES_CLICKHOUSE, 'clickhouse').

-define(DB_SYSTEM_NAME_VALUES_COCKROACHDB, 'cockroachdb').

-define(DB_SYSTEM_NAME_VALUES_COUCHBASE, 'couchbase').

-define(DB_SYSTEM_NAME_VALUES_COUCHDB, 'couchdb').

-define(DB_SYSTEM_NAME_VALUES_DERBY, 'derby').

-define(DB_SYSTEM_NAME_VALUES_ELASTICSEARCH, 'elasticsearch').

-define(DB_SYSTEM_NAME_VALUES_FIREBIRDSQL, 'firebirdsql').

-define(DB_SYSTEM_NAME_VALUES_GCP_SPANNER, 'gcp.spanner').

-define(DB_SYSTEM_NAME_VALUES_GEODE, 'geode').

-define(DB_SYSTEM_NAME_VALUES_H2DATABASE, 'h2database').

-define(DB_SYSTEM_NAME_VALUES_HBASE, 'hbase').

-define(DB_SYSTEM_NAME_VALUES_HIVE, 'hive').

-define(DB_SYSTEM_NAME_VALUES_HSQLDB, 'hsqldb').

-define(DB_SYSTEM_NAME_VALUES_IBM_DB2, 'ibm.db2').

-define(DB_SYSTEM_NAME_VALUES_IBM_INFORMIX, 'ibm.informix').

-define(DB_SYSTEM_NAME_VALUES_IBM_NETEZZA, 'ibm.netezza').

-define(DB_SYSTEM_NAME_VALUES_INFLUXDB, 'influxdb').

-define(DB_SYSTEM_NAME_VALUES_INSTANTDB, 'instantdb').

-define(DB_SYSTEM_NAME_VALUES_MARIADB, 'mariadb').

-define(DB_SYSTEM_NAME_VALUES_MEMCACHED, 'memcached').

-define(DB_SYSTEM_NAME_VALUES_MONGODB, 'mongodb').

-define(DB_SYSTEM_NAME_VALUES_MICROSOFT_SQL_SERVER, 'microsoft.sql_server').

-define(DB_SYSTEM_NAME_VALUES_MYSQL, 'mysql').

-define(DB_SYSTEM_NAME_VALUES_NEO4J, 'neo4j').

-define(DB_SYSTEM_NAME_VALUES_OPENSEARCH, 'opensearch').

-define(DB_SYSTEM_NAME_VALUES_ORACLE_DB, 'oracle.db').

-define(DB_SYSTEM_NAME_VALUES_POSTGRESQL, 'postgresql').

-define(DB_SYSTEM_NAME_VALUES_REDIS, 'redis').

-define(DB_SYSTEM_NAME_VALUES_SAP_HANA, 'sap.hana').

-define(DB_SYSTEM_NAME_VALUES_SAP_MAXDB, 'sap.maxdb').

-define(DB_SYSTEM_NAME_VALUES_SQLITE, 'sqlite').

-define(DB_SYSTEM_NAME_VALUES_TERADATA, 'teradata').

-define(DB_SYSTEM_NAME_VALUES_TRINO, 'trino').

Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% 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.
%% @deprecated It's no longer recommended to record exceptions that are handled and do not escape the scope of a span.
%% Indicates that the exception is escaping the scope of the span.
%%
-define(EXCEPTION_ESCAPED, 'exception.escaped').

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
-define(NETWORK_PEER_PORT, 'network.peer.port').


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


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


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

Expand All @@ -54,7 +54,7 @@



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

-define(NETWORK_TYPE_VALUES_IPV4, 'ipv4').
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------
-include_lib("opentelemetry_semantic_conventions/include/attributes/android_attributes.hrl").


%% This attribute represents the state of the application.
%%
-define(ANDROID_APP_STATE, 'android.app.state').

-define(ANDROID_APP_STATE_VALUES_CREATED, 'created').

-define(ANDROID_APP_STATE_VALUES_BACKGROUND, 'background').

-define(ANDROID_APP_STATE_VALUES_FOREGROUND, 'foreground').



%% 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).
%%
-define(ANDROID_OS_API_LEVEL, 'android.os.api_level').

%% @deprecated Renamed to `android.app.state`
%% Deprecated. Use `android.app.state` instead.
-define(ANDROID_STATE, 'android.state').

-define(ANDROID_STATE_VALUES_CREATED, 'created').

-define(ANDROID_STATE_VALUES_BACKGROUND, 'background').

-define(ANDROID_STATE_VALUES_FOREGROUND, 'foreground').

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------
-include_lib("opentelemetry_semantic_conventions/include/attributes/app_attributes.hrl").


%% A unique identifier representing the installation of an application on a specific device
%%
-define(APP_INSTALLATION_ID, 'app.installation.id').


%% The x (horizontal) coordinate of a screen coordinate, in screen pixels.
-define(APP_SCREEN_COORDINATE_X, 'app.screen.coordinate.x').


%% The y (vertical) component of a screen coordinate, in screen pixels.
%%
-define(APP_SCREEN_COORDINATE_Y, 'app.screen.coordinate.y').


%% An identifier that uniquely differentiates this widget from other widgets in the same application.
%%
-define(APP_WIDGET_ID, 'app.widget.id').


%% The name of an application widget.
-define(APP_WIDGET_NAME, 'app.widget.name').
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------
-include_lib("opentelemetry_semantic_conventions/include/attributes/artifact_attributes.hrl").


%% 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.
%%
-define(ARTIFACT_ATTESTATION_FILENAME, 'artifact.attestation.filename').


%% 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).
%% 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**.
%%
-define(ARTIFACT_ATTESTATION_HASH, 'artifact.attestation.hash').

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------
-include_lib("opentelemetry_semantic_conventions/include/attributes/aws_attributes.hrl").


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


%% The AWS extended request ID as returned in the response header `x-amz-id-2`.
-define(AWS_EXTENDED_REQUEST_ID, 'aws.extended_request_id').


%% 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).
%%
-define(AWS_LAMBDA_INVOKED_ARN, 'aws.lambda.invoked_arn').
Expand All @@ -172,7 +178,7 @@
-define(AWS_LOG_STREAM_NAMES, 'aws.log.stream.names').


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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,50 @@
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------
-include_lib("opentelemetry_semantic_conventions/include/attributes/azure_attributes.hrl").

%% The unique identifier of the service request. It's generated by the Azure service and returned with the response.
-define(AZ_SERVICE_REQUEST_ID, 'az.service_request_id').

%% The unique identifier of the client instance.
-define(AZURE_CLIENT_ID, 'azure.client.id').


%% Cosmos client connection mode.
-define(AZURE_COSMOSDB_CONNECTION_MODE, 'azure.cosmosdb.connection.mode').

-define(AZURE_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY, 'gateway').

-define(AZURE_COSMOSDB_CONNECTION_MODE_VALUES_DIRECT, 'direct').



%% Account or request [consistency level](https://learn.microsoft.com/azure/cosmos-db/consistency-levels).
-define(AZURE_COSMOSDB_CONSISTENCY_LEVEL, 'azure.cosmosdb.consistency.level').

-define(AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUES_STRONG, 'Strong').

-define(AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUES_BOUNDED_STALENESS, 'BoundedStaleness').

-define(AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUES_SESSION, 'Session').

-define(AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUES_EVENTUAL, 'Eventual').

-define(AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUES_CONSISTENT_PREFIX, 'ConsistentPrefix').



%% List of regions contacted during operation in the order that they were contacted. If there is more than one region listed, it indicates that the operation was performed on multiple regions i.e. cross-regional call.
%%
-define(AZURE_COSMOSDB_OPERATION_CONTACTED_REGIONS, 'azure.cosmosdb.operation.contacted_regions').


%% The number of request units consumed by the operation.
%%
-define(AZURE_COSMOSDB_OPERATION_REQUEST_CHARGE, 'azure.cosmosdb.operation.request_charge').


%% Request payload size in bytes.
-define(AZURE_COSMOSDB_REQUEST_BODY_SIZE, 'azure.cosmosdb.request.body.size').


%% Cosmos DB sub status code.
-define(AZURE_COSMOSDB_RESPONSE_SUB_STATUS_CODE, 'azure.cosmosdb.response.sub_status_code').
Loading
Loading