UNPKG

@opentelemetry/instrumentation-oracledb

Version:
49 lines 2.04 kB
"use strict"; /* * Copyright The OpenTelemetry Authors * Copyright (c) 2025, Oracle and/or its affiliates. * SPDX-License-Identifier: Apache-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.DB_SYSTEM_NAME_VALUE_ORACLE_DB = exports.ATTR_DB_USER = exports.ATTR_DB_OPERATION_PARAMETER = void 0; /* * This file contains a copy of unstable semantic convention definitions * used by this package. * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv */ /** * A database operation parameter, with `<key>` being the parameter name, and the attribute value being a string representation of the parameter value. * * @example someval * @example 55 * * @note For example, a client-side maximum number of rows to read from the database * **MAY** be recorded as the `db.operation.parameter.max_rows` attribute. * * `db.query.text` parameters **SHOULD** be captured using `db.query.parameter.<key>` * instead of `db.operation.parameter.<key>`. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ const ATTR_DB_OPERATION_PARAMETER = (key) => `db.operation.parameter.${key}`; exports.ATTR_DB_OPERATION_PARAMETER = ATTR_DB_OPERATION_PARAMETER; /** * Deprecated, no replacement at this time. * * @example readonly_user * @example reporting_user * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Removed, no replacement at this time. */ exports.ATTR_DB_USER = 'db.user'; /** * Enum value "oracle.db" for attribute {@link ATTR_DB_SYSTEM_NAME}. * * [Oracle Database](https://www.oracle.com/database/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ exports.DB_SYSTEM_NAME_VALUE_ORACLE_DB = 'oracle.db'; //# sourceMappingURL=semconv.js.map