UNPKG

@opentelemetry/semantic-conventions

Version:
1,014 lines 79 kB
"use strict"; /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1 = exports.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0 = exports.ATTR_DOTNET_GC_HEAP_GENERATION = exports.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_TEST = exports.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_STAGING = exports.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_PRODUCTION = exports.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_DEVELOPMENT = exports.ATTR_DEPLOYMENT_ENVIRONMENT_NAME = exports.DB_SYSTEM_NAME_VALUE_POSTGRESQL = exports.DB_SYSTEM_NAME_VALUE_MYSQL = exports.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER = exports.DB_SYSTEM_NAME_VALUE_MARIADB = exports.ATTR_DB_SYSTEM_NAME = exports.ATTR_DB_STORED_PROCEDURE_NAME = exports.ATTR_DB_RESPONSE_STATUS_CODE = exports.ATTR_DB_QUERY_TEXT = exports.ATTR_DB_QUERY_SUMMARY = exports.ATTR_DB_OPERATION_NAME = exports.ATTR_DB_OPERATION_BATCH_SIZE = exports.ATTR_DB_NAMESPACE = exports.ATTR_DB_COLLECTION_NAME = exports.ATTR_CONTAINER_IMAGE_TAGS = exports.ATTR_CONTAINER_IMAGE_REPO_DIGESTS = exports.ATTR_CONTAINER_IMAGE_NAME = exports.ATTR_CONTAINER_ID = exports.ATTR_CODE_STACKTRACE = exports.ATTR_CODE_LINE_NUMBER = exports.ATTR_CODE_FUNCTION_NAME = exports.ATTR_CODE_FILE_PATH = exports.ATTR_CODE_COLUMN_NUMBER = exports.ATTR_CLIENT_PORT = exports.ATTR_CLIENT_ADDRESS = exports.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED = exports.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS = exports.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE = exports.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS = exports.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK = exports.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED = exports.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED = exports.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER = exports.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER = exports.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED = exports.ATTR_ASPNETCORE_RATE_LIMITING_RESULT = exports.ATTR_ASPNETCORE_RATE_LIMITING_POLICY = exports.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE = exports.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED = exports.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED = exports.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED = exports.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED = exports.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT = void 0; exports.ATTR_K8S_DAEMONSET_LABEL = exports.ATTR_K8S_DAEMONSET_ANNOTATION = exports.ATTR_K8S_CRONJOB_UID = exports.ATTR_K8S_CRONJOB_NAME = exports.ATTR_K8S_CRONJOB_LABEL = exports.ATTR_K8S_CRONJOB_ANNOTATION = exports.ATTR_K8S_CONTAINER_RESTART_COUNT = exports.ATTR_K8S_CONTAINER_NAME = exports.ATTR_K8S_CLUSTER_UID = exports.ATTR_K8S_CLUSTER_NAME = exports.JVM_THREAD_STATE_VALUE_WAITING = exports.JVM_THREAD_STATE_VALUE_TIMED_WAITING = exports.JVM_THREAD_STATE_VALUE_TERMINATED = exports.JVM_THREAD_STATE_VALUE_RUNNABLE = exports.JVM_THREAD_STATE_VALUE_NEW = exports.JVM_THREAD_STATE_VALUE_BLOCKED = exports.ATTR_JVM_THREAD_STATE = exports.ATTR_JVM_THREAD_DAEMON = exports.JVM_MEMORY_TYPE_VALUE_NON_HEAP = exports.JVM_MEMORY_TYPE_VALUE_HEAP = exports.ATTR_JVM_MEMORY_TYPE = exports.ATTR_JVM_MEMORY_POOL_NAME = exports.ATTR_JVM_GC_NAME = exports.ATTR_JVM_GC_ACTION = exports.ATTR_HTTP_ROUTE = exports.ATTR_HTTP_RESPONSE_STATUS_CODE = exports.ATTR_HTTP_RESPONSE_HEADER = exports.ATTR_HTTP_REQUEST_RESEND_COUNT = exports.ATTR_HTTP_REQUEST_METHOD_ORIGINAL = exports.HTTP_REQUEST_METHOD_VALUE_TRACE = exports.HTTP_REQUEST_METHOD_VALUE_PUT = exports.HTTP_REQUEST_METHOD_VALUE_POST = exports.HTTP_REQUEST_METHOD_VALUE_PATCH = exports.HTTP_REQUEST_METHOD_VALUE_OPTIONS = exports.HTTP_REQUEST_METHOD_VALUE_HEAD = exports.HTTP_REQUEST_METHOD_VALUE_GET = exports.HTTP_REQUEST_METHOD_VALUE_DELETE = exports.HTTP_REQUEST_METHOD_VALUE_CONNECT = exports.HTTP_REQUEST_METHOD_VALUE_OTHER = exports.ATTR_HTTP_REQUEST_METHOD = exports.ATTR_HTTP_REQUEST_HEADER = exports.ATTR_EXCEPTION_TYPE = exports.ATTR_EXCEPTION_STACKTRACE = exports.ATTR_EXCEPTION_MESSAGE = exports.ATTR_EXCEPTION_ESCAPED = exports.ERROR_TYPE_VALUE_OTHER = exports.ATTR_ERROR_TYPE = exports.DOTNET_GC_HEAP_GENERATION_VALUE_POH = exports.DOTNET_GC_HEAP_GENERATION_VALUE_LOH = exports.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2 = void 0; exports.ATTR_OTEL_SCOPE_VERSION = exports.ATTR_OTEL_SCOPE_NAME = exports.ATTR_OTEL_EVENT_NAME = exports.NETWORK_TYPE_VALUE_IPV6 = exports.NETWORK_TYPE_VALUE_IPV4 = exports.ATTR_NETWORK_TYPE = exports.NETWORK_TRANSPORT_VALUE_UNIX = exports.NETWORK_TRANSPORT_VALUE_UDP = exports.NETWORK_TRANSPORT_VALUE_TCP = exports.NETWORK_TRANSPORT_VALUE_QUIC = exports.NETWORK_TRANSPORT_VALUE_PIPE = exports.ATTR_NETWORK_TRANSPORT = exports.ATTR_NETWORK_PROTOCOL_VERSION = exports.ATTR_NETWORK_PROTOCOL_NAME = exports.ATTR_NETWORK_PEER_PORT = exports.ATTR_NETWORK_PEER_ADDRESS = exports.ATTR_NETWORK_LOCAL_PORT = exports.ATTR_NETWORK_LOCAL_ADDRESS = exports.ATTR_K8S_STATEFULSET_UID = exports.ATTR_K8S_STATEFULSET_NAME = exports.ATTR_K8S_STATEFULSET_LABEL = exports.ATTR_K8S_STATEFULSET_ANNOTATION = exports.ATTR_K8S_REPLICASET_UID = exports.ATTR_K8S_REPLICASET_NAME = exports.ATTR_K8S_REPLICASET_LABEL = exports.ATTR_K8S_REPLICASET_ANNOTATION = exports.ATTR_K8S_POD_UID = exports.ATTR_K8S_POD_START_TIME = exports.ATTR_K8S_POD_NAME = exports.ATTR_K8S_POD_LABEL = exports.ATTR_K8S_POD_IP = exports.ATTR_K8S_POD_HOSTNAME = exports.ATTR_K8S_POD_ANNOTATION = exports.ATTR_K8S_NODE_UID = exports.ATTR_K8S_NODE_NAME = exports.ATTR_K8S_NODE_LABEL = exports.ATTR_K8S_NODE_ANNOTATION = exports.ATTR_K8S_NAMESPACE_NAME = exports.ATTR_K8S_NAMESPACE_LABEL = exports.ATTR_K8S_NAMESPACE_ANNOTATION = exports.ATTR_K8S_JOB_UID = exports.ATTR_K8S_JOB_NAME = exports.ATTR_K8S_JOB_LABEL = exports.ATTR_K8S_JOB_ANNOTATION = exports.ATTR_K8S_DEPLOYMENT_UID = exports.ATTR_K8S_DEPLOYMENT_NAME = exports.ATTR_K8S_DEPLOYMENT_LABEL = exports.ATTR_K8S_DEPLOYMENT_ANNOTATION = exports.ATTR_K8S_DAEMONSET_UID = exports.ATTR_K8S_DAEMONSET_NAME = void 0; exports.ATTR_USER_AGENT_ORIGINAL = exports.ATTR_URL_SCHEME = exports.ATTR_URL_QUERY = exports.ATTR_URL_PATH = exports.ATTR_URL_FULL = exports.ATTR_URL_FRAGMENT = exports.ATTR_TELEMETRY_SDK_VERSION = exports.ATTR_TELEMETRY_SDK_NAME = exports.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS = exports.TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT = exports.TELEMETRY_SDK_LANGUAGE_VALUE_RUST = exports.TELEMETRY_SDK_LANGUAGE_VALUE_RUBY = exports.TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON = exports.TELEMETRY_SDK_LANGUAGE_VALUE_PHP = exports.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS = exports.TELEMETRY_SDK_LANGUAGE_VALUE_KOTLIN = exports.TELEMETRY_SDK_LANGUAGE_VALUE_JAVA = exports.TELEMETRY_SDK_LANGUAGE_VALUE_GO = exports.TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG = exports.TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET = exports.TELEMETRY_SDK_LANGUAGE_VALUE_CPP = exports.ATTR_TELEMETRY_SDK_LANGUAGE = exports.ATTR_TELEMETRY_DISTRO_VERSION = exports.ATTR_TELEMETRY_DISTRO_NAME = exports.SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS = exports.SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS = exports.SIGNALR_TRANSPORT_VALUE_LONG_POLLING = exports.ATTR_SIGNALR_TRANSPORT = exports.SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT = exports.SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE = exports.SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN = exports.ATTR_SIGNALR_CONNECTION_STATUS = exports.ATTR_SERVICE_VERSION = exports.ATTR_SERVICE_NAMESPACE = exports.ATTR_SERVICE_NAME = exports.ATTR_SERVICE_INSTANCE_ID = exports.ATTR_SERVER_PORT = exports.ATTR_SERVER_ADDRESS = exports.ATTR_OTEL_STATUS_DESCRIPTION = exports.OTEL_STATUS_CODE_VALUE_OK = exports.OTEL_STATUS_CODE_VALUE_ERROR = exports.ATTR_OTEL_STATUS_CODE = void 0; //---------------------------------------------------------------------------------------------------------- // DO NOT EDIT, this is an Auto-generated file from scripts/semconv/templates/registry/stable/attributes.ts.j2 //---------------------------------------------------------------------------------------------------------- /** * ASP.NET Core exception middleware handling result. * * @example handled * @example unhandled */ exports.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT = 'aspnetcore.diagnostics.exception.result'; /** * Enum value "aborted" for attribute {@link ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT}. * * Exception handling didn't run because the request was aborted. */ exports.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED = "aborted"; /** * Enum value "handled" for attribute {@link ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT}. * * Exception was handled by the exception handling middleware. */ exports.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED = "handled"; /** * Enum value "skipped" for attribute {@link ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT}. * * Exception handling was skipped because the response had started. */ exports.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED = "skipped"; /** * Enum value "unhandled" for attribute {@link ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT}. * * Exception was not handled by the exception handling middleware. */ exports.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED = "unhandled"; /** * Full type name of the [`IExceptionHandler`](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler) implementation that handled the exception. * * @example Contoso.MyHandler */ exports.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE = 'aspnetcore.diagnostics.handler.type'; /** * Rate limiting policy name. * * @example fixed * @example sliding * @example token */ exports.ATTR_ASPNETCORE_RATE_LIMITING_POLICY = 'aspnetcore.rate_limiting.policy'; /** * Rate-limiting result, shows whether the lease was acquired or contains a rejection reason * * @example acquired * @example request_canceled */ exports.ATTR_ASPNETCORE_RATE_LIMITING_RESULT = 'aspnetcore.rate_limiting.result'; /** * Enum value "acquired" for attribute {@link ATTR_ASPNETCORE_RATE_LIMITING_RESULT}. * * Lease was acquired */ exports.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED = "acquired"; /** * Enum value "endpoint_limiter" for attribute {@link ATTR_ASPNETCORE_RATE_LIMITING_RESULT}. * * Lease request was rejected by the endpoint limiter */ exports.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER = "endpoint_limiter"; /** * Enum value "global_limiter" for attribute {@link ATTR_ASPNETCORE_RATE_LIMITING_RESULT}. * * Lease request was rejected by the global limiter */ exports.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER = "global_limiter"; /** * Enum value "request_canceled" for attribute {@link ATTR_ASPNETCORE_RATE_LIMITING_RESULT}. * * Lease request was canceled */ exports.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED = "request_canceled"; /** * Flag indicating if request was handled by the application pipeline. * * @example true */ exports.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED = 'aspnetcore.request.is_unhandled'; /** * A value that indicates whether the matched route is a fallback route. * * @example true */ exports.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK = 'aspnetcore.routing.is_fallback'; /** * Match result - success or failure * * @example success * @example failure */ exports.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS = 'aspnetcore.routing.match_status'; /** * Enum value "failure" for attribute {@link ATTR_ASPNETCORE_ROUTING_MATCH_STATUS}. * * Match failed */ exports.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE = "failure"; /** * Enum value "success" for attribute {@link ATTR_ASPNETCORE_ROUTING_MATCH_STATUS}. * * Match succeeded */ exports.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS = "success"; /** * A value that indicates whether the user is authenticated. * * @example true */ exports.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED = 'aspnetcore.user.is_authenticated'; /** * Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. * * @example client.example.com * @example 10.1.2.80 * @example /tmp/my.sock * * @note When observed from the server side, and when communicating through an intermediary, `client.address` **SHOULD** represent the client address behind any intermediaries, for example proxies, if it's available. */ exports.ATTR_CLIENT_ADDRESS = 'client.address'; /** * Client port number. * * @example 65123 * * @note When observed from the server side, and when communicating through an intermediary, `client.port` **SHOULD** represent the client port behind any intermediaries, for example proxies, if it's available. */ exports.ATTR_CLIENT_PORT = 'client.port'; /** * 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. * * @example 16 */ exports.ATTR_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. * * @example "/usr/local/MyApplication/content_root/app/index.php" */ exports.ATTR_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. * * @example com.example.MyHttpService.serveRequest * @example GuzzleHttp\\Client::transfer * @example fopen * * @note Values and format depends on each language runtime, thus it is impossible to provide an exhaustive list of examples. * The values are usually the same (or prefixes of) the ones found in native stack trace representation stored in * `code.stacktrace` without information on arguments. * * Examples: * * - Java method: `com.example.MyHttpService.serveRequest` * - Java anonymous class method: `com.mycompany.Main$1.myMethod` * - Java lambda method: `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod` * - PHP function: `GuzzleHttp\Client::transfer` * - Go function: `github.com/my/repo/pkg.foo.func5` * - Elixir: `OpenTelemetry.Ctx.new` * - Erlang: `opentelemetry_ctx:new` * - Rust: `playground::my_module::my_cool_func` * - C function: `fopen` */ exports.ATTR_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. * * @example 42 */ exports.ATTR_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. * * @example "at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at com.example.GenerateTrace.main(GenerateTrace.java:5)\\n" */ exports.ATTR_CODE_STACKTRACE = 'code.stacktrace'; /** * Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/containers/run/#container-identification). The UUID might be abbreviated. * * @example a3bf90e006b2 */ exports.ATTR_CONTAINER_ID = 'container.id'; /** * Name of the image the container was built on. * * @example gcr.io/opentelemetry/operator */ exports.ATTR_CONTAINER_IMAGE_NAME = 'container.image.name'; /** * Repo digests of the container image as provided by the container runtime. * * @example ["example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"] * * @note [Docker](https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect) and [CRI](https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238) report those under the `RepoDigests` field. */ exports.ATTR_CONTAINER_IMAGE_REPO_DIGESTS = 'container.image.repo_digests'; /** * Container image tags. An example can be found in [Docker Image Inspect](https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect). Should be only the `<tag>` section of the full name for example from `registry.example.com/my-org/my-image:<tag>`. * * @example ["v1.27.1", "3.5.7-0"] */ exports.ATTR_CONTAINER_IMAGE_TAGS = 'container.image.tags'; /** * The name of a collection (table, container) within the database. * * @example public.users * @example customers * * @note It is **RECOMMENDED** to capture the value as provided by the application * without attempting to do any case normalization. * * The collection name **SHOULD NOT** be extracted from `db.query.text`, * when the database system supports query text with multiple collections * in non-batch operations. * * For batch operations, if the individual operations are known to have the same * collection name then that collection name **SHOULD** be used. */ exports.ATTR_DB_COLLECTION_NAME = 'db.collection.name'; /** * The name of the database, fully qualified within the server address and port. * * @example customers * @example test.users * * @note If a database system has multiple namespace components, they **SHOULD** be concatenated from the most general to the most specific namespace component, using `|` as a separator between the components. Any missing components (and their associated separators) **SHOULD** be omitted. * Semantic conventions for individual database systems **SHOULD** document what `db.namespace` means in the context of that system. * It is **RECOMMENDED** to capture the value as provided by the application without attempting to do any case normalization. */ exports.ATTR_DB_NAMESPACE = 'db.namespace'; /** * The number of database operations included in a batch operation. * * @example 2 * @example 3 * @example 4 * * @note Except for empty batch requests described below, a batch operation contains two * or more database operations explicitly submitted as separate operations in a single * client call, protocol message, or database command. * * Requests to batch APIs that contain only one operation **SHOULD** be modeled as single * operations, not as batch operations. * * A database call is not a batch operation solely because one operation accepts * multiple operands, such as keys, rows, documents, points, or other data elements, * including Redis [`MGET`](https://redis.io/docs/latest/commands/mget/) with * multiple keys. * * In batch APIs that execute the same parameterized operation with parameter sets, * each parameter set represents one database operation for determining whether the * request is a batch operation. Requests with only one parameter set **SHOULD** be modeled * as single operations, not as batch operations. * * `db.operation.batch.size` **SHOULD** be set to the number of operations in the batch. * It **SHOULD NOT** be set for non-batch operations. * * A request to execute a batch operation with no operations **SHOULD** also be treated * as a batch operation, and `db.operation.batch.size` **SHOULD** be set to `0`. */ exports.ATTR_DB_OPERATION_BATCH_SIZE = 'db.operation.batch.size'; /** * The name of the operation or command being executed. * * @example findAndModify * @example HMSET * @example SELECT * * @note It is **RECOMMENDED** to capture the value as provided by the application * without attempting to do any case normalization. * * The operation name **SHOULD NOT** be extracted from `db.query.text`, * when the database system supports query text with multiple operations * in non-batch operations. * * If spaces can occur in the operation name, multiple consecutive spaces * **SHOULD** be normalized to a single space. * * For batch operations, if the individual operations are known to have the same operation name * then that operation name **SHOULD** be used prepended by `BATCH `, * otherwise `db.operation.name` **SHOULD** be `BATCH` or some other database * system specific term if more applicable. */ exports.ATTR_DB_OPERATION_NAME = 'db.operation.name'; /** * Low cardinality summary of a database query. * * @example SELECT wuser_table * @example INSERT shipping_details SELECT orders * @example get user by id * * @note The query summary describes a class of database queries and is useful * as a grouping key, especially when analyzing telemetry for database * calls involving complex queries. * * Summary may be available to the instrumentation through * instrumentation hooks or other means. If it is not available, instrumentations * that support query parsing **SHOULD** generate a summary following * [Generating query summary](/docs/db/database-spans.md#generating-a-summary-of-the-query) * section. * * For batch operations, if the individual operations are known to have the same query summary * then that query summary **SHOULD** be used prepended by `BATCH `, * otherwise `db.query.summary` **SHOULD** be `BATCH` or some other database * system specific term if more applicable. */ exports.ATTR_DB_QUERY_SUMMARY = 'db.query.summary'; /** * The database query being executed. * * @example SELECT * FROM wuser_table where username = ? * @example SET mykey ? * * @note For sanitization see [Sanitization of `db.query.text`](/docs/db/database-spans.md#sanitization-of-dbquerytext). * For batch operations, if the individual operations are known to have the same query text then that query text **SHOULD** be used, otherwise all of the individual query texts **SHOULD** be concatenated with separator `; ` or some other database system specific separator if more applicable. * Parameterized query text **SHOULD NOT** be sanitized. Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk. */ exports.ATTR_DB_QUERY_TEXT = 'db.query.text'; /** * Database response status code. * * @example 102 * @example ORA-17002 * @example 08P01 * @example 404 * * @note The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes. * Semantic conventions for individual database systems **SHOULD** document what `db.response.status_code` means in the context of that system. */ exports.ATTR_DB_RESPONSE_STATUS_CODE = 'db.response.status_code'; /** * The name of a stored procedure within the database. * * @example GetCustomer * * @note It is **RECOMMENDED** to capture the value as provided by the application * without attempting to do any case normalization. * * For batch operations, if the individual operations are known to have the same * stored procedure name then that stored procedure name **SHOULD** be used. */ exports.ATTR_DB_STORED_PROCEDURE_NAME = 'db.stored_procedure.name'; /** * The database management system (DBMS) product as identified by the client instrumentation. * * @note The actual DBMS may differ from the one identified by the client. For example, when using PostgreSQL client libraries to connect to a CockroachDB, the `db.system.name` is set to `postgresql` based on the instrumentation's best knowledge. */ exports.ATTR_DB_SYSTEM_NAME = 'db.system.name'; /** * Enum value "mariadb" for attribute {@link ATTR_DB_SYSTEM_NAME}. * * [MariaDB](https://mariadb.org/) */ exports.DB_SYSTEM_NAME_VALUE_MARIADB = "mariadb"; /** * Enum value "microsoft.sql_server" for attribute {@link ATTR_DB_SYSTEM_NAME}. * * [Microsoft SQL Server](https://www.microsoft.com/sql-server) */ exports.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER = "microsoft.sql_server"; /** * Enum value "mysql" for attribute {@link ATTR_DB_SYSTEM_NAME}. * * [MySQL](https://www.mysql.com/) */ exports.DB_SYSTEM_NAME_VALUE_MYSQL = "mysql"; /** * Enum value "postgresql" for attribute {@link ATTR_DB_SYSTEM_NAME}. * * [PostgreSQL](https://www.postgresql.org/) */ exports.DB_SYSTEM_NAME_VALUE_POSTGRESQL = "postgresql"; /** * Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). * * @example staging * @example production * * @note `deployment.environment.name` does not affect the uniqueness constraints defined through * the `service.namespace`, `service.name` and `service.instance.id` resource attributes. * This implies that resources carrying the following attribute combinations **MUST** be * considered to be identifying the same service: * * - `service.name=frontend`, `deployment.environment.name=production` * - `service.name=frontend`, `deployment.environment.name=staging`. */ exports.ATTR_DEPLOYMENT_ENVIRONMENT_NAME = 'deployment.environment.name'; /** * Enum value "development" for attribute {@link ATTR_DEPLOYMENT_ENVIRONMENT_NAME}. * * Development environment */ exports.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_DEVELOPMENT = "development"; /** * Enum value "production" for attribute {@link ATTR_DEPLOYMENT_ENVIRONMENT_NAME}. * * Production environment */ exports.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_PRODUCTION = "production"; /** * Enum value "staging" for attribute {@link ATTR_DEPLOYMENT_ENVIRONMENT_NAME}. * * Staging environment */ exports.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_STAGING = "staging"; /** * Enum value "test" for attribute {@link ATTR_DEPLOYMENT_ENVIRONMENT_NAME}. * * Testing environment */ exports.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_TEST = "test"; /** * Name of the garbage collector managed heap generation. * * @example gen0 * @example gen1 * @example gen2 */ exports.ATTR_DOTNET_GC_HEAP_GENERATION = 'dotnet.gc.heap.generation'; /** * Enum value "gen0" for attribute {@link ATTR_DOTNET_GC_HEAP_GENERATION}. * * Generation 0 */ exports.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0 = "gen0"; /** * Enum value "gen1" for attribute {@link ATTR_DOTNET_GC_HEAP_GENERATION}. * * Generation 1 */ exports.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1 = "gen1"; /** * Enum value "gen2" for attribute {@link ATTR_DOTNET_GC_HEAP_GENERATION}. * * Generation 2 */ exports.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2 = "gen2"; /** * Enum value "loh" for attribute {@link ATTR_DOTNET_GC_HEAP_GENERATION}. * * Large Object Heap */ exports.DOTNET_GC_HEAP_GENERATION_VALUE_LOH = "loh"; /** * Enum value "poh" for attribute {@link ATTR_DOTNET_GC_HEAP_GENERATION}. * * Pinned Object Heap */ exports.DOTNET_GC_HEAP_GENERATION_VALUE_POH = "poh"; /** * Describes a class of error the operation ended with. * * @example timeout * @example java.net.UnknownHostException * @example server_certificate_invalid * @example 500 * * @note The `error.type` **SHOULD** be predictable, and **SHOULD** have low cardinality. * * When `error.type` is set to a type (e.g., an exception type), its * canonical class name identifying the type within the artifact **SHOULD** be used. * * If the recorded error type is a wrapper that is not meaningful for * failure classification, instrumentation **MAY** use the type of the inner * error instead. For example, in Go, errors created with `fmt.Errorf` * using `%w` **MAY** be unwrapped when the wrapper type does not help * classify the failure. * * Instrumentations **SHOULD** document the list of errors they report. * * The cardinality of `error.type` within one instrumentation library **SHOULD** be low. * Telemetry consumers that aggregate data from multiple instrumentation libraries and applications * should be prepared for `error.type` to have high cardinality at query time when no * additional filters are applied. * * If the operation has completed successfully, instrumentations **SHOULD NOT** set `error.type`. * * If a specific domain defines its own set of error identifiers (such as HTTP or RPC status codes), * it's **RECOMMENDED** to: * * - Use a domain-specific attribute * - Set `error.type` to capture all errors, regardless of whether they are defined within the domain-specific set or not. */ exports.ATTR_ERROR_TYPE = 'error.type'; /** * Enum value "_OTHER" for attribute {@link ATTR_ERROR_TYPE}. * * A fallback error value to be used when the instrumentation doesn't define a custom value. */ exports.ERROR_TYPE_VALUE_OTHER = "_OTHER"; /** * Indicates 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. */ exports.ATTR_EXCEPTION_ESCAPED = 'exception.escaped'; /** * The exception message. * * @example Division by zero * @example Can't convert 'int' object to str implicitly * * @note > [!WARNING] * * > This attribute may contain sensitive information. */ exports.ATTR_EXCEPTION_MESSAGE = 'exception.message'; /** * A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. * * @example "Exception in thread "main" java.lang.RuntimeException: Test exception\\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at com.example.GenerateTrace.main(GenerateTrace.java:5)\\n" */ exports.ATTR_EXCEPTION_STACKTRACE = 'exception.stacktrace'; /** * The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. * * @example java.net.ConnectException * @example OSError * * @note If the recorded exception type is a wrapper that is not meaningful for * failure classification, instrumentation **MAY** use the type of the inner * exception instead. For example, in Go, errors created with `fmt.Errorf` * using `%w` **MAY** be unwrapped when the wrapper type does not help * classify the failure. */ exports.ATTR_EXCEPTION_TYPE = 'exception.type'; /** * HTTP request headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values. * * @example ["application/json"] * @example ["1.2.3.4", "1.2.3.5"] * * @note Instrumentations **SHOULD** require an explicit configuration of which headers are to be captured. * Including all request headers can be a security risk - explicit configuration helps avoid leaking sensitive information. * * The `User-Agent` header is already captured in the `user_agent.original` attribute. * Users **MAY** explicitly configure instrumentations to capture them even though it is not recommended. * * The attribute value **MUST** consist of either multiple header values as an array of strings * or a single-item array containing a possibly comma-concatenated string, depending on the way * the HTTP library provides access to headers. * * Examples: * * - A header `Content-Type: application/json` **SHOULD** be recorded as the `http.request.header.content-type` * attribute with value `["application/json"]`. * - A header `X-Forwarded-For: 1.2.3.4, 1.2.3.5` **SHOULD** be recorded as the `http.request.header.x-forwarded-for` * attribute with value `["1.2.3.4", "1.2.3.5"]` or `["1.2.3.4, 1.2.3.5"]` depending on the HTTP library. */ const ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`; exports.ATTR_HTTP_REQUEST_HEADER = ATTR_HTTP_REQUEST_HEADER; /** * HTTP request method. * * @example GET * @example POST * @example HEAD * * @note HTTP request method value **SHOULD** be "known" to the instrumentation. * By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods), * the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html) * and the QUERY method defined in [httpbis-safe-method-w-body](https://datatracker.ietf.org/doc/draft-ietf-httpbis-safe-method-w-body/?include_text=1). * * If the HTTP request method is not known to instrumentation, it **MUST** set the `http.request.method` attribute to `_OTHER`. * * If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it **MUST** provide a way to override * the list of known HTTP methods. If this override is done via environment variable, then the environment variable **MUST** be named * OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods. * * * If this override is done via declarative configuration, then the list **MUST** be configurable via the `known_methods` property * (an array of case-sensitive strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or * `.instrumentation/development.general.http.server`. * * In either case, this list **MUST** be a full override of the default known methods, * it is not a list of known methods in addition to the defaults. * * HTTP method names are case-sensitive and `http.request.method` attribute value **MUST** match a known HTTP method name exactly. * Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, **SHOULD** populate a canonical equivalent. * Tracing instrumentations that do so, **MUST** also set `http.request.method_original` to the original value. */ exports.ATTR_HTTP_REQUEST_METHOD = 'http.request.method'; /** * Enum value "_OTHER" for attribute {@link ATTR_HTTP_REQUEST_METHOD}. * * Any HTTP method that the instrumentation has no prior knowledge of. */ exports.HTTP_REQUEST_METHOD_VALUE_OTHER = "_OTHER"; /** * Enum value "CONNECT" for attribute {@link ATTR_HTTP_REQUEST_METHOD}. * * CONNECT method. */ exports.HTTP_REQUEST_METHOD_VALUE_CONNECT = "CONNECT"; /** * Enum value "DELETE" for attribute {@link ATTR_HTTP_REQUEST_METHOD}. * * DELETE method. */ exports.HTTP_REQUEST_METHOD_VALUE_DELETE = "DELETE"; /** * Enum value "GET" for attribute {@link ATTR_HTTP_REQUEST_METHOD}. * * GET method. */ exports.HTTP_REQUEST_METHOD_VALUE_GET = "GET"; /** * Enum value "HEAD" for attribute {@link ATTR_HTTP_REQUEST_METHOD}. * * HEAD method. */ exports.HTTP_REQUEST_METHOD_VALUE_HEAD = "HEAD"; /** * Enum value "OPTIONS" for attribute {@link ATTR_HTTP_REQUEST_METHOD}. * * OPTIONS method. */ exports.HTTP_REQUEST_METHOD_VALUE_OPTIONS = "OPTIONS"; /** * Enum value "PATCH" for attribute {@link ATTR_HTTP_REQUEST_METHOD}. * * PATCH method. */ exports.HTTP_REQUEST_METHOD_VALUE_PATCH = "PATCH"; /** * Enum value "POST" for attribute {@link ATTR_HTTP_REQUEST_METHOD}. * * POST method. */ exports.HTTP_REQUEST_METHOD_VALUE_POST = "POST"; /** * Enum value "PUT" for attribute {@link ATTR_HTTP_REQUEST_METHOD}. * * PUT method. */ exports.HTTP_REQUEST_METHOD_VALUE_PUT = "PUT"; /** * Enum value "TRACE" for attribute {@link ATTR_HTTP_REQUEST_METHOD}. * * TRACE method. */ exports.HTTP_REQUEST_METHOD_VALUE_TRACE = "TRACE"; /** * Original HTTP method sent by the client in the request line. * * @example GeT * @example ACL * @example foo */ exports.ATTR_HTTP_REQUEST_METHOD_ORIGINAL = 'http.request.method_original'; /** * The ordinal number of request resending attempt (for any reason, including redirects). * * @example 3 * * @note The resend count **SHOULD** be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other). */ exports.ATTR_HTTP_REQUEST_RESEND_COUNT = 'http.request.resend_count'; /** * HTTP response headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values. * * @example ["application/json"] * @example ["abc", "def"] * * @note Instrumentations **SHOULD** require an explicit configuration of which headers are to be captured. * Including all response headers can be a security risk - explicit configuration helps avoid leaking sensitive information. * * Users **MAY** explicitly configure instrumentations to capture them even though it is not recommended. * * The attribute value **MUST** consist of either multiple header values as an array of strings * or a single-item array containing a possibly comma-concatenated string, depending on the way * the HTTP library provides access to headers. * * Examples: * * - A header `Content-Type: application/json` header **SHOULD** be recorded as the `http.request.response.content-type` * attribute with value `["application/json"]`. * - A header `My-custom-header: abc, def` header **SHOULD** be recorded as the `http.response.header.my-custom-header` * attribute with value `["abc", "def"]` or `["abc, def"]` depending on the HTTP library. */ const ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`; exports.ATTR_HTTP_RESPONSE_HEADER = ATTR_HTTP_RESPONSE_HEADER; /** * [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). * * @example 200 */ exports.ATTR_HTTP_RESPONSE_STATUS_CODE = 'http.response.status_code'; /** * 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. * * @example /users/:userID? * @example my-controller/my-action/{id?} * * @note **MUST NOT** be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. * **SHOULD** include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one. * * A static path segment is a part of the route template with a fixed, low-cardinality value. This includes literal strings like `/users/` and placeholders that * are constrained to a finite, predefined set of values, e.g. `{controller}` or `{action}`. * * A dynamic path segment is a placeholder for a value that can have high cardinality and is not constrained to a predefined list like static path segments. * * Instrumentations **SHOULD** use routing information provided by the corresponding web framework. They **SHOULD** pick the most precise source of routing information and **MAY** * support custom route formatting. Instrumentations **SHOULD** document the format and the API used to obtain the route string. */ exports.ATTR_HTTP_ROUTE = 'http.route'; /** * Name of the garbage collector action. * * @example end of minor GC * @example end of major GC * * @note Garbage collector action is generally obtained via [GarbageCollectionNotificationInfo#getGcAction()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcAction()). */ exports.ATTR_JVM_GC_ACTION = 'jvm.gc.action'; /** * Name of the garbage collector. * * @example G1 Young Generation * @example G1 Old Generation * * @note Garbage collector name is generally obtained via [GarbageCollectionNotificationInfo#getGcName()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcName()). */ exports.ATTR_JVM_GC_NAME = 'jvm.gc.name'; /** * Name of the memory pool. * * @example G1 Old Gen * @example G1 Eden space * @example G1 Survivor Space * * @note Pool names are generally obtained via [MemoryPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName()). */ exports.ATTR_JVM_MEMORY_POOL_NAME = 'jvm.memory.pool.name'; /** * The type of memory. * * @example heap * @example non_heap */ exports.ATTR_JVM_MEMORY_TYPE = 'jvm.memory.type'; /** * Enum value "heap" for attribute {@link ATTR_JVM_MEMORY_TYPE}. * * Heap memory. */ exports.JVM_MEMORY_TYPE_VALUE_HEAP = "heap"; /** * Enum value "non_heap" for attribute {@link ATTR_JVM_MEMORY_TYPE}. * * Non-heap memory */ exports.JVM_MEMORY_TYPE_VALUE_NON_HEAP = "non_heap"; /** * Whether the thread is daemon or not. */ exports.ATTR_JVM_THREAD_DAEMON = 'jvm.thread.daemon'; /** * State of the thread. * * @example runnable * @example blocked */ exports.ATTR_JVM_THREAD_STATE = 'jvm.thread.state'; /** * Enum value "blocked" for attribute {@link ATTR_JVM_THREAD_STATE}. * * A thread that is blocked waiting for a monitor lock is in this state. */ exports.JVM_THREAD_STATE_VALUE_BLOCKED = "blocked"; /** * Enum value "new" for attribute {@link ATTR_JVM_THREAD_STATE}. * * A thread that has not yet started is in this state. */ exports.JVM_THREAD_STATE_VALUE_NEW = "new"; /** * Enum value "runnable" for attribute {@link ATTR_JVM_THREAD_STATE}. * * A thread executing in the Java virtual machine is in this state. */ exports.JVM_THREAD_STATE_VALUE_RUNNABLE = "runnable"; /** * Enum value "terminated" for attribute {@link ATTR_JVM_THREAD_STATE}. * * A thread that has exited is in this state. */ exports.JVM_THREAD_STATE_VALUE_TERMINATED = "terminated"; /** * Enum value "timed_waiting" for attribute {@link ATTR_JVM_THREAD_STATE}. * * A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state. */ exports.JVM_THREAD_STATE_VALUE_TIMED_WAITING = "timed_waiting"; /** * Enum value "waiting" for attribute {@link ATTR_JVM_THREAD_STATE}. * * A thread that is waiting indefinitely for another thread to perform a particular action is in this state. */ exports.JVM_THREAD_STATE_VALUE_WAITING = "waiting"; /** * The name of the cluster. * * @example opentelemetry-cluster */ exports.ATTR_K8S_CLUSTER_NAME = 'k8s.cluster.name'; /** * A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. * * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d * * @note K8s doesn't have support for obtaining a cluster ID. If this is ever * added, we will recommend collecting the `k8s.cluster.uid` through the * official APIs. In the meantime, we are able to use the `uid` of the * `kube-system` namespace as a proxy for cluster ID. Read on for the * rationale. * * Every object created in a K8s cluster is assigned a distinct UID. The * `kube-system` namespace is used by Kubernetes itself and will exist * for the lifetime of the cluster. Using the `uid` of the `kube-system` * namespace is a reasonable proxy for the K8s ClusterID as it will only * change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are * UUIDs as standardized by * [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). * Which states: * * > If generated according to one of the mechanisms defined in Rec. * > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be * > different from all other UUIDs generated before 3603 A.D., or is * > extremely likely to be different (depending on the mechanism chosen). * * Therefore, UIDs between clusters should be extremely unlikely to * conflict. */ exports.ATTR_K8S_CLUSTER_UID = 'k8s.cluster.uid'; /** * The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). * * @example redis */ exports.ATTR_K8S_CONTAINER_NAME = 'k8s.container.name'; /** * Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. */ exports.ATTR_K8S_CONTAINER_RESTART_COUNT = 'k8s.container.restart_count'; /** * The cronjob annotation placed on the CronJob, the `<key>` being the annotation name, the value being the annotation value. * * @example 4 * @example * * @note Examples: * * - An annotation `retries` with value `4` **SHOULD** be recorded as the * `k8s.cronjob.annotation.retries` attribute with value `"4"`. * - An annotation `data` with empty string value **SHOULD** be recorded as * the `k8s.cronjob.annotation.data` attribute with value `""`. */ const ATTR_K8S_CRONJOB_ANNOTATION = (key) => `k8s.cronjob.annotation.${key}`; exports.ATTR_K8S_CRONJOB_ANNOTATION = ATTR_K8S_CRONJOB_ANNOTATION; /** * The label placed on the CronJob, the `<key>` being the label name, the value being the label value. * * @example weekly * @example * * @note Examples: * * - A label `type` with value `weekly` **SHOULD** be recorded as the * `k8s.cronjob.label.type` attribute with value `"weekly"`. * - A label `automated` with empty string value **SHOULD** be recorded as * the `k8s.cronjob.label.automated` attribute with value `""`. */ const ATTR_K8S_CRONJOB_LABEL = (key) => `k8s.cronjob.label.${key}`; exports.ATTR_K8S_CRONJOB_LABEL = ATTR_K8S_CRONJOB_LABEL; /** * The name of the CronJob. * * @example opentelemetry */ exports.ATTR_K8S_CRONJOB_NAME = 'k8s.cronjob.name'; /** * The UID of the CronJob. * * @example 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff */ exports.ATTR_K8S_CRONJOB_UID = 'k8s.cronjob.uid'; /** * The annotation placed on the DaemonSet, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty. * * @example 1 * @example * * @note * Examples: * * - An annotation `replicas` with value `1` **SHOULD** be recorded * as the `k8s.daemonset.annotation.replicas` attribute with value `"1"`. * - An annotation `data` with empty string value **SHOULD** be recorded as * the `k8s.daemonset.annotation.data` attribute with value `""`. */ const ATTR_K8S_DAEMONSET_ANNOTATION = (key) => `k8s.daemonset.annotation.${key}`; exports.ATTR_K8S_DAEMONSET_ANNOTATION = ATTR_K8S_DAEMONSET_ANNOTATION; /** * The label placed on the DaemonSet, the `<key>` being the label name, the value being the label value, even if the value is empty. * * @example guestbook * @example * * @note * Examples: * * - A label `app` with value `guestbook` **SHOULD** be recorded * as the `k8s.daemonset.label.app` attribute with value `"guestbook"`. * - A label `injected` with empty string value **SHOULD** be recorded as * the `k8s.daemonset.label.injected` attribute with value `""`. */ const ATTR_K8S_DAEMONSET_LABEL = (key) => `k8s.daemonset.label.${key}`; exports.ATTR_K8S_DAEMONSET_LABEL = ATTR_K8S_DAEMONSET_LABEL; /** * The name of the DaemonSet. * * @example opentelemetry */ exports.ATTR_K8S_DAEMONSET_NAME = 'k8s.daemonset.name'; /** * The UID of the DaemonSet. * * @example 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff */ exports.ATTR_K8S_DAEMONSET_UID = 'k8s.daemonset.uid'; /** * The annotation placed on the Deployment, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty. * * @example 1 * @example * * @note * Examples: * * - An annotation `replicas` with value `1` **SHOULD** be recorded * as the `k8s.deployment.annotation.replicas` attribute with value `"1"`. * - An annotation `data` with empty string value **SHOULD** be recorded as * the `k8s.deployment.annotation.data` attribute with value `""`. */ const ATTR_K8S_DEPLOYMENT_ANNOTATION = (key) => `k8s.deployment.annotation.${key}`; exports.ATTR_K8S_DEPLOYMENT_ANNOTATION = ATTR_K8S_DEPLOYMENT_ANNOTATION; /** * The label placed on the Deployment, the `<key>` being the label name, the value being the label value, even if the value is empty. * * @example guestbook * @example * * @note * Examples: * * - A label `app` with value `guestbook` **SHOULD** be recorded * as the `k8s.deployment.label.app` attribute with value `"guestbook"`. * - A label `injected` with empty string value **SHOULD** be recorded as * the `k8s.deployment.label.injected` attribute with value `""`. */ const ATTR_K8S_DEPLOYMENT_LABEL = (key) => `k8s.deployment.label.${key}`; exports.ATTR_K8S_DEPLOYMENT_LABEL = ATTR_K8S_DEPLOYMENT_LABEL; /** * The name of the Deployment. * * @example opentelemetry */ exports.ATTR_K8S_DEPLOYMENT_NAME = 'k8s.deployment.name'; /** * The UID of the Deployment. * * @example 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff */ exports.ATTR_K8S_DEPLOYMENT_UID = 'k8s.deployment.uid'; /** * The annotation placed on the Job, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty. * * @example 1 * @example * * @note * Examples: * * - An annotation `number` with value `1` **SHOULD** be recorded * as the `k8s.job.annotation.number` attribute with value `"1"`. * - An annotation `data` with empty string value **SHOULD** be recorded as * the `k8s.job.annotation.data` attribute with value `""`. */ const ATTR_K8S_JOB_ANNOTATION = (key) => `k8s.job.annotation.${key}`; exports.ATTR_K8S_JOB_ANNOTATION = ATTR_K8S_JOB_ANNOTATION; /** * The label placed on the Job, the `<key>` being the label name, the value being the label value, even if the value is empty. * * @example ci * @example * * @no