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,9 @@
%% 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 @@ -40,6 +40,8 @@

-define(HTTP_REQUEST_METHOD_VALUES_TRACE, 'TRACE').

-define(HTTP_REQUEST_METHOD_VALUES_QUERY, 'QUERY').

-define(HTTP_REQUEST_METHOD_VALUES_OTHER, '_OTHER').


Expand All @@ -62,6 +64,6 @@
-define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code').


%% The matched route, that is, the path template in the format used by the respective server framework.
%% The matched route template for the request. This MUST be low-cardinality and include all static path segments, with dynamic path segments represented with placeholders.
%%
-define(HTTP_ROUTE, 'http.route').
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
Expand Up @@ -14,11 +14,21 @@
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% The string ID of the service instance.
%%
-define(SERVICE_INSTANCE_ID, 'service.instance.id').


%% Logical name of the service.
%%
-define(SERVICE_NAME, 'service.name').


%% The version string of the service API or implementation. The format is not defined by these conventions.
%% A namespace for `service.name`.
%%
-define(SERVICE_NAMESPACE, 'service.namespace').


%% The version string of the service component. The format is not defined by these conventions.
%%
-define(SERVICE_VERSION, 'service.version').
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

%%%------------------------------------------------------------------------
%% 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.
%%%-------------------------------------------------------------------------

%% Unique identifier for a particular build or compilation of the application.
-define(APP_BUILD_ID, 'app.build_id').


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


%% A number of frame renders that experienced jank.
-define(APP_JANK_FRAME_COUNT, 'app.jank.frame_count').


%% The time period, in seconds, for which this jank is being reported.
-define(APP_JANK_PERIOD, 'app.jank.period').


%% The minimum rendering threshold for this jank, in seconds.
-define(APP_JANK_THRESHOLD, 'app.jank.threshold').


%% 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 screen from other screens in the same application.
%%
-define(APP_SCREEN_ID, 'app.screen.id').


%% The name of an application screen.
-define(APP_SCREEN_NAME, 'app.screen.name').


%% 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 @@ -19,7 +19,7 @@
-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
Loading
Loading