Class DbIncubatingAttributes
java.lang.Object
io.opentelemetry.semconv.incubating.DbIncubatingAttributes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classValues forDB_CASSANDRA_CONSISTENCY_LEVEL.static final classValues forDB_COSMOSDB_CONNECTION_MODE.static final classValues forDB_COSMOSDB_OPERATION_TYPE.static final classValues forDB_SYSTEM. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.api.common.AttributeKey<String>The consistency level of the query.static final io.opentelemetry.api.common.AttributeKey<String>The data center of the coordinating node for a query.static final io.opentelemetry.api.common.AttributeKey<String>The ID of the coordinating node for a query.static final io.opentelemetry.api.common.AttributeKey<Boolean>Whether or not the query is idempotent.static final io.opentelemetry.api.common.AttributeKey<Long>The fetch size used for paging, i.e. how many rows will be returned at once.static final io.opentelemetry.api.common.AttributeKey<Long>The number of times a query was speculatively executed.static final io.opentelemetry.api.common.AttributeKey<String>The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable).static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Deprecated, use `server.address`, `server.port` attributes instead.static final io.opentelemetry.api.common.AttributeKey<String>Unique Cosmos client instance id.static final io.opentelemetry.api.common.AttributeKey<String>Cosmos client connection mode.static final io.opentelemetry.api.common.AttributeKey<String>Cosmos DB container name.static final io.opentelemetry.api.common.AttributeKey<String>CosmosDB Operation Type.static final io.opentelemetry.api.common.AttributeKey<Double>RU consumed for that operationstatic final io.opentelemetry.api.common.AttributeKey<Long>Request payload size in bytesstatic final io.opentelemetry.api.common.AttributeKey<Long>Cosmos DB status code.static final io.opentelemetry.api.common.AttributeKey<Long>Cosmos DB sub status code.static final io.opentelemetry.api.common.AttributeKey<String>Represents the identifier of an Elasticsearch cluster.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Deprecated, use `db.instance.id` instead.static final io.opentelemetry.semconv.AttributeKeyTemplate<String>A dynamic value in the url path.static final io.opentelemetry.api.common.AttributeKey<String>An identifier (address, unique name, or any other identifier) of the database instance that is executing queries or mutations on the current connection.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Removed, no replacement at this time.static final io.opentelemetry.api.common.AttributeKey<String>The MongoDB collection being accessed within the database stated indb.name.static final io.opentelemetry.api.common.AttributeKey<String>The Microsoft SQL Server instance name connecting to.static final io.opentelemetry.api.common.AttributeKey<String>This attribute is used to report the name of the database being accessed.static final io.opentelemetry.api.common.AttributeKey<String>The name of the operation being executed, e.g. the MongoDB command name such asfindAndModify, or the SQL keyword.static final io.opentelemetry.api.common.AttributeKey<Long>The index of the database being accessed as used in theSELECTcommand, provided as an integer.static final io.opentelemetry.api.common.AttributeKey<String>The name of the primary table that the operation is acting upon, including the database name (if applicable).static final io.opentelemetry.api.common.AttributeKey<String>The database statement being executed.static final io.opentelemetry.api.common.AttributeKey<String>An identifier for the database management system (DBMS) product being used.static final io.opentelemetry.api.common.AttributeKey<String>Username for accessing the database. -
Method Summary
-
Field Details
-
DB_CASSANDRA_CONSISTENCY_LEVEL
The consistency level of the query. Based on consistency values from CQL. -
DB_CASSANDRA_COORDINATOR_DC
The data center of the coordinating node for a query. -
DB_CASSANDRA_COORDINATOR_ID
The ID of the coordinating node for a query. -
DB_CASSANDRA_IDEMPOTENCE
Whether or not the query is idempotent. -
DB_CASSANDRA_PAGE_SIZE
The fetch size used for paging, i.e. how many rows will be returned at once. -
DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT
public static final io.opentelemetry.api.common.AttributeKey<Long> DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNTThe number of times a query was speculatively executed. Not set or0if the query was not executed speculatively. -
DB_CASSANDRA_TABLE
The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable).Notes:
- This mirrors the db.sql.table attribute but references cassandra rather than sql. It is
not recommended to attempt any client-side parsing of
db.statementjust to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set.
- This mirrors the db.sql.table attribute but references cassandra rather than sql. It is
not recommended to attempt any client-side parsing of
-
DB_CONNECTION_STRING
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_CONNECTION_STRINGDeprecated.Deprecated, use `server.address`, `server.port` attributes instead.Deprecated, useserver.address,server.portattributes instead. -
DB_COSMOSDB_CLIENT_ID
Unique Cosmos client instance id. -
DB_COSMOSDB_CONNECTION_MODE
Cosmos client connection mode. -
DB_COSMOSDB_CONTAINER
Cosmos DB container name. -
DB_COSMOSDB_OPERATION_TYPE
CosmosDB Operation Type. -
DB_COSMOSDB_REQUEST_CHARGE
RU consumed for that operation -
DB_COSMOSDB_REQUEST_CONTENT_LENGTH
public static final io.opentelemetry.api.common.AttributeKey<Long> DB_COSMOSDB_REQUEST_CONTENT_LENGTHRequest payload size in bytes -
DB_COSMOSDB_STATUS_CODE
Cosmos DB status code. -
DB_COSMOSDB_SUB_STATUS_CODE
Cosmos DB sub status code. -
DB_ELASTICSEARCH_CLUSTER_NAME
Represents the identifier of an Elasticsearch cluster. -
DB_ELASTICSEARCH_NODE_NAME
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> DB_ELASTICSEARCH_NODE_NAMEDeprecated.Deprecated, use `db.instance.id` instead.Deprecated, usedb.instance.idinstead. -
DB_ELASTICSEARCH_PATH_PARTS
public static final io.opentelemetry.semconv.AttributeKeyTemplate<String> DB_ELASTICSEARCH_PATH_PARTSA dynamic value in the url path.Notes:
- Many Elasticsearch url paths allow dynamic values. These SHOULD be recorded in span
attributes in the format
db.elasticsearch.path_parts.<key>, where<key>is the url path part name. The implementation SHOULD reference the elasticsearch schema in order to map the path part values to their names.
- Many Elasticsearch url paths allow dynamic values. These SHOULD be recorded in span
attributes in the format
-
DB_INSTANCE_ID
An identifier (address, unique name, or any other identifier) of the database instance that is executing queries or mutations on the current connection. This is useful in cases where the database is running in a clustered environment and the instrumentation is able to record the node executing the query. The client may obtain this value in databases like MySQL using queries likeselect @@hostname. -
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
The MongoDB collection being accessed within the database stated indb.name. -
DB_MSSQL_INSTANCE_NAME
The Microsoft SQL Server instance name connecting to. This name is used to determine the port of a named instance.Notes:
- If setting a
db.mssql.instance_name,server.portis no longer required (but still recommended if non-standard).
- If setting a
-
DB_NAME
This attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails).Notes:
- In some SQL databases, the database name to be used is called "schema name". In case there are multiple layers that could be considered for database name (e.g. Oracle instance name and schema name), the database name to be used is the more specific layer (e.g. Oracle schema name).
-
DB_OPERATION
The name of the operation being executed, e.g. the MongoDB command name such asfindAndModify, or the SQL keyword.Notes:
- When setting this to an SQL keyword, it is not recommended to attempt any client-side
parsing of
db.statementjust to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted.
- When setting this to an SQL keyword, it is not recommended to attempt any client-side
parsing of
-
DB_REDIS_DATABASE_INDEX
The index of the database being accessed as used in theSELECTcommand, provided as an integer. To be used instead of the genericdb.nameattribute. -
DB_SQL_TABLE
The name of the primary table that the operation is acting upon, including the database name (if applicable).Notes:
- It is not recommended to attempt any client-side parsing of
db.statementjust to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set.
- It is not recommended to attempt any client-side parsing of
-
DB_STATEMENT
The database statement being executed. -
DB_SYSTEM
An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. -
DB_USER
Username for accessing the database.
-