Class DbIncubatingAttributes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.static final classDeprecated.Replaced bydb.client.connection.state.static final classValues forDB_CLIENT_CONNECTION_STATE.static final classDeprecated.Replaced byazure.cosmosdb.connection.mode.static final classDeprecated.Replaced byazure.cosmosdb.consistency.level.static final classDeprecated.Removed, no replacement at this time.static final classDeprecated.Replaced bydb.system.name.static final classValues forDB_SYSTEM_NAME. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bycassandra.consistency.level.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bycassandra.coordinator.dc.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bycassandra.coordinator.id.static final io.opentelemetry.api.common.AttributeKey<Boolean>Deprecated.Replaced bycassandra.query.idempotent.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced bycassandra.page.size.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced bycassandra.speculative_execution.count.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.collection.name.static final io.opentelemetry.api.common.AttributeKey<String>The name of the connection pool; unique within the instrumented application.static final io.opentelemetry.api.common.AttributeKey<String>The state of a connection in the poolstatic final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.client.connection.pool.name.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.client.connection.state.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableDbAttributes.DB_COLLECTION_NAMEattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byserver.addressandserver.port.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byazure.client.id.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byazure.cosmosdb.connection.mode.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byazure.cosmosdb.consistency.level.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.collection.name.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Removed, no replacement at this time.Deprecated.Replaced byazure.cosmosdb.operation.contacted_regions.static final io.opentelemetry.api.common.AttributeKey<Double>Deprecated.Replaced byazure.cosmosdb.operation.request_charge.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced byazure.cosmosdb.request.body.size.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced bydb.response.status_code.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced byazure.cosmosdb.response.sub_status_code.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.namespace.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byelasticsearch.node.name.static final io.opentelemetry.semconv.AttributeKeyTemplate<String>Deprecated.Replaced bydb.operation.parameter.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Removed, no general replacement at this time.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Removed, no replacement at this time.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.collection.name.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Removed, no replacement at this time.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.namespace.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableDbAttributes.DB_NAMESPACEattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.operation.name.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.deprecated in favor of stableDbAttributes.DB_OPERATION_BATCH_SIZEattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableDbAttributes.DB_OPERATION_NAMEattribute.static final io.opentelemetry.semconv.AttributeKeyTemplate<String>A database operation parameter, with<key>being the parameter name, and the attribute value being a string representation of the parameter value.static final io.opentelemetry.semconv.AttributeKeyTemplate<String>A database query parameter, with<key>being the parameter name, and the attribute value being a string representation of the parameter value.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableDbAttributes.DB_QUERY_SUMMARYattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableDbAttributes.DB_QUERY_TEXTattribute.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced bydb.namespace.static final io.opentelemetry.api.common.AttributeKey<Long>Number of rows returned by the operation.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableDbAttributes.DB_RESPONSE_STATUS_CODEattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.collection.name, but only if not extracting the value fromdb.query.text.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.query.text.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableDbAttributes.DB_STORED_PROCEDURE_NAMEattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bydb.system.name.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableDbAttributes.DB_SYSTEM_NAMEattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Removed, no replacement at this time. -
Method Summary
-
Field Details
-
DB_CASSANDRA_CONSISTENCY_LEVEL
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_CASSANDRA_CONSISTENCY_LEVELDeprecated.Replaced bycassandra.consistency.level.Deprecated, usecassandra.consistency.levelinstead. -
DB_CASSANDRA_COORDINATOR_DC
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_CASSANDRA_COORDINATOR_DCDeprecated.Replaced bycassandra.coordinator.dc.Deprecated, usecassandra.coordinator.dcinstead. -
DB_CASSANDRA_COORDINATOR_ID
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_CASSANDRA_COORDINATOR_IDDeprecated.Replaced bycassandra.coordinator.id.Deprecated, usecassandra.coordinator.idinstead. -
DB_CASSANDRA_IDEMPOTENCE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Boolean> DB_CASSANDRA_IDEMPOTENCEDeprecated.Replaced bycassandra.query.idempotent.Deprecated, usecassandra.query.idempotentinstead. -
DB_CASSANDRA_PAGE_SIZE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> DB_CASSANDRA_PAGE_SIZEDeprecated.Replaced bycassandra.page.size.Deprecated, usecassandra.page.sizeinstead. -
DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNTDeprecated.Replaced bycassandra.speculative_execution.count.Deprecated, usecassandra.speculative_execution.countinstead. -
DB_CASSANDRA_TABLE
Deprecated.Replaced bydb.collection.name.Deprecated, usedb.collection.nameinstead. -
DB_CLIENT_CONNECTION_POOL_NAME
The name of the connection pool; unique within the instrumented application. In case the connection pool implementation doesn't provide a name, instrumentation SHOULD use a combination of parameters that would make the name unique, for example, combining attributesserver.address,server.port, anddb.namespace, formatted asserver.address:server.port/db.namespace. Instrumentations that generate connection pool name following different patterns SHOULD document it. -
DB_CLIENT_CONNECTION_STATE
The state of a connection in the pool -
DB_CLIENT_CONNECTIONS_POOL_NAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_CLIENT_CONNECTIONS_POOL_NAMEDeprecated.Replaced bydb.client.connection.pool.name.Deprecated, usedb.client.connection.pool.nameinstead. -
DB_CLIENT_CONNECTIONS_STATE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_CLIENT_CONNECTIONS_STATEDeprecated.Replaced bydb.client.connection.state.Deprecated, usedb.client.connection.stateinstead. -
DB_COLLECTION_NAME
Deprecated.deprecated in favor of stableDbAttributes.DB_COLLECTION_NAMEattribute.The name of a collection (table, container) within the database.Notes:
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.
-
DB_CONNECTION_STRING
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_CONNECTION_STRINGDeprecated.Replaced byserver.addressandserver.port.Deprecated, useserver.address,server.portattributes instead. -
DB_COSMOSDB_CLIENT_ID
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_COSMOSDB_CLIENT_IDDeprecated.Replaced byazure.client.id.Deprecated, useazure.client.idinstead. -
DB_COSMOSDB_CONNECTION_MODE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_COSMOSDB_CONNECTION_MODEDeprecated.Replaced byazure.cosmosdb.connection.mode.Deprecated, useazure.cosmosdb.connection.modeinstead. -
DB_COSMOSDB_CONSISTENCY_LEVEL
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_COSMOSDB_CONSISTENCY_LEVELDeprecated.Replaced byazure.cosmosdb.consistency.level.Deprecated, usecosmosdb.consistency.levelinstead. -
DB_COSMOSDB_CONTAINER
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_COSMOSDB_CONTAINERDeprecated.Replaced bydb.collection.name.Deprecated, usedb.collection.nameinstead. -
DB_COSMOSDB_OPERATION_TYPE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_COSMOSDB_OPERATION_TYPEDeprecated.Removed, no replacement at this time.Deprecated, no replacement at this time. -
DB_COSMOSDB_REGIONS_CONTACTED
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<List<String>> DB_COSMOSDB_REGIONS_CONTACTEDDeprecated.Replaced byazure.cosmosdb.operation.contacted_regions.Deprecated, useazure.cosmosdb.operation.contacted_regionsinstead. -
DB_COSMOSDB_REQUEST_CHARGE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Double> DB_COSMOSDB_REQUEST_CHARGEDeprecated.Replaced byazure.cosmosdb.operation.request_charge.Deprecated, useazure.cosmosdb.operation.request_chargeinstead. -
DB_COSMOSDB_REQUEST_CONTENT_LENGTH
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> DB_COSMOSDB_REQUEST_CONTENT_LENGTHDeprecated.Replaced byazure.cosmosdb.request.body.size.Deprecated, useazure.cosmosdb.request.body.sizeinstead. -
DB_COSMOSDB_STATUS_CODE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> DB_COSMOSDB_STATUS_CODEDeprecated.Replaced bydb.response.status_code.Deprecated, usedb.response.status_codeinstead. -
DB_COSMOSDB_SUB_STATUS_CODE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> DB_COSMOSDB_SUB_STATUS_CODEDeprecated.Replaced byazure.cosmosdb.response.sub_status_code.Deprecated, useazure.cosmosdb.response.sub_status_codeinstead. -
DB_ELASTICSEARCH_CLUSTER_NAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_ELASTICSEARCH_CLUSTER_NAMEDeprecated.Replaced bydb.namespace.Deprecated, usedb.namespaceinstead. -
DB_ELASTICSEARCH_NODE_NAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_ELASTICSEARCH_NODE_NAMEDeprecated.Replaced byelasticsearch.node.name.Deprecated, useelasticsearch.node.nameinstead. -
DB_ELASTICSEARCH_PATH_PARTS
@Deprecated public static final io.opentelemetry.semconv.AttributeKeyTemplate<String> DB_ELASTICSEARCH_PATH_PARTSDeprecated.Replaced bydb.operation.parameter.Deprecated, usedb.operation.parameterinstead. -
DB_INSTANCE_ID
Deprecated.Removed, no general replacement at this time. For Elasticsearch, usedb.elasticsearch.node.nameinstead.Deprecated, no general replacement at this time. For Elasticsearch, usedb.elasticsearch.node.nameinstead. -
DB_JDBC_DRIVER_CLASSNAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_JDBC_DRIVER_CLASSNAMEDeprecated.Removed, no replacement at this time.Removed, no replacement at this time. -
DB_MONGODB_COLLECTION
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_MONGODB_COLLECTIONDeprecated.Replaced bydb.collection.name.Deprecated, usedb.collection.nameinstead. -
DB_MSSQL_INSTANCE_NAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_MSSQL_INSTANCE_NAMEDeprecated.Removed, no replacement at this time.Deprecated, SQL Server instance is now populated as a part ofdb.namespaceattribute. -
DB_NAME
Deprecated.Replaced bydb.namespace.Deprecated, usedb.namespaceinstead. -
DB_NAMESPACE
Deprecated.deprecated in favor of stableDbAttributes.DB_NAMESPACEattribute.The name of the database, fully qualified within the server address and port.Notes:
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 whatdb.namespacemeans 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. -
DB_OPERATION
Deprecated.Replaced bydb.operation.name.Deprecated, usedb.operation.nameinstead. -
DB_OPERATION_BATCH_SIZE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> DB_OPERATION_BATCH_SIZEDeprecated.deprecated in favor of stableDbAttributes.DB_OPERATION_BATCH_SIZEattribute.The number of queries included in a batch operation.Notes:
Operations are only considered batches when they contain two or more operations, and so
db.operation.batch.sizeSHOULD never be1. -
DB_OPERATION_NAME
Deprecated.deprecated in favor of stableDbAttributes.DB_OPERATION_NAMEattribute.The name of the operation or command being executed.Notes:
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, otherwisedb.operation.nameSHOULD beBATCHor some other database system specific term if more applicable. -
DB_OPERATION_PARAMETER
A database operation parameter, with<key>being the parameter name, and the attribute value being a string representation of the parameter value.Notes:
For example, a client-side maximum number of rows to read from the database MAY be recorded as the
db.operation.parameter.max_rowsattribute.db.query.textparameters SHOULD be captured usingdb.query.parameter.<key>instead ofdb.operation.parameter.<key>. -
DB_QUERY_PARAMETER
A database query parameter, with<key>being the parameter name, and the attribute value being a string representation of the parameter value.Notes:
If a query parameter has no name and instead is referenced only by index, then
<key>SHOULD be the 0-based index.db.query.parameter.<key>SHOULD match up with the parameterized placeholders present indb.query.text.db.query.parameter.<key>SHOULD NOT be captured on batch operations.Examples:
- For a query
SELECT * FROM users where username = %swith the parameter"jdoe", the attributedb.query.parameter.0SHOULD be set to"jdoe". - For a query
"SELECT * FROM users WHERE username = %(username)s;with parameterusername = "jdoe", the attributedb.query.parameter.usernameSHOULD be set to"jdoe".
- For a query
-
DB_QUERY_SUMMARY
Deprecated.deprecated in favor of stableDbAttributes.DB_QUERY_SUMMARYattribute.Low cardinality summary of a database query.Notes:
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 section.
-
DB_QUERY_TEXT
Deprecated.deprecated in favor of stableDbAttributes.DB_QUERY_TEXTattribute.The database query being executed.Notes:
For sanitization see Sanitization of
db.query.text. 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. -
DB_REDIS_DATABASE_INDEX
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> DB_REDIS_DATABASE_INDEXDeprecated.Replaced bydb.namespace.Deprecated, usedb.namespaceinstead. -
DB_RESPONSE_RETURNED_ROWS
Number of rows returned by the operation. -
DB_RESPONSE_STATUS_CODE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_RESPONSE_STATUS_CODEDeprecated.deprecated in favor of stableDbAttributes.DB_RESPONSE_STATUS_CODEattribute.Database response status code.Notes:
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_codemeans in the context of that system. -
DB_SQL_TABLE
Deprecated.Replaced bydb.collection.name, but only if not extracting the value fromdb.query.text.Deprecated, usedb.collection.nameinstead. -
DB_STATEMENT
Deprecated.Replaced bydb.query.text.The database statement being executed. -
DB_STORED_PROCEDURE_NAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_STORED_PROCEDURE_NAMEDeprecated.deprecated in favor of stableDbAttributes.DB_STORED_PROCEDURE_NAMEattribute.The name of a stored procedure within the database.Notes:
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.
-
DB_SYSTEM
Deprecated.Replaced bydb.system.name.Deprecated, usedb.system.nameinstead. -
DB_SYSTEM_NAME
Deprecated.deprecated in favor of stableDbAttributes.DB_SYSTEM_NAMEattribute.The database management system (DBMS) product as identified by the client instrumentation.Notes:
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.nameis set topostgresqlbased on the instrumentation's best knowledge. -
DB_USER
Deprecated.Removed, no replacement at this time.Deprecated, no replacement at this time.
-
cassandra.consistency.level.