|
| 1 | +/** |
| 2 | + * These constants are considered experimental exports of `@opentelemetry/semantic-conventions`. |
| 3 | + * They're being inlined until they're officially exported by `@opentelemetry/semantic-conventions`. |
| 4 | + */ |
| 5 | + |
| 6 | +/** |
| 7 | + * The number of connections that are currently in state described by the `state` attribute |
| 8 | + * |
| 9 | + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 10 | + */ |
| 11 | +export declare const METRIC_DB_CLIENT_CONNECTION_COUNT: 'db.client.connection.count'; |
| 12 | + |
| 13 | +/** |
| 14 | + * The number of pending requests for an open connection, cumulative for the entire pool |
| 15 | + * |
| 16 | + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 17 | + */ |
| 18 | +export declare const METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS: 'db.client.connection.pending_requests'; |
| 19 | + |
| 20 | +/** |
| 21 | + * Duration of database client operations. |
| 22 | + * |
| 23 | + * @note Batch operations **SHOULD** be recorded as a single operation. |
| 24 | + * |
| 25 | + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 26 | + */ |
| 27 | +export declare const METRIC_DB_CLIENT_OPERATION_DURATION: 'db.client.operation.duration'; |
| 28 | + |
| 29 | +/** |
| 30 | + * The name of the database, fully qualified within the server address and port. |
| 31 | + * |
| 32 | + * @example customers |
| 33 | + * |
| 34 | + * @example test.users |
| 35 | + * |
| 36 | + * @note If a database system has multiple namespace components, they **SHOULD** be concatenated (potentially using database system specific conventions) from most general to most specific namespace component, and more specific namespaces **SHOULD** **NOT** be captured without the more general namespaces, to ensure that "startswith" queries for the more general namespaces will be valid. |
| 37 | + * Semantic conventions for individual database systems **SHOULD** document what `db.namespace` means in the context of that system. |
| 38 | + * It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. |
| 39 | + * |
| 40 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 41 | + */ |
| 42 | +export declare const ATTR_DB_NAMESPACE: 'db.namespace'; |
| 43 | + |
| 44 | +/** |
| 45 | + * The name of the operation or command being executed. |
| 46 | + * |
| 47 | + * @example findAndModify |
| 48 | + * |
| 49 | + * @example HMSET |
| 50 | + * |
| 51 | + * @example SELECT |
| 52 | + * |
| 53 | + * @note It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. |
| 54 | + * If the operation name is parsed from the query text, it **SHOULD** be the first operation name found in the query. |
| 55 | + * 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. |
| 56 | + * |
| 57 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 58 | + */ |
| 59 | +export declare const ATTR_DB_OPERATION_NAME: 'db.operation.name'; |
0 commit comments