UNPKG

@opentelemetry/instrumentation-oracledb

Version:
60 lines 2.56 kB
"use strict"; /* * Copyright The OpenTelemetry Authors * Copyright (c) 2025, Oracle and/or its affiliates. * * 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 * * https://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. */ 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