Moved database attributes to the attributes registry (#441)
Signed-off-by: Alexander Wert <alexander.wert@elastic.co> Co-authored-by: Joao Grassi <joao.grassi@dynatrace.com> Co-authored-by: Armin Ruech <7052238+arminru@users.noreply.github.com>
This commit is contained in:
parent
48d3348fea
commit
811dbab22a
|
|
@ -31,6 +31,7 @@ Currently, the following namespaces exist:
|
||||||
* [Cloud](cloud.md)
|
* [Cloud](cloud.md)
|
||||||
* [Code](code.md)
|
* [Code](code.md)
|
||||||
* [Container](container.md)
|
* [Container](container.md)
|
||||||
|
* [DB](db.md) (database)
|
||||||
* [Destination](destination.md)
|
* [Destination](destination.md)
|
||||||
* [Device](device.md)
|
* [Device](device.md)
|
||||||
* [Error](error.md)
|
* [Error](error.md)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,222 @@
|
||||||
|
<!--- Hugo front matter used to generate the website version of this page:
|
||||||
|
--->
|
||||||
|
|
||||||
|
# Database
|
||||||
|
|
||||||
|
<!-- toc -->
|
||||||
|
|
||||||
|
- [Generic Database Attributes](#generic-database-attributes)
|
||||||
|
- [Cassandra Attributes](#cassandra-attributes)
|
||||||
|
- [CosmosDB Attributes](#cosmosdb-attributes)
|
||||||
|
- [Elasticsearch Attributes](#elasticsearch-attributes)
|
||||||
|
- [JDBC Attributes](#jdbc-attributes)
|
||||||
|
- [MongoDB Attributes](#mongodb-attributes)
|
||||||
|
- [MSSQL Attributes](#mssql-attributes)
|
||||||
|
- [Redis Attributes](#redis-attributes)
|
||||||
|
- [SQL Attributes](#sql-attributes)
|
||||||
|
|
||||||
|
<!-- tocstop -->
|
||||||
|
|
||||||
|
## Generic Database Attributes
|
||||||
|
|
||||||
|
<!-- semconv registry.db(omit_requirement_level,tag=db-generic) -->
|
||||||
|
| Attribute | Type | Description | Examples |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `db.connection_string` | string | The connection string used to connect to the database. It is recommended to remove embedded credentials. | `Server=(localdb)\v11.0;Integrated Security=true;` |
|
||||||
|
| `db.name` | string | 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). [1] | `customers`; `main` |
|
||||||
|
| `db.operation` | string | The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword. [2] | `findAndModify`; `HMSET`; `SELECT` |
|
||||||
|
| `db.statement` | string | The database statement being executed. | `SELECT * FROM wuser_table`; `SET mykey "WuValue"` |
|
||||||
|
| `db.system` | string | An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. | `other_sql` |
|
||||||
|
| `db.user` | string | Username for accessing the database. | `readonly_user`; `reporting_user` |
|
||||||
|
|
||||||
|
**[1]:** 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).
|
||||||
|
|
||||||
|
**[2]:** When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just 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.
|
||||||
|
|
||||||
|
`db.system` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
|
||||||
|
|
||||||
|
| Value | Description |
|
||||||
|
|---|---|
|
||||||
|
| `other_sql` | Some other SQL database. Fallback only. See notes. |
|
||||||
|
| `mssql` | Microsoft SQL Server |
|
||||||
|
| `mssqlcompact` | Microsoft SQL Server Compact |
|
||||||
|
| `mysql` | MySQL |
|
||||||
|
| `oracle` | Oracle Database |
|
||||||
|
| `db2` | IBM Db2 |
|
||||||
|
| `postgresql` | PostgreSQL |
|
||||||
|
| `redshift` | Amazon Redshift |
|
||||||
|
| `hive` | Apache Hive |
|
||||||
|
| `cloudscape` | Cloudscape |
|
||||||
|
| `hsqldb` | HyperSQL DataBase |
|
||||||
|
| `progress` | Progress Database |
|
||||||
|
| `maxdb` | SAP MaxDB |
|
||||||
|
| `hanadb` | SAP HANA |
|
||||||
|
| `ingres` | Ingres |
|
||||||
|
| `firstsql` | FirstSQL |
|
||||||
|
| `edb` | EnterpriseDB |
|
||||||
|
| `cache` | InterSystems Caché |
|
||||||
|
| `adabas` | Adabas (Adaptable Database System) |
|
||||||
|
| `firebird` | Firebird |
|
||||||
|
| `derby` | Apache Derby |
|
||||||
|
| `filemaker` | FileMaker |
|
||||||
|
| `informix` | Informix |
|
||||||
|
| `instantdb` | InstantDB |
|
||||||
|
| `interbase` | InterBase |
|
||||||
|
| `mariadb` | MariaDB |
|
||||||
|
| `netezza` | Netezza |
|
||||||
|
| `pervasive` | Pervasive PSQL |
|
||||||
|
| `pointbase` | PointBase |
|
||||||
|
| `sqlite` | SQLite |
|
||||||
|
| `sybase` | Sybase |
|
||||||
|
| `teradata` | Teradata |
|
||||||
|
| `vertica` | Vertica |
|
||||||
|
| `h2` | H2 |
|
||||||
|
| `coldfusion` | ColdFusion IMQ |
|
||||||
|
| `cassandra` | Apache Cassandra |
|
||||||
|
| `hbase` | Apache HBase |
|
||||||
|
| `mongodb` | MongoDB |
|
||||||
|
| `redis` | Redis |
|
||||||
|
| `couchbase` | Couchbase |
|
||||||
|
| `couchdb` | CouchDB |
|
||||||
|
| `cosmosdb` | Microsoft Azure Cosmos DB |
|
||||||
|
| `dynamodb` | Amazon DynamoDB |
|
||||||
|
| `neo4j` | Neo4j |
|
||||||
|
| `geode` | Apache Geode |
|
||||||
|
| `elasticsearch` | Elasticsearch |
|
||||||
|
| `memcached` | Memcached |
|
||||||
|
| `cockroachdb` | CockroachDB |
|
||||||
|
| `opensearch` | OpenSearch |
|
||||||
|
| `clickhouse` | ClickHouse |
|
||||||
|
| `spanner` | Cloud Spanner |
|
||||||
|
| `trino` | Trino |
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
## Cassandra Attributes
|
||||||
|
|
||||||
|
<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-cassandra) -->
|
||||||
|
| Attribute | Type | Description | Examples |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `db.cassandra.consistency_level` | string | The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). | `all` |
|
||||||
|
| `db.cassandra.coordinator.dc` | string | The data center of the coordinating node for a query. | `us-west-2` |
|
||||||
|
| `db.cassandra.coordinator.id` | string | The ID of the coordinating node for a query. | `be13faa2-8574-4d71-926d-27f16cf8a7af` |
|
||||||
|
| `db.cassandra.idempotence` | boolean | Whether or not the query is idempotent. | |
|
||||||
|
| `db.cassandra.page_size` | int | The fetch size used for paging, i.e. how many rows will be returned at once. | `5000` |
|
||||||
|
| `db.cassandra.speculative_execution_count` | int | The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. | `0`; `2` |
|
||||||
|
| `db.cassandra.table` | string | The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable). [1] | `mytable` |
|
||||||
|
|
||||||
|
**[1]:** 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.statement` just 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.
|
||||||
|
|
||||||
|
`db.cassandra.consistency_level` MUST be one of the following:
|
||||||
|
|
||||||
|
| Value | Description |
|
||||||
|
|---|---|
|
||||||
|
| `all` | all |
|
||||||
|
| `each_quorum` | each_quorum |
|
||||||
|
| `quorum` | quorum |
|
||||||
|
| `local_quorum` | local_quorum |
|
||||||
|
| `one` | one |
|
||||||
|
| `two` | two |
|
||||||
|
| `three` | three |
|
||||||
|
| `local_one` | local_one |
|
||||||
|
| `any` | any |
|
||||||
|
| `serial` | serial |
|
||||||
|
| `local_serial` | local_serial |
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
## CosmosDB Attributes
|
||||||
|
|
||||||
|
<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-cosmosdb) -->
|
||||||
|
| Attribute | Type | Description | Examples |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `db.cosmosdb.client_id` | string | Unique Cosmos client instance id. | `3ba4827d-4422-483f-b59f-85b74211c11d` |
|
||||||
|
| `db.cosmosdb.connection_mode` | string | Cosmos client connection mode. | `gateway` |
|
||||||
|
| `db.cosmosdb.container` | string | Cosmos DB container name. | `anystring` |
|
||||||
|
| `db.cosmosdb.operation_type` | string | CosmosDB Operation Type. | `Invalid` |
|
||||||
|
| `db.cosmosdb.request_charge` | double | RU consumed for that operation | `46.18`; `1.0` |
|
||||||
|
| `db.cosmosdb.request_content_length` | int | Request payload size in bytes | |
|
||||||
|
| `db.cosmosdb.status_code` | int | Cosmos DB status code. | `200`; `201` |
|
||||||
|
| `db.cosmosdb.sub_status_code` | int | Cosmos DB sub status code. | `1000`; `1002` |
|
||||||
|
|
||||||
|
`db.cosmosdb.connection_mode` MUST be one of the following:
|
||||||
|
|
||||||
|
| Value | Description |
|
||||||
|
|---|---|
|
||||||
|
| `gateway` | Gateway (HTTP) connections mode |
|
||||||
|
| `direct` | Direct connection. |
|
||||||
|
|
||||||
|
`db.cosmosdb.operation_type` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
|
||||||
|
|
||||||
|
| Value | Description |
|
||||||
|
|---|---|
|
||||||
|
| `Invalid` | invalid |
|
||||||
|
| `Create` | create |
|
||||||
|
| `Patch` | patch |
|
||||||
|
| `Read` | read |
|
||||||
|
| `ReadFeed` | read_feed |
|
||||||
|
| `Delete` | delete |
|
||||||
|
| `Replace` | replace |
|
||||||
|
| `Execute` | execute |
|
||||||
|
| `Query` | query |
|
||||||
|
| `Head` | head |
|
||||||
|
| `HeadFeed` | head_feed |
|
||||||
|
| `Upsert` | upsert |
|
||||||
|
| `Batch` | batch |
|
||||||
|
| `QueryPlan` | query_plan |
|
||||||
|
| `ExecuteJavaScript` | execute_javascript |
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
## Elasticsearch Attributes
|
||||||
|
|
||||||
|
<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-elasticsearch) -->
|
||||||
|
| Attribute | Type | Description | Examples |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `db.elasticsearch.cluster.name` | string | Represents the identifier of an Elasticsearch cluster. | `e9106fc68e3044f0b1475b04bf4ffd5f` |
|
||||||
|
| `db.elasticsearch.node.name` | string | Represents the human-readable identifier of the node/instance to which a request was routed. | `instance-0000000001` |
|
||||||
|
| `db.elasticsearch.path_parts.<key>` | string | A dynamic value in the url path. [1] | `db.elasticsearch.path_parts.index=test-index`; `db.elasticsearch.path_parts.doc_id=123` |
|
||||||
|
|
||||||
|
**[1]:** 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](https://raw.githubusercontent.com/elastic/elasticsearch-specification/main/output/schema/schema.json) in order to map the path part values to their names.
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
## JDBC Attributes
|
||||||
|
|
||||||
|
<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-jdbc) -->
|
||||||
|
| Attribute | Type | Description | Examples |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `db.jdbc.driver_classname` | string | The fully-qualified class name of the [Java Database Connectivity (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver used to connect. | `org.postgresql.Driver`; `com.microsoft.sqlserver.jdbc.SQLServerDriver` |
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
## MongoDB Attributes
|
||||||
|
|
||||||
|
<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-mongodb) -->
|
||||||
|
| Attribute | Type | Description | Examples |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `db.mongodb.collection` | string | The MongoDB collection being accessed within the database stated in `db.name`. | `customers`; `products` |
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
## MSSQL Attributes
|
||||||
|
|
||||||
|
<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-mssql) -->
|
||||||
|
| Attribute | Type | Description | Examples |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `db.mssql.instance_name` | string | The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance. [1] | `MSSQLSERVER` |
|
||||||
|
|
||||||
|
**[1]:** If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard).
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
## Redis Attributes
|
||||||
|
|
||||||
|
<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-redis) -->
|
||||||
|
| Attribute | Type | Description | Examples |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `db.redis.database_index` | int | The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute. | `0`; `1`; `15` |
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
## SQL Attributes
|
||||||
|
|
||||||
|
<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-sql) -->
|
||||||
|
| Attribute | Type | Description | Examples |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `db.sql.table` | string | The name of the primary table that the operation is acting upon, including the database name (if applicable). [1] | `public.users`; `customers` |
|
||||||
|
|
||||||
|
**[1]:** It is not recommended to attempt any client-side parsing of `db.statement` just 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.
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
@ -14,17 +14,17 @@ described on this page.
|
||||||
|
|
||||||
## Call-level attributes
|
## Call-level attributes
|
||||||
|
|
||||||
<!-- semconv db.cassandra(tag=call-level-tech-specific-cassandra) -->
|
<!-- semconv db.cassandra(full,tag=call-level-tech-specific-cassandra) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `db.cassandra.consistency_level` | string | The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). | `all` | Recommended |
|
| [`db.cassandra.consistency_level`](../attributes-registry/db.md) | string | The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). | `all` | Recommended |
|
||||||
| `db.cassandra.coordinator.dc` | string | The data center of the coordinating node for a query. | `us-west-2` | Recommended |
|
| [`db.cassandra.coordinator.dc`](../attributes-registry/db.md) | string | The data center of the coordinating node for a query. | `us-west-2` | Recommended |
|
||||||
| `db.cassandra.coordinator.id` | string | The ID of the coordinating node for a query. | `be13faa2-8574-4d71-926d-27f16cf8a7af` | Recommended |
|
| [`db.cassandra.coordinator.id`](../attributes-registry/db.md) | string | The ID of the coordinating node for a query. | `be13faa2-8574-4d71-926d-27f16cf8a7af` | Recommended |
|
||||||
| `db.cassandra.idempotence` | boolean | Whether or not the query is idempotent. | | Recommended |
|
| [`db.cassandra.idempotence`](../attributes-registry/db.md) | boolean | Whether or not the query is idempotent. | | Recommended |
|
||||||
| `db.cassandra.page_size` | int | The fetch size used for paging, i.e. how many rows will be returned at once. | `5000` | Recommended |
|
| [`db.cassandra.page_size`](../attributes-registry/db.md) | int | The fetch size used for paging, i.e. how many rows will be returned at once. | `5000` | Recommended |
|
||||||
| `db.cassandra.speculative_execution_count` | int | The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. | `0`; `2` | Recommended |
|
| [`db.cassandra.speculative_execution_count`](../attributes-registry/db.md) | int | The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. | `0`; `2` | Recommended |
|
||||||
| `db.cassandra.table` | string | The name of the primary table that the operation is acting upon, including the keyspace name (if applicable). [1] | `mytable` | Recommended |
|
| [`db.cassandra.table`](../attributes-registry/db.md) | string | The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable). [1] | `mytable` | Recommended |
|
||||||
| [`db.name`](database-spans.md) | string | The keyspace name in Cassandra. [2] | `mykeyspace` | Conditionally Required: If applicable. |
|
| [`db.name`](../attributes-registry/db.md) | string | The keyspace name in Cassandra. [2] | `mykeyspace` | Conditionally Required: If applicable. |
|
||||||
|
|
||||||
**[1]:** 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.statement` just 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.
|
**[1]:** 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.statement` just 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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,17 +17,17 @@ described on this page.
|
||||||
|
|
||||||
Cosmos DB instrumentation includes call-level (public API) surface spans and network spans. Depending on the connection mode (Gateway or Direct), network-level spans may also be created.
|
Cosmos DB instrumentation includes call-level (public API) surface spans and network spans. Depending on the connection mode (Gateway or Direct), network-level spans may also be created.
|
||||||
|
|
||||||
<!-- semconv db.cosmosdb -->
|
<!-- semconv db.cosmosdb(full,tag=call-level-tech-specific) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `db.cosmosdb.client_id` | string | Unique Cosmos client instance id. | `3ba4827d-4422-483f-b59f-85b74211c11d` | Recommended |
|
| [`db.cosmosdb.client_id`](../attributes-registry/db.md) | string | Unique Cosmos client instance id. | `3ba4827d-4422-483f-b59f-85b74211c11d` | Recommended |
|
||||||
| `db.cosmosdb.connection_mode` | string | Cosmos client connection mode. | `gateway` | Conditionally Required: if not `direct` (or pick gw as default) |
|
| [`db.cosmosdb.connection_mode`](../attributes-registry/db.md) | string | Cosmos client connection mode. | `gateway` | Conditionally Required: if not `direct` (or pick gw as default) |
|
||||||
| `db.cosmosdb.container` | string | Cosmos DB container name. | `anystring` | Conditionally Required: if available |
|
| [`db.cosmosdb.container`](../attributes-registry/db.md) | string | Cosmos DB container name. | `anystring` | Conditionally Required: if available |
|
||||||
| `db.cosmosdb.operation_type` | string | CosmosDB Operation Type. | `Invalid` | Conditionally Required: [1] |
|
| [`db.cosmosdb.operation_type`](../attributes-registry/db.md) | string | CosmosDB Operation Type. | `Invalid` | Conditionally Required: [1] |
|
||||||
| `db.cosmosdb.request_charge` | double | RU consumed for that operation | `46.18`; `1.0` | Conditionally Required: when available |
|
| [`db.cosmosdb.request_charge`](../attributes-registry/db.md) | double | RU consumed for that operation | `46.18`; `1.0` | Conditionally Required: when available |
|
||||||
| `db.cosmosdb.request_content_length` | int | Request payload size in bytes | | Recommended |
|
| [`db.cosmosdb.request_content_length`](../attributes-registry/db.md) | int | Request payload size in bytes | | Recommended |
|
||||||
| `db.cosmosdb.status_code` | int | Cosmos DB status code. | `200`; `201` | Conditionally Required: if response was received |
|
| [`db.cosmosdb.status_code`](../attributes-registry/db.md) | int | Cosmos DB status code. | `200`; `201` | Conditionally Required: if response was received |
|
||||||
| `db.cosmosdb.sub_status_code` | int | Cosmos DB sub status code. | `1000`; `1002` | Conditionally Required: [2] |
|
| [`db.cosmosdb.sub_status_code`](../attributes-registry/db.md) | int | Cosmos DB sub status code. | `1000`; `1002` | Conditionally Required: [2] |
|
||||||
| [`user_agent.original`](../attributes-registry/user-agent.md) | string | Full user-agent string is generated by Cosmos DB SDK [3] | `cosmos-netstandard-sdk/3.23.0\|3.23.1\|1\|X64\|Linux 5.4.0-1098-azure 104 18\|.NET Core 3.1.32\|S\|` | Recommended |
|
| [`user_agent.original`](../attributes-registry/user-agent.md) | string | Full user-agent string is generated by Cosmos DB SDK [3] | `cosmos-netstandard-sdk/3.23.0\|3.23.1\|1\|X64\|Linux 5.4.0-1098-azure 104 18\|.NET Core 3.1.32\|S\|` | Recommended |
|
||||||
|
|
||||||
**[1]:** when performing one of the operations in this list
|
**[1]:** when performing one of the operations in this list
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,10 @@ described on this page.
|
||||||
|
|
||||||
## Call-level attributes
|
## Call-level attributes
|
||||||
|
|
||||||
<!-- semconv db.couchdb(tag=call-level-tech-specific) -->
|
<!-- semconv db.couchdb(full,tag=call-level-tech-specific) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| [`db.operation`](database-spans.md) | string | The HTTP method + the target REST route. [1] | `GET /{db}/{docid}` | Conditionally Required: If `db.statement` is not applicable. |
|
| [`db.operation`](../attributes-registry/db.md) | string | The HTTP method + the target REST route. [1] | `GET /{db}/{docid}` | Conditionally Required: If `db.statement` is not applicable. |
|
||||||
|
|
||||||
**[1]:** In **CouchDB**, `db.operation` should be set to the HTTP method + the target REST route according to the API reference documentation. For example, when retrieving a document, `db.operation` would be set to (literally, i.e., without replacing the placeholders with concrete values): [`GET /{db}/{docid}`](http://docs.couchdb.org/en/stable/api/document/common.html#get--db-docid).
|
**[1]:** In **CouchDB**, `db.operation` should be set to the HTTP method + the target REST route according to the API reference documentation. For example, when retrieving a document, `db.operation` would be set to (literally, i.e., without replacing the placeholders with concrete values): [`GET /{db}/{docid}`](http://docs.couchdb.org/en/stable/api/document/common.html#get--db-docid).
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
|
||||||
|
|
@ -61,12 +61,12 @@ When it's otherwise impossible to get any meaningful span name, `db.name` or the
|
||||||
These attributes will usually be the same for all operations performed over the same database connection.
|
These attributes will usually be the same for all operations performed over the same database connection.
|
||||||
Some database systems may allow a connection to switch to a different `db.user`, for example, and other database systems may not even have the concept of a connection at all.
|
Some database systems may allow a connection to switch to a different `db.user`, for example, and other database systems may not even have the concept of a connection at all.
|
||||||
|
|
||||||
<!-- semconv db(tag=connection-level) -->
|
<!-- semconv db(full,tag=connection-level) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `db.connection_string` | string | The connection string used to connect to the database. It is recommended to remove embedded credentials. | `Server=(localdb)\v11.0;Integrated Security=true;` | Recommended |
|
| [`db.connection_string`](../attributes-registry/db.md) | string | The connection string used to connect to the database. It is recommended to remove embedded credentials. | `Server=(localdb)\v11.0;Integrated Security=true;` | Recommended |
|
||||||
| `db.system` | string | An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. | `other_sql` | Required |
|
| [`db.system`](../attributes-registry/db.md) | string | An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. | `other_sql` | Required |
|
||||||
| `db.user` | string | Username for accessing the database. | `readonly_user`; `reporting_user` | Recommended |
|
| [`db.user`](../attributes-registry/db.md) | string | Username for accessing the database. | `readonly_user`; `reporting_user` | Recommended |
|
||||||
| [`network.peer.address`](../attributes-registry/network.md) | string | Peer address of the network connection - IP address or Unix domain socket name. | `10.1.2.80`; `/tmp/my.sock` | Recommended |
|
| [`network.peer.address`](../attributes-registry/network.md) | string | Peer address of the network connection - IP address or Unix domain socket name. | `10.1.2.80`; `/tmp/my.sock` | Recommended |
|
||||||
| [`network.peer.port`](../attributes-registry/network.md) | int | Peer port number of the network connection. | `65123` | Recommended: If `network.peer.address` is set. |
|
| [`network.peer.port`](../attributes-registry/network.md) | int | Peer port number of the network connection. | `65123` | Recommended: If `network.peer.address` is set. |
|
||||||
| [`network.transport`](../attributes-registry/network.md) | string | [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). [1] | `tcp`; `udp` | Recommended |
|
| [`network.transport`](../attributes-registry/network.md) | string | [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). [1] | `tcp`; `udp` | Recommended |
|
||||||
|
|
@ -144,6 +144,22 @@ different processes could be listening on TCP port 12345 and UDP port 12345.
|
||||||
| `clickhouse` | ClickHouse |
|
| `clickhouse` | ClickHouse |
|
||||||
| `spanner` | Cloud Spanner |
|
| `spanner` | Cloud Spanner |
|
||||||
| `trino` | Trino |
|
| `trino` | Trino |
|
||||||
|
|
||||||
|
`network.transport` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
|
||||||
|
|
||||||
|
| Value | Description |
|
||||||
|
|---|---|
|
||||||
|
| `tcp` | TCP |
|
||||||
|
| `udp` | UDP |
|
||||||
|
| `pipe` | Named or anonymous pipe. |
|
||||||
|
| `unix` | Unix domain socket |
|
||||||
|
|
||||||
|
`network.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
|
||||||
|
|
||||||
|
| Value | Description |
|
||||||
|
|---|---|
|
||||||
|
| `ipv4` | IPv4 |
|
||||||
|
| `ipv6` | IPv6 |
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
### Notes and well-known identifiers for `db.system`
|
### Notes and well-known identifiers for `db.system`
|
||||||
|
|
@ -169,12 +185,12 @@ When additional attributes are added that only apply to a specific DBMS, its ide
|
||||||
These attributes may be different for each operation performed, even if the same connection is used for multiple operations.
|
These attributes may be different for each operation performed, even if the same connection is used for multiple operations.
|
||||||
Usually only one `db.name` will be used per connection though.
|
Usually only one `db.name` will be used per connection though.
|
||||||
|
|
||||||
<!-- semconv db(tag=call-level,remove_constraints) -->
|
<!-- semconv db(full,tag=call-level,remove_constraints) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `db.name` | string | 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). [1] | `customers`; `main` | Conditionally Required: If applicable. |
|
| [`db.name`](../attributes-registry/db.md) | string | 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). [1] | `customers`; `main` | Conditionally Required: If applicable. |
|
||||||
| `db.operation` | string | The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword. [2] | `findAndModify`; `HMSET`; `SELECT` | Conditionally Required: If `db.statement` is not applicable. |
|
| [`db.operation`](../attributes-registry/db.md) | string | The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword. [2] | `findAndModify`; `HMSET`; `SELECT` | Conditionally Required: If `db.statement` is not applicable. |
|
||||||
| `db.statement` | string | The database statement being executed. | `SELECT * FROM wuser_table`; `SET mykey "WuValue"` | Recommended: [3] |
|
| [`db.statement`](../attributes-registry/db.md) | string | The database statement being executed. | `SELECT * FROM wuser_table`; `SET mykey "WuValue"` | Recommended: [3] |
|
||||||
|
|
||||||
**[1]:** 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).
|
**[1]:** 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).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ These attributes are filled in for all DynamoDB request types.
|
||||||
<!-- semconv dynamodb.all -->
|
<!-- semconv dynamodb.all -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| [`db.system`](database-spans.md) | string | The value `dynamodb`. | `dynamodb` | Required |
|
| [`db.system`](../attributes-registry/db.md) | string | The value `dynamodb`. | `dynamodb` | Required |
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
## DynamoDB.BatchGetItem
|
## DynamoDB.BatchGetItem
|
||||||
|
|
|
||||||
|
|
@ -23,14 +23,14 @@ If the endpoint id is not available, the span name SHOULD be the `http.request.m
|
||||||
|
|
||||||
## Call-level attributes
|
## Call-level attributes
|
||||||
|
|
||||||
<!-- semconv db.elasticsearch -->
|
<!-- semconv db.elasticsearch(full,tag=call-level-tech-specific) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `db.elasticsearch.cluster.name` | string | Represents the identifier of an Elasticsearch cluster. | `e9106fc68e3044f0b1475b04bf4ffd5f` | Recommended: [1] |
|
| [`db.elasticsearch.cluster.name`](../attributes-registry/db.md) | string | Represents the identifier of an Elasticsearch cluster. | `e9106fc68e3044f0b1475b04bf4ffd5f` | Recommended: [1] |
|
||||||
| `db.elasticsearch.node.name` | string | Represents the human-readable identifier of the node/instance to which a request was routed. | `instance-0000000001` | Recommended: [2] |
|
| [`db.elasticsearch.node.name`](../attributes-registry/db.md) | string | Represents the human-readable identifier of the node/instance to which a request was routed. | `instance-0000000001` | Recommended: [2] |
|
||||||
| `db.elasticsearch.path_parts.<key>` | string | A dynamic value in the url path. [3] | `db.elasticsearch.path_parts.index=test-index`; `db.elasticsearch.path_parts.doc_id=123` | Conditionally Required: when the url has dynamic values |
|
| [`db.elasticsearch.path_parts.<key>`](../attributes-registry/db.md) | string | A dynamic value in the url path. [3] | `db.elasticsearch.path_parts.index=test-index`; `db.elasticsearch.path_parts.doc_id=123` | Conditionally Required: when the url has dynamic values |
|
||||||
| [`db.operation`](database-spans.md) | string | The endpoint identifier for the request. [4] | `search`; `ml.close_job`; `cat.aliases` | Required |
|
| [`db.operation`](../attributes-registry/db.md) | string | The endpoint identifier for the request. [4] | `search`; `ml.close_job`; `cat.aliases` | Required |
|
||||||
| [`db.statement`](database-spans.md) | string | The request body for a [search-type query](https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html), as a json string. | `"{\"query\":{\"term\":{\"user.id\":\"kimchy\"}}}"` | Recommended: [5] |
|
| [`db.statement`](../attributes-registry/db.md) | string | The request body for a [search-type query](https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html), as a json string. | `"{\"query\":{\"term\":{\"user.id\":\"kimchy\"}}}"` | Recommended: [5] |
|
||||||
| [`http.request.method`](../attributes-registry/http.md) | string | HTTP request method. [6] | `GET`; `POST`; `HEAD` | Required |
|
| [`http.request.method`](../attributes-registry/http.md) | string | HTTP request method. [6] | `GET`; `POST`; `HEAD` | Required |
|
||||||
| [`server.address`](../attributes-registry/server.md) | string | Name of the database host. [7] | `example.com`; `10.1.2.80`; `/tmp/my.sock` | Recommended |
|
| [`server.address`](../attributes-registry/server.md) | string | Name of the database host. [7] | `example.com`; `10.1.2.80`; `/tmp/my.sock` | Recommended |
|
||||||
| [`server.port`](../attributes-registry/server.md) | int | Server port number. [8] | `80`; `8080`; `443` | Conditionally Required: [9] |
|
| [`server.port`](../attributes-registry/server.md) | int | Server port number. [8] | `80`; `8080`; `443` | Conditionally Required: [9] |
|
||||||
|
|
@ -70,6 +70,21 @@ Tracing instrumentations that do so, MUST also set `http.request.method_original
|
||||||
**[10]:** For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless.
|
**[10]:** For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless.
|
||||||
`url.full` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password SHOULD be redacted and attribute's value SHOULD be `https://REDACTED:REDACTED@www.example.com/`.
|
`url.full` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password SHOULD be redacted and attribute's value SHOULD be `https://REDACTED:REDACTED@www.example.com/`.
|
||||||
`url.full` SHOULD capture the absolute URL when it is available (or can be reconstructed) and SHOULD NOT be validated or modified except for sanitizing purposes.
|
`url.full` SHOULD capture the absolute URL when it is available (or can be reconstructed) and SHOULD NOT be validated or modified except for sanitizing purposes.
|
||||||
|
|
||||||
|
`http.request.method` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
|
||||||
|
|
||||||
|
| Value | Description |
|
||||||
|
|---|---|
|
||||||
|
| `CONNECT` | CONNECT method. |
|
||||||
|
| `DELETE` | DELETE method. |
|
||||||
|
| `GET` | GET method. |
|
||||||
|
| `HEAD` | HEAD method. |
|
||||||
|
| `OPTIONS` | OPTIONS method. |
|
||||||
|
| `PATCH` | PATCH method. |
|
||||||
|
| `POST` | POST method. |
|
||||||
|
| `PUT` | PUT method. |
|
||||||
|
| `TRACE` | TRACE method. |
|
||||||
|
| `_OTHER` | Any HTTP method that the instrumentation has no prior knowledge of. |
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,10 @@ described on this page.
|
||||||
|
|
||||||
## Call-level attributes
|
## Call-level attributes
|
||||||
|
|
||||||
<!-- semconv db.hbase(tag=call-level-tech-specific) -->
|
<!-- semconv db.hbase(full,tag=call-level-tech-specific) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| [`db.name`](database-spans.md) | string | The HBase namespace. [1] | `mynamespace` | Conditionally Required: If applicable. |
|
| [`db.name`](../attributes-registry/db.md) | string | The HBase namespace. [1] | `mynamespace` | Conditionally Required: If applicable. |
|
||||||
|
|
||||||
**[1]:** For HBase the `db.name` should be set to the HBase namespace.
|
**[1]:** For HBase the `db.name` should be set to the HBase namespace.
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,10 @@ described on this page.
|
||||||
|
|
||||||
## Call-level attributes
|
## Call-level attributes
|
||||||
|
|
||||||
<!-- semconv db.mongodb(tag=call-level-tech-specific) -->
|
<!-- semconv db.mongodb(full,tag=call-level-tech-specific) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `db.mongodb.collection` | string | The collection being accessed within the database stated in `db.name`. | `customers`; `products` | Required |
|
| [`db.mongodb.collection`](../attributes-registry/db.md) | string | The MongoDB collection being accessed within the database stated in `db.name`. | `customers`; `products` | Required |
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,11 @@ described on this page.
|
||||||
|
|
||||||
## Connection-level attributes
|
## Connection-level attributes
|
||||||
|
|
||||||
<!-- semconv db.mssql(tag=connection-level-tech-specific) -->
|
<!-- semconv db.mssql(full,tag=connection-level-tech-specific) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| [`db.jdbc.driver_classname`](database-spans.md) | string | The fully-qualified class name of the [Java Database Connectivity (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver used to connect. | `org.postgresql.Driver`; `com.microsoft.sqlserver.jdbc.SQLServerDriver` | Recommended |
|
| [`db.jdbc.driver_classname`](../attributes-registry/db.md) | string | The fully-qualified class name of the [Java Database Connectivity (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver used to connect. | `org.postgresql.Driver`; `com.microsoft.sqlserver.jdbc.SQLServerDriver` | Recommended |
|
||||||
| `db.mssql.instance_name` | string | The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance. [1] | `MSSQLSERVER` | Recommended |
|
| [`db.mssql.instance_name`](../attributes-registry/db.md) | string | The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance. [1] | `MSSQLSERVER` | Recommended |
|
||||||
|
|
||||||
**[1]:** If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard).
|
**[1]:** If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard).
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,11 @@ described on this page.
|
||||||
|
|
||||||
## Call-level attributes
|
## Call-level attributes
|
||||||
|
|
||||||
<!-- semconv db.redis(tag=call-level-tech-specific) -->
|
<!-- semconv db.redis(full,tag=call-level-tech-specific) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `db.redis.database_index` | int | The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute. | `0`; `1`; `15` | Conditionally Required: If other than the default database (`0`). |
|
| [`db.redis.database_index`](../attributes-registry/db.md) | int | The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute. | `0`; `1`; `15` | Conditionally Required: If other than the default database (`0`). |
|
||||||
| [`db.statement`](database-spans.md) | string | The full syntax of the Redis CLI command. [1] | `HMSET myhash field1 'Hello' field2 'World'` | Recommended: [2] |
|
| [`db.statement`](../attributes-registry/db.md) | string | The full syntax of the Redis CLI command. [1] | `HMSET myhash field1 'Hello' field2 'World'` | Recommended: [2] |
|
||||||
|
|
||||||
**[1]:** For **Redis**, the value provided for `db.statement` SHOULD correspond to the syntax of the Redis CLI. If, for example, the [`HMSET` command](https://redis.io/commands/hmset) is invoked, `"HMSET myhash field1 'Hello' field2 'World'"` would be a suitable value for `db.statement`.
|
**[1]:** For **Redis**, the value provided for `db.statement` SHOULD correspond to the syntax of the Redis CLI. If, for example, the [`HMSET` command](https://redis.io/commands/hmset) is invoked, `"HMSET myhash field1 'Hello' field2 'World'"` would be a suitable value for `db.statement`.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,10 @@ described on this page.
|
||||||
|
|
||||||
## Call-level attributes
|
## Call-level attributes
|
||||||
|
|
||||||
<!-- semconv db.sql(tag=call-level-tech-specific) -->
|
<!-- semconv db.sql(full,tag=call-level-tech-specific) -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `db.sql.table` | string | The name of the primary table that the operation is acting upon, including the database name (if applicable). [1] | `public.users`; `customers` | Recommended |
|
| [`db.sql.table`](../attributes-registry/db.md) | string | The name of the primary table that the operation is acting upon, including the database name (if applicable). [1] | `public.users`; `customers` | Recommended |
|
||||||
|
|
||||||
**[1]:** It is not recommended to attempt any client-side parsing of `db.statement` just 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.
|
**[1]:** It is not recommended to attempt any client-side parsing of `db.statement` just 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.
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,424 @@
|
||||||
|
groups:
|
||||||
|
- id: registry.db
|
||||||
|
prefix: db
|
||||||
|
type: attribute_group
|
||||||
|
brief: >
|
||||||
|
This document defines the attributes used to describe telemetry in the context of databases.
|
||||||
|
attributes:
|
||||||
|
- id: cassandra.coordinator.dc
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
The data center of the coordinating node for a query.
|
||||||
|
examples: 'us-west-2'
|
||||||
|
tag: tech-specific-cassandra
|
||||||
|
- id: cassandra.coordinator.id
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
The ID of the coordinating node for a query.
|
||||||
|
examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af'
|
||||||
|
tag: tech-specific-cassandra
|
||||||
|
- id: cassandra.consistency_level
|
||||||
|
brief: >
|
||||||
|
The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html).
|
||||||
|
type:
|
||||||
|
members:
|
||||||
|
- id: all
|
||||||
|
value: 'all'
|
||||||
|
- id: each_quorum
|
||||||
|
value: 'each_quorum'
|
||||||
|
- id: quorum
|
||||||
|
value: 'quorum'
|
||||||
|
- id: local_quorum
|
||||||
|
value: 'local_quorum'
|
||||||
|
- id: one
|
||||||
|
value: 'one'
|
||||||
|
- id: two
|
||||||
|
value: 'two'
|
||||||
|
- id: three
|
||||||
|
value: 'three'
|
||||||
|
- id: local_one
|
||||||
|
value: 'local_one'
|
||||||
|
- id: any
|
||||||
|
value: 'any'
|
||||||
|
- id: serial
|
||||||
|
value: 'serial'
|
||||||
|
- id: local_serial
|
||||||
|
value: 'local_serial'
|
||||||
|
tag: tech-specific-cassandra
|
||||||
|
- id: cassandra.idempotence
|
||||||
|
type: boolean
|
||||||
|
brief: >
|
||||||
|
Whether or not the query is idempotent.
|
||||||
|
tag: tech-specific-cassandra
|
||||||
|
- id: cassandra.page_size
|
||||||
|
type: int
|
||||||
|
brief: >
|
||||||
|
The fetch size used for paging, i.e. how many rows will be returned at once.
|
||||||
|
examples: [5000]
|
||||||
|
tag: tech-specific-cassandra
|
||||||
|
- id: cassandra.speculative_execution_count
|
||||||
|
type: int
|
||||||
|
brief: >
|
||||||
|
The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively.
|
||||||
|
examples: [0, 2]
|
||||||
|
tag: tech-specific-cassandra
|
||||||
|
- id: cassandra.table
|
||||||
|
type: string
|
||||||
|
brief: The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable).
|
||||||
|
note: >
|
||||||
|
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.statement` just 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.
|
||||||
|
examples: 'mytable'
|
||||||
|
tag: tech-specific-cassandra
|
||||||
|
- id: connection_string
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
The connection string used to connect to the database.
|
||||||
|
It is recommended to remove embedded credentials.
|
||||||
|
examples: 'Server=(localdb)\v11.0;Integrated Security=true;'
|
||||||
|
tag: db-generic
|
||||||
|
- id: cosmosdb.client_id
|
||||||
|
type: string
|
||||||
|
brief: Unique Cosmos client instance id.
|
||||||
|
examples: '3ba4827d-4422-483f-b59f-85b74211c11d'
|
||||||
|
tag: tech-specific-cosmosdb
|
||||||
|
- id: cosmosdb.connection_mode
|
||||||
|
type:
|
||||||
|
allow_custom_values: false
|
||||||
|
members:
|
||||||
|
- id: gateway
|
||||||
|
value: 'gateway'
|
||||||
|
brief: Gateway (HTTP) connections mode
|
||||||
|
- id: direct
|
||||||
|
value: 'direct'
|
||||||
|
brief: Direct connection.
|
||||||
|
brief: Cosmos client connection mode.
|
||||||
|
tag: tech-specific-cosmosdb
|
||||||
|
- id: cosmosdb.container
|
||||||
|
type: string
|
||||||
|
brief: Cosmos DB container name.
|
||||||
|
examples: 'anystring'
|
||||||
|
tag: tech-specific-cosmosdb
|
||||||
|
- id: cosmosdb.operation_type
|
||||||
|
type:
|
||||||
|
allow_custom_values: true
|
||||||
|
members:
|
||||||
|
- id: invalid
|
||||||
|
value: 'Invalid'
|
||||||
|
- id: create
|
||||||
|
value: 'Create'
|
||||||
|
- id: patch
|
||||||
|
value: 'Patch'
|
||||||
|
- id: read
|
||||||
|
value: 'Read'
|
||||||
|
- id: read_feed
|
||||||
|
value: 'ReadFeed'
|
||||||
|
- id: delete
|
||||||
|
value: 'Delete'
|
||||||
|
- id: replace
|
||||||
|
value: 'Replace'
|
||||||
|
- id: execute
|
||||||
|
value: 'Execute'
|
||||||
|
- id: query
|
||||||
|
value: 'Query'
|
||||||
|
- id: head
|
||||||
|
value: 'Head'
|
||||||
|
- id: head_feed
|
||||||
|
value: 'HeadFeed'
|
||||||
|
- id: upsert
|
||||||
|
value: 'Upsert'
|
||||||
|
- id: batch
|
||||||
|
value: 'Batch'
|
||||||
|
- id: query_plan
|
||||||
|
value: 'QueryPlan'
|
||||||
|
- id: execute_javascript
|
||||||
|
value: 'ExecuteJavaScript'
|
||||||
|
brief: CosmosDB Operation Type.
|
||||||
|
tag: tech-specific-cosmosdb
|
||||||
|
- id: cosmosdb.request_charge
|
||||||
|
type: double
|
||||||
|
brief: RU consumed for that operation
|
||||||
|
examples: [46.18, 1.0]
|
||||||
|
tag: tech-specific-cosmosdb
|
||||||
|
- id: cosmosdb.request_content_length
|
||||||
|
type: int
|
||||||
|
brief: Request payload size in bytes
|
||||||
|
tag: tech-specific-cosmosdb
|
||||||
|
- id: cosmosdb.status_code
|
||||||
|
type: int
|
||||||
|
brief: Cosmos DB status code.
|
||||||
|
examples: [200, 201]
|
||||||
|
tag: tech-specific-cosmosdb
|
||||||
|
- id: cosmosdb.sub_status_code
|
||||||
|
type: int
|
||||||
|
brief: Cosmos DB sub status code.
|
||||||
|
examples: [1000, 1002]
|
||||||
|
tag: tech-specific-cosmosdb
|
||||||
|
- id: elasticsearch.cluster.name
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
Represents the identifier of an Elasticsearch cluster.
|
||||||
|
examples: ["e9106fc68e3044f0b1475b04bf4ffd5f"]
|
||||||
|
tag: tech-specific-elasticsearch
|
||||||
|
- id: elasticsearch.node.name
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
Represents the human-readable identifier of the node/instance to which a request was routed.
|
||||||
|
examples: ["instance-0000000001"]
|
||||||
|
tag: tech-specific-elasticsearch
|
||||||
|
- id: elasticsearch.path_parts
|
||||||
|
type: template[string]
|
||||||
|
brief: >
|
||||||
|
A dynamic value in the url path.
|
||||||
|
note: >
|
||||||
|
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](https://raw.githubusercontent.com/elastic/elasticsearch-specification/main/output/schema/schema.json)
|
||||||
|
in order to map the path part values to their names.
|
||||||
|
examples: ['db.elasticsearch.path_parts.index=test-index', 'db.elasticsearch.path_parts.doc_id=123']
|
||||||
|
tag: tech-specific-elasticsearch
|
||||||
|
- id: jdbc.driver_classname
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
The fully-qualified class name of the [Java Database Connectivity (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver used to connect.
|
||||||
|
examples: ['org.postgresql.Driver', 'com.microsoft.sqlserver.jdbc.SQLServerDriver']
|
||||||
|
tag: tech-specific-jdbc
|
||||||
|
- id: mongodb.collection
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
The MongoDB collection being accessed within the database stated in `db.name`.
|
||||||
|
examples: [ 'customers', 'products' ]
|
||||||
|
tag: tech-specific-mongodb
|
||||||
|
- id: mssql.instance_name
|
||||||
|
type: string
|
||||||
|
note: >
|
||||||
|
If setting a `db.mssql.instance_name`, `server.port` is no longer
|
||||||
|
required (but still recommended if non-standard).
|
||||||
|
brief: >
|
||||||
|
The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15)
|
||||||
|
connecting to. This name is used to determine the port of a named instance.
|
||||||
|
examples: 'MSSQLSERVER'
|
||||||
|
tag: tech-specific-mssql
|
||||||
|
- id: name
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
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).
|
||||||
|
note: >
|
||||||
|
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).
|
||||||
|
examples: [ 'customers', 'main' ]
|
||||||
|
tag: db-generic
|
||||||
|
- id: operation
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations)
|
||||||
|
such as `findAndModify`, or the SQL keyword.
|
||||||
|
note: >
|
||||||
|
When setting this to an SQL keyword, it is not recommended to
|
||||||
|
attempt any client-side parsing of `db.statement` just 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.
|
||||||
|
examples: ['findAndModify', 'HMSET', 'SELECT']
|
||||||
|
tag: db-generic
|
||||||
|
- id: redis.database_index
|
||||||
|
type: int
|
||||||
|
brief: >
|
||||||
|
The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer.
|
||||||
|
To be used instead of the generic `db.name` attribute.
|
||||||
|
examples: [0, 1, 15]
|
||||||
|
tag: tech-specific-redis
|
||||||
|
- id: sql.table
|
||||||
|
type: string
|
||||||
|
brief: The name of the primary table that the operation is acting upon, including the database name (if applicable).
|
||||||
|
note: >
|
||||||
|
It is not recommended to attempt any client-side parsing of
|
||||||
|
`db.statement` just 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.
|
||||||
|
examples: ['public.users', 'customers']
|
||||||
|
tag: tech-specific-sql
|
||||||
|
- id: statement
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
The database statement being executed.
|
||||||
|
examples: ['SELECT * FROM wuser_table', 'SET mykey "WuValue"']
|
||||||
|
tag: db-generic
|
||||||
|
- id: system
|
||||||
|
brief: An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers.
|
||||||
|
type:
|
||||||
|
allow_custom_values: true
|
||||||
|
members:
|
||||||
|
- id: other_sql
|
||||||
|
value: 'other_sql'
|
||||||
|
brief: 'Some other SQL database. Fallback only. See notes.'
|
||||||
|
- id: mssql
|
||||||
|
value: 'mssql'
|
||||||
|
brief: 'Microsoft SQL Server'
|
||||||
|
- id: mssqlcompact
|
||||||
|
value: 'mssqlcompact'
|
||||||
|
brief: 'Microsoft SQL Server Compact'
|
||||||
|
- id: mysql
|
||||||
|
value: 'mysql'
|
||||||
|
brief: 'MySQL'
|
||||||
|
- id: oracle
|
||||||
|
value: 'oracle'
|
||||||
|
brief: 'Oracle Database'
|
||||||
|
- id: db2
|
||||||
|
value: 'db2'
|
||||||
|
brief: 'IBM Db2'
|
||||||
|
- id: postgresql
|
||||||
|
value: 'postgresql'
|
||||||
|
brief: 'PostgreSQL'
|
||||||
|
- id: redshift
|
||||||
|
value: 'redshift'
|
||||||
|
brief: 'Amazon Redshift'
|
||||||
|
- id: hive
|
||||||
|
value: 'hive'
|
||||||
|
brief: 'Apache Hive'
|
||||||
|
- id: cloudscape
|
||||||
|
value: 'cloudscape'
|
||||||
|
brief: 'Cloudscape'
|
||||||
|
- id: hsqldb
|
||||||
|
value: 'hsqldb'
|
||||||
|
brief: 'HyperSQL DataBase'
|
||||||
|
- id: progress
|
||||||
|
value: 'progress'
|
||||||
|
brief: 'Progress Database'
|
||||||
|
- id: maxdb
|
||||||
|
value: 'maxdb'
|
||||||
|
brief: 'SAP MaxDB'
|
||||||
|
- id: hanadb
|
||||||
|
value: 'hanadb'
|
||||||
|
brief: 'SAP HANA'
|
||||||
|
- id: ingres
|
||||||
|
value: 'ingres'
|
||||||
|
brief: 'Ingres'
|
||||||
|
- id: firstsql
|
||||||
|
value: 'firstsql'
|
||||||
|
brief: 'FirstSQL'
|
||||||
|
- id: edb
|
||||||
|
value: 'edb'
|
||||||
|
brief: 'EnterpriseDB'
|
||||||
|
- id: cache
|
||||||
|
value: 'cache'
|
||||||
|
brief: 'InterSystems Caché'
|
||||||
|
- id: adabas
|
||||||
|
value: 'adabas'
|
||||||
|
brief: 'Adabas (Adaptable Database System)'
|
||||||
|
- id: firebird
|
||||||
|
value: 'firebird'
|
||||||
|
brief: 'Firebird'
|
||||||
|
- id: derby
|
||||||
|
value: 'derby'
|
||||||
|
brief: 'Apache Derby'
|
||||||
|
- id: filemaker
|
||||||
|
value: 'filemaker'
|
||||||
|
brief: 'FileMaker'
|
||||||
|
- id: informix
|
||||||
|
value: 'informix'
|
||||||
|
brief: 'Informix'
|
||||||
|
- id: instantdb
|
||||||
|
value: 'instantdb'
|
||||||
|
brief: 'InstantDB'
|
||||||
|
- id: interbase
|
||||||
|
value: 'interbase'
|
||||||
|
brief: 'InterBase'
|
||||||
|
- id: mariadb
|
||||||
|
value: 'mariadb'
|
||||||
|
brief: 'MariaDB'
|
||||||
|
- id: netezza
|
||||||
|
value: 'netezza'
|
||||||
|
brief: 'Netezza'
|
||||||
|
- id: pervasive
|
||||||
|
value: 'pervasive'
|
||||||
|
brief: 'Pervasive PSQL'
|
||||||
|
- id: pointbase
|
||||||
|
value: 'pointbase'
|
||||||
|
brief: 'PointBase'
|
||||||
|
- id: sqlite
|
||||||
|
value: 'sqlite'
|
||||||
|
brief: 'SQLite'
|
||||||
|
- id: sybase
|
||||||
|
value: 'sybase'
|
||||||
|
brief: 'Sybase'
|
||||||
|
- id: teradata
|
||||||
|
value: 'teradata'
|
||||||
|
brief: 'Teradata'
|
||||||
|
- id: vertica
|
||||||
|
value: 'vertica'
|
||||||
|
brief: 'Vertica'
|
||||||
|
- id: h2
|
||||||
|
value: 'h2'
|
||||||
|
brief: 'H2'
|
||||||
|
- id: coldfusion
|
||||||
|
value: 'coldfusion'
|
||||||
|
brief: 'ColdFusion IMQ'
|
||||||
|
- id: cassandra
|
||||||
|
value: 'cassandra'
|
||||||
|
brief: 'Apache Cassandra'
|
||||||
|
- id: hbase
|
||||||
|
value: 'hbase'
|
||||||
|
brief: 'Apache HBase'
|
||||||
|
- id: mongodb
|
||||||
|
value: 'mongodb'
|
||||||
|
brief: 'MongoDB'
|
||||||
|
- id: redis
|
||||||
|
value: 'redis'
|
||||||
|
brief: 'Redis'
|
||||||
|
- id: couchbase
|
||||||
|
value: 'couchbase'
|
||||||
|
brief: 'Couchbase'
|
||||||
|
- id: couchdb
|
||||||
|
value: 'couchdb'
|
||||||
|
brief: 'CouchDB'
|
||||||
|
- id: cosmosdb
|
||||||
|
value: 'cosmosdb'
|
||||||
|
brief: 'Microsoft Azure Cosmos DB'
|
||||||
|
- id: dynamodb
|
||||||
|
value: 'dynamodb'
|
||||||
|
brief: 'Amazon DynamoDB'
|
||||||
|
- id: neo4j
|
||||||
|
value: 'neo4j'
|
||||||
|
brief: 'Neo4j'
|
||||||
|
- id: geode
|
||||||
|
value: 'geode'
|
||||||
|
brief: 'Apache Geode'
|
||||||
|
- id: elasticsearch
|
||||||
|
value: 'elasticsearch'
|
||||||
|
brief: 'Elasticsearch'
|
||||||
|
- id: memcached
|
||||||
|
value: 'memcached'
|
||||||
|
brief: 'Memcached'
|
||||||
|
- id: cockroachdb
|
||||||
|
value: 'cockroachdb'
|
||||||
|
brief: 'CockroachDB'
|
||||||
|
- id: opensearch
|
||||||
|
value: 'opensearch'
|
||||||
|
brief: 'OpenSearch'
|
||||||
|
- id: clickhouse
|
||||||
|
value: 'clickhouse'
|
||||||
|
brief: 'ClickHouse'
|
||||||
|
- id: spanner
|
||||||
|
value: 'spanner'
|
||||||
|
brief: 'Cloud Spanner'
|
||||||
|
- id: trino
|
||||||
|
value: 'trino'
|
||||||
|
brief: 'Trino'
|
||||||
|
tag: db-generic
|
||||||
|
- id: user
|
||||||
|
type: string
|
||||||
|
brief: >
|
||||||
|
Username for accessing the database.
|
||||||
|
examples: ['readonly_user', 'reporting_user']
|
||||||
|
tag: db-generic
|
||||||
|
|
@ -1,233 +1,33 @@
|
||||||
groups:
|
groups:
|
||||||
- id: db
|
- id: db
|
||||||
prefix: db
|
|
||||||
type: span
|
type: span
|
||||||
brief: >
|
brief: >
|
||||||
This document defines the attributes used to perform database client calls.
|
This document defines the attributes used to perform database client calls.
|
||||||
span_kind: client
|
span_kind: client
|
||||||
attributes:
|
attributes:
|
||||||
- id: system
|
- ref: db.system
|
||||||
tag: connection-level
|
tag: connection-level
|
||||||
brief: An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers.
|
|
||||||
requirement_level: required
|
requirement_level: required
|
||||||
type:
|
|
||||||
allow_custom_values: true
|
- ref: db.connection_string
|
||||||
members:
|
|
||||||
- id: other_sql
|
|
||||||
value: 'other_sql'
|
|
||||||
brief: 'Some other SQL database. Fallback only. See notes.'
|
|
||||||
- id: mssql
|
|
||||||
value: 'mssql'
|
|
||||||
brief: 'Microsoft SQL Server'
|
|
||||||
- id: mssqlcompact
|
|
||||||
value: 'mssqlcompact'
|
|
||||||
brief: 'Microsoft SQL Server Compact'
|
|
||||||
- id: mysql
|
|
||||||
value: 'mysql'
|
|
||||||
brief: 'MySQL'
|
|
||||||
- id: oracle
|
|
||||||
value: 'oracle'
|
|
||||||
brief: 'Oracle Database'
|
|
||||||
- id: db2
|
|
||||||
value: 'db2'
|
|
||||||
brief: 'IBM Db2'
|
|
||||||
- id: postgresql
|
|
||||||
value: 'postgresql'
|
|
||||||
brief: 'PostgreSQL'
|
|
||||||
- id: redshift
|
|
||||||
value: 'redshift'
|
|
||||||
brief: 'Amazon Redshift'
|
|
||||||
- id: hive
|
|
||||||
value: 'hive'
|
|
||||||
brief: 'Apache Hive'
|
|
||||||
- id: cloudscape
|
|
||||||
value: 'cloudscape'
|
|
||||||
brief: 'Cloudscape'
|
|
||||||
- id: hsqldb
|
|
||||||
value: 'hsqldb'
|
|
||||||
brief: 'HyperSQL DataBase'
|
|
||||||
- id: progress
|
|
||||||
value: 'progress'
|
|
||||||
brief: 'Progress Database'
|
|
||||||
- id: maxdb
|
|
||||||
value: 'maxdb'
|
|
||||||
brief: 'SAP MaxDB'
|
|
||||||
- id: hanadb
|
|
||||||
value: 'hanadb'
|
|
||||||
brief: 'SAP HANA'
|
|
||||||
- id: ingres
|
|
||||||
value: 'ingres'
|
|
||||||
brief: 'Ingres'
|
|
||||||
- id: firstsql
|
|
||||||
value: 'firstsql'
|
|
||||||
brief: 'FirstSQL'
|
|
||||||
- id: edb
|
|
||||||
value: 'edb'
|
|
||||||
brief: 'EnterpriseDB'
|
|
||||||
- id: cache
|
|
||||||
value: 'cache'
|
|
||||||
brief: 'InterSystems Caché'
|
|
||||||
- id: adabas
|
|
||||||
value: 'adabas'
|
|
||||||
brief: 'Adabas (Adaptable Database System)'
|
|
||||||
- id: firebird
|
|
||||||
value: 'firebird'
|
|
||||||
brief: 'Firebird'
|
|
||||||
- id: derby
|
|
||||||
value: 'derby'
|
|
||||||
brief: 'Apache Derby'
|
|
||||||
- id: filemaker
|
|
||||||
value: 'filemaker'
|
|
||||||
brief: 'FileMaker'
|
|
||||||
- id: informix
|
|
||||||
value: 'informix'
|
|
||||||
brief: 'Informix'
|
|
||||||
- id: instantdb
|
|
||||||
value: 'instantdb'
|
|
||||||
brief: 'InstantDB'
|
|
||||||
- id: interbase
|
|
||||||
value: 'interbase'
|
|
||||||
brief: 'InterBase'
|
|
||||||
- id: mariadb
|
|
||||||
value: 'mariadb'
|
|
||||||
brief: 'MariaDB'
|
|
||||||
- id: netezza
|
|
||||||
value: 'netezza'
|
|
||||||
brief: 'Netezza'
|
|
||||||
- id: pervasive
|
|
||||||
value: 'pervasive'
|
|
||||||
brief: 'Pervasive PSQL'
|
|
||||||
- id: pointbase
|
|
||||||
value: 'pointbase'
|
|
||||||
brief: 'PointBase'
|
|
||||||
- id: sqlite
|
|
||||||
value: 'sqlite'
|
|
||||||
brief: 'SQLite'
|
|
||||||
- id: sybase
|
|
||||||
value: 'sybase'
|
|
||||||
brief: 'Sybase'
|
|
||||||
- id: teradata
|
|
||||||
value: 'teradata'
|
|
||||||
brief: 'Teradata'
|
|
||||||
- id: vertica
|
|
||||||
value: 'vertica'
|
|
||||||
brief: 'Vertica'
|
|
||||||
- id: h2
|
|
||||||
value: 'h2'
|
|
||||||
brief: 'H2'
|
|
||||||
- id: coldfusion
|
|
||||||
value: 'coldfusion'
|
|
||||||
brief: 'ColdFusion IMQ'
|
|
||||||
- id: cassandra
|
|
||||||
value: 'cassandra'
|
|
||||||
brief: 'Apache Cassandra'
|
|
||||||
- id: hbase
|
|
||||||
value: 'hbase'
|
|
||||||
brief: 'Apache HBase'
|
|
||||||
- id: mongodb
|
|
||||||
value: 'mongodb'
|
|
||||||
brief: 'MongoDB'
|
|
||||||
- id: redis
|
|
||||||
value: 'redis'
|
|
||||||
brief: 'Redis'
|
|
||||||
- id: couchbase
|
|
||||||
value: 'couchbase'
|
|
||||||
brief: 'Couchbase'
|
|
||||||
- id: couchdb
|
|
||||||
value: 'couchdb'
|
|
||||||
brief: 'CouchDB'
|
|
||||||
- id: cosmosdb
|
|
||||||
value: 'cosmosdb'
|
|
||||||
brief: 'Microsoft Azure Cosmos DB'
|
|
||||||
- id: dynamodb
|
|
||||||
value: 'dynamodb'
|
|
||||||
brief: 'Amazon DynamoDB'
|
|
||||||
- id: neo4j
|
|
||||||
value: 'neo4j'
|
|
||||||
brief: 'Neo4j'
|
|
||||||
- id: geode
|
|
||||||
value: 'geode'
|
|
||||||
brief: 'Apache Geode'
|
|
||||||
- id: elasticsearch
|
|
||||||
value: 'elasticsearch'
|
|
||||||
brief: 'Elasticsearch'
|
|
||||||
- id: memcached
|
|
||||||
value: 'memcached'
|
|
||||||
brief: 'Memcached'
|
|
||||||
- id: cockroachdb
|
|
||||||
value: 'cockroachdb'
|
|
||||||
brief: 'CockroachDB'
|
|
||||||
- id: opensearch
|
|
||||||
value: 'opensearch'
|
|
||||||
brief: 'OpenSearch'
|
|
||||||
- id: clickhouse
|
|
||||||
value: 'clickhouse'
|
|
||||||
brief: 'ClickHouse'
|
|
||||||
- id: spanner
|
|
||||||
value: 'spanner'
|
|
||||||
brief: 'Cloud Spanner'
|
|
||||||
- id: trino
|
|
||||||
value: 'trino'
|
|
||||||
brief: 'Trino'
|
|
||||||
- id: connection_string
|
|
||||||
tag: connection-level
|
tag: connection-level
|
||||||
type: string
|
- ref: db.user
|
||||||
brief: >
|
|
||||||
The connection string used to connect to the database.
|
|
||||||
It is recommended to remove embedded credentials.
|
|
||||||
examples: 'Server=(localdb)\v11.0;Integrated Security=true;'
|
|
||||||
- id: user
|
|
||||||
tag: connection-level
|
tag: connection-level
|
||||||
type: string
|
- ref: db.jdbc.driver_classname
|
||||||
brief: >
|
|
||||||
Username for accessing the database.
|
|
||||||
examples: ['readonly_user', 'reporting_user']
|
|
||||||
- id: jdbc.driver_classname
|
|
||||||
tag: connection-level-tech-specific
|
tag: connection-level-tech-specific
|
||||||
type: string
|
- ref: db.name
|
||||||
brief: >
|
|
||||||
The fully-qualified class name of the [Java Database Connectivity (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver used to connect.
|
|
||||||
examples: ['org.postgresql.Driver', 'com.microsoft.sqlserver.jdbc.SQLServerDriver']
|
|
||||||
- id: name
|
|
||||||
tag: call-level
|
tag: call-level
|
||||||
type: string
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
conditionally_required: If applicable.
|
conditionally_required: If applicable.
|
||||||
brief: >
|
- ref: db.statement
|
||||||
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).
|
|
||||||
note: >
|
|
||||||
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).
|
|
||||||
examples: [ 'customers', 'main' ]
|
|
||||||
- id: statement
|
|
||||||
tag: call-level
|
tag: call-level
|
||||||
type: string
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
recommended: >
|
recommended: >
|
||||||
Should be collected by default only if there is sanitization that excludes sensitive information.
|
Should be collected by default only if there is sanitization that excludes sensitive information.
|
||||||
brief: >
|
- ref: db.operation
|
||||||
The database statement being executed.
|
|
||||||
examples: ['SELECT * FROM wuser_table', 'SET mykey "WuValue"']
|
|
||||||
- id: operation
|
|
||||||
tag: call-level
|
tag: call-level
|
||||||
type: string
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
conditionally_required: If `db.statement` is not applicable.
|
conditionally_required: If `db.statement` is not applicable.
|
||||||
brief: >
|
|
||||||
The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations)
|
|
||||||
such as `findAndModify`, or the SQL keyword.
|
|
||||||
note: >
|
|
||||||
When setting this to an SQL keyword, it is not recommended to
|
|
||||||
attempt any client-side parsing of `db.statement` just 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.
|
|
||||||
examples: ['findAndModify', 'HMSET', 'SELECT']
|
|
||||||
- ref: server.address
|
- ref: server.address
|
||||||
tag: connection-level
|
tag: connection-level
|
||||||
brief: >
|
brief: >
|
||||||
|
|
@ -248,25 +48,15 @@ groups:
|
||||||
tag: connection-level
|
tag: connection-level
|
||||||
|
|
||||||
- id: db.mssql
|
- id: db.mssql
|
||||||
prefix: db.mssql
|
|
||||||
type: span
|
type: span
|
||||||
extends: db
|
extends: db
|
||||||
brief: >
|
brief: >
|
||||||
Connection-level attributes for Microsoft SQL Server
|
Connection-level attributes for Microsoft SQL Server
|
||||||
attributes:
|
attributes:
|
||||||
- id: instance_name
|
- ref: db.mssql.instance_name
|
||||||
tag: connection-level-tech-specific
|
tag: connection-level-tech-specific
|
||||||
type: string
|
|
||||||
note: >
|
|
||||||
If setting a `db.mssql.instance_name`, `server.port` is no longer
|
|
||||||
required (but still recommended if non-standard).
|
|
||||||
brief: >
|
|
||||||
The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15)
|
|
||||||
connecting to. This name is used to determine the port of a named instance.
|
|
||||||
examples: 'MSSQLSERVER'
|
|
||||||
|
|
||||||
- id: db.cassandra
|
- id: db.cassandra
|
||||||
prefix: db.cassandra
|
|
||||||
type: span
|
type: span
|
||||||
extends: db
|
extends: db
|
||||||
brief: >
|
brief: >
|
||||||
|
|
@ -278,79 +68,22 @@ groups:
|
||||||
The keyspace name in Cassandra.
|
The keyspace name in Cassandra.
|
||||||
examples: ["mykeyspace"]
|
examples: ["mykeyspace"]
|
||||||
note: For Cassandra the `db.name` should be set to the Cassandra keyspace name.
|
note: For Cassandra the `db.name` should be set to the Cassandra keyspace name.
|
||||||
- id: page_size
|
- ref: db.cassandra.page_size
|
||||||
type: int
|
|
||||||
tag: call-level-tech-specific-cassandra
|
tag: call-level-tech-specific-cassandra
|
||||||
brief: >
|
- ref: db.cassandra.consistency_level
|
||||||
The fetch size used for paging, i.e. how many rows will be returned at once.
|
|
||||||
examples: [5000]
|
|
||||||
- id: consistency_level
|
|
||||||
tag: call-level-tech-specific-cassandra
|
tag: call-level-tech-specific-cassandra
|
||||||
brief: >
|
- ref: db.cassandra.table
|
||||||
The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html).
|
|
||||||
type:
|
|
||||||
members:
|
|
||||||
- id: all
|
|
||||||
value: 'all'
|
|
||||||
- id: each_quorum
|
|
||||||
value: 'each_quorum'
|
|
||||||
- id: quorum
|
|
||||||
value: 'quorum'
|
|
||||||
- id: local_quorum
|
|
||||||
value: 'local_quorum'
|
|
||||||
- id: one
|
|
||||||
value: 'one'
|
|
||||||
- id: two
|
|
||||||
value: 'two'
|
|
||||||
- id: three
|
|
||||||
value: 'three'
|
|
||||||
- id: local_one
|
|
||||||
value: 'local_one'
|
|
||||||
- id: any
|
|
||||||
value: 'any'
|
|
||||||
- id: serial
|
|
||||||
value: 'serial'
|
|
||||||
- id: local_serial
|
|
||||||
value: 'local_serial'
|
|
||||||
- id: table
|
|
||||||
type: string
|
|
||||||
tag: call-level-tech-specific-cassandra
|
tag: call-level-tech-specific-cassandra
|
||||||
requirement_level: recommended
|
- ref: db.cassandra.idempotence
|
||||||
brief: The name of the primary table that the operation is acting upon, including the keyspace name (if applicable).
|
|
||||||
note: >
|
|
||||||
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.statement` just 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.
|
|
||||||
examples: 'mytable'
|
|
||||||
- id: idempotence
|
|
||||||
type: boolean
|
|
||||||
tag: call-level-tech-specific-cassandra
|
tag: call-level-tech-specific-cassandra
|
||||||
brief: >
|
- ref: db.cassandra.speculative_execution_count
|
||||||
Whether or not the query is idempotent.
|
|
||||||
- id: speculative_execution_count
|
|
||||||
type: int
|
|
||||||
tag: call-level-tech-specific-cassandra
|
tag: call-level-tech-specific-cassandra
|
||||||
brief: >
|
- ref: db.cassandra.coordinator.id
|
||||||
The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively.
|
|
||||||
examples: [0, 2]
|
|
||||||
- id: coordinator.id
|
|
||||||
type: string
|
|
||||||
tag: call-level-tech-specific-cassandra
|
tag: call-level-tech-specific-cassandra
|
||||||
brief: >
|
- ref: db.cassandra.coordinator.dc
|
||||||
The ID of the coordinating node for a query.
|
|
||||||
examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af'
|
|
||||||
- id: coordinator.dc
|
|
||||||
type: string
|
|
||||||
tag: call-level-tech-specific-cassandra
|
tag: call-level-tech-specific-cassandra
|
||||||
brief: >
|
|
||||||
The data center of the coordinating node for a query.
|
|
||||||
examples: 'us-west-2'
|
|
||||||
|
|
||||||
- id: db.hbase
|
- id: db.hbase
|
||||||
prefix: db.hbase
|
|
||||||
type: span
|
type: span
|
||||||
extends: db
|
extends: db
|
||||||
brief: >
|
brief: >
|
||||||
|
|
@ -364,7 +97,6 @@ groups:
|
||||||
note: For HBase the `db.name` should be set to the HBase namespace.
|
note: For HBase the `db.name` should be set to the HBase namespace.
|
||||||
|
|
||||||
- id: db.couchdb
|
- id: db.couchdb
|
||||||
prefix: db.couchdb
|
|
||||||
type: span
|
type: span
|
||||||
extends: db
|
extends: db
|
||||||
brief: >
|
brief: >
|
||||||
|
|
@ -383,21 +115,15 @@ groups:
|
||||||
[`GET /{db}/{docid}`](http://docs.couchdb.org/en/stable/api/document/common.html#get--db-docid).
|
[`GET /{db}/{docid}`](http://docs.couchdb.org/en/stable/api/document/common.html#get--db-docid).
|
||||||
|
|
||||||
- id: db.redis
|
- id: db.redis
|
||||||
prefix: db.redis
|
|
||||||
type: span
|
type: span
|
||||||
extends: db
|
extends: db
|
||||||
brief: >
|
brief: >
|
||||||
Call-level attributes for Redis
|
Call-level attributes for Redis
|
||||||
attributes:
|
attributes:
|
||||||
- id: database_index
|
- ref: db.redis.database_index
|
||||||
type: int
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
conditionally_required: If other than the default database (`0`).
|
conditionally_required: If other than the default database (`0`).
|
||||||
tag: call-level-tech-specific
|
tag: call-level-tech-specific
|
||||||
brief: >
|
|
||||||
The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer.
|
|
||||||
To be used instead of the generic `db.name` attribute.
|
|
||||||
examples: [0, 1, 15]
|
|
||||||
- ref: db.statement
|
- ref: db.statement
|
||||||
tag: call-level-tech-specific
|
tag: call-level-tech-specific
|
||||||
brief: >
|
brief: >
|
||||||
|
|
@ -408,22 +134,16 @@ groups:
|
||||||
If, for example, the [`HMSET` command](https://redis.io/commands/hmset) is invoked, `"HMSET myhash field1 'Hello' field2 'World'"` would be a suitable value for `db.statement`.
|
If, for example, the [`HMSET` command](https://redis.io/commands/hmset) is invoked, `"HMSET myhash field1 'Hello' field2 'World'"` would be a suitable value for `db.statement`.
|
||||||
|
|
||||||
- id: db.mongodb
|
- id: db.mongodb
|
||||||
prefix: db.mongodb
|
|
||||||
type: span
|
type: span
|
||||||
extends: db
|
extends: db
|
||||||
brief: >
|
brief: >
|
||||||
Call-level attributes for MongoDB
|
Call-level attributes for MongoDB
|
||||||
attributes:
|
attributes:
|
||||||
- id: collection
|
- ref: db.mongodb.collection
|
||||||
type: string
|
|
||||||
requirement_level: required
|
requirement_level: required
|
||||||
tag: call-level-tech-specific
|
tag: call-level-tech-specific
|
||||||
brief: >
|
|
||||||
The collection being accessed within the database stated in `db.name`.
|
|
||||||
examples: [ 'customers', 'products' ]
|
|
||||||
|
|
||||||
- id: db.elasticsearch
|
- id: db.elasticsearch
|
||||||
prefix: db.elasticsearch
|
|
||||||
type: span
|
type: span
|
||||||
extends: db
|
extends: db
|
||||||
brief: >
|
brief: >
|
||||||
|
|
@ -431,13 +151,16 @@ groups:
|
||||||
attributes:
|
attributes:
|
||||||
- ref: http.request.method
|
- ref: http.request.method
|
||||||
requirement_level: required
|
requirement_level: required
|
||||||
|
tag: call-level-tech-specific
|
||||||
- ref: db.operation
|
- ref: db.operation
|
||||||
requirement_level: required
|
requirement_level: required
|
||||||
brief: The endpoint identifier for the request.
|
brief: The endpoint identifier for the request.
|
||||||
examples: [ 'search', 'ml.close_job', 'cat.aliases' ]
|
examples: [ 'search', 'ml.close_job', 'cat.aliases' ]
|
||||||
|
tag: call-level-tech-specific
|
||||||
- ref: url.full
|
- ref: url.full
|
||||||
requirement_level: required
|
requirement_level: required
|
||||||
examples: [ 'https://localhost:9200/index/_search?q=user.id:kimchy' ]
|
examples: [ 'https://localhost:9200/index/_search?q=user.id:kimchy' ]
|
||||||
|
tag: call-level-tech-specific
|
||||||
- ref: db.statement
|
- ref: db.statement
|
||||||
requirement_level:
|
requirement_level:
|
||||||
recommended: >
|
recommended: >
|
||||||
|
|
@ -445,59 +168,34 @@ groups:
|
||||||
sensitive information.
|
sensitive information.
|
||||||
brief: The request body for a [search-type query](https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html), as a json string.
|
brief: The request body for a [search-type query](https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html), as a json string.
|
||||||
examples: [ '"{\"query\":{\"term\":{\"user.id\":\"kimchy\"}}}"' ]
|
examples: [ '"{\"query\":{\"term\":{\"user.id\":\"kimchy\"}}}"' ]
|
||||||
|
tag: call-level-tech-specific
|
||||||
- ref: server.address
|
- ref: server.address
|
||||||
|
tag: call-level-tech-specific
|
||||||
- ref: server.port
|
- ref: server.port
|
||||||
- id: cluster.name
|
tag: call-level-tech-specific
|
||||||
type: string
|
- ref: db.elasticsearch.cluster.name
|
||||||
requirement_level:
|
requirement_level:
|
||||||
recommended: >
|
recommended: >
|
||||||
When communicating with an Elastic Cloud deployment, this should be collected from the "X-Found-Handling-Cluster" HTTP response header.
|
When communicating with an Elastic Cloud deployment, this should be collected from the "X-Found-Handling-Cluster" HTTP response header.
|
||||||
tag: call-level-tech-specific
|
tag: call-level-tech-specific
|
||||||
brief: >
|
- ref: db.elasticsearch.node.name
|
||||||
Represents the identifier of an Elasticsearch cluster.
|
|
||||||
examples: ["e9106fc68e3044f0b1475b04bf4ffd5f"]
|
|
||||||
- id: node.name
|
|
||||||
type: string
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
recommended: >
|
recommended: >
|
||||||
When communicating with an Elastic Cloud deployment, this should be collected from the "X-Found-Handling-Instance" HTTP response header.
|
When communicating with an Elastic Cloud deployment, this should be collected from the "X-Found-Handling-Instance" HTTP response header.
|
||||||
tag: call-level-tech-specific
|
tag: call-level-tech-specific
|
||||||
brief: >
|
- ref: db.elasticsearch.path_parts
|
||||||
Represents the human-readable identifier of the node/instance to which a request was routed.
|
|
||||||
examples: ["instance-0000000001"]
|
|
||||||
- id: path_parts
|
|
||||||
type: template[string]
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
conditionally_required: when the url has dynamic values
|
conditionally_required: when the url has dynamic values
|
||||||
tag: call-level-tech-specific
|
tag: call-level-tech-specific
|
||||||
brief: >
|
|
||||||
A dynamic value in the url path.
|
|
||||||
note: >
|
|
||||||
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](https://raw.githubusercontent.com/elastic/elasticsearch-specification/main/output/schema/schema.json)
|
|
||||||
in order to map the path part values to their names.
|
|
||||||
examples: ['db.elasticsearch.path_parts.index=test-index', 'db.elasticsearch.path_parts.doc_id=123']
|
|
||||||
|
|
||||||
- id: db.sql
|
- id: db.sql
|
||||||
prefix: 'db.sql'
|
|
||||||
type: span
|
type: span
|
||||||
extends: 'db'
|
extends: 'db'
|
||||||
brief: >
|
brief: >
|
||||||
Call-level attributes for SQL databases
|
Call-level attributes for SQL databases
|
||||||
attributes:
|
attributes:
|
||||||
- id: table
|
- ref: db.sql.table
|
||||||
tag: call-level-tech-specific
|
tag: call-level-tech-specific
|
||||||
type: string
|
|
||||||
requirement_level: recommended
|
|
||||||
brief: The name of the primary table that the operation is acting upon, including the database name (if applicable).
|
|
||||||
note: >
|
|
||||||
It is not recommended to attempt any client-side parsing of
|
|
||||||
`db.statement` just 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.
|
|
||||||
examples: ['public.users', 'customers']
|
|
||||||
|
|
||||||
- id: db.cosmosdb
|
- id: db.cosmosdb
|
||||||
type: span
|
type: span
|
||||||
|
|
@ -506,47 +204,12 @@ groups:
|
||||||
brief: >
|
brief: >
|
||||||
Call-level attributes for Cosmos DB.
|
Call-level attributes for Cosmos DB.
|
||||||
attributes:
|
attributes:
|
||||||
- id: client_id
|
- ref: db.cosmosdb.client_id
|
||||||
type: string
|
tag: call-level-tech-specific
|
||||||
brief: Unique Cosmos client instance id.
|
- ref: db.cosmosdb.operation_type
|
||||||
examples: '3ba4827d-4422-483f-b59f-85b74211c11d'
|
|
||||||
- id: operation_type
|
|
||||||
type:
|
|
||||||
allow_custom_values: true
|
|
||||||
members:
|
|
||||||
- id: invalid
|
|
||||||
value: 'Invalid'
|
|
||||||
- id: create
|
|
||||||
value: 'Create'
|
|
||||||
- id: patch
|
|
||||||
value: 'Patch'
|
|
||||||
- id: read
|
|
||||||
value: 'Read'
|
|
||||||
- id: read_feed
|
|
||||||
value: 'ReadFeed'
|
|
||||||
- id: delete
|
|
||||||
value: 'Delete'
|
|
||||||
- id: replace
|
|
||||||
value: 'Replace'
|
|
||||||
- id: execute
|
|
||||||
value: 'Execute'
|
|
||||||
- id: query
|
|
||||||
value: 'Query'
|
|
||||||
- id: head
|
|
||||||
value: 'Head'
|
|
||||||
- id: head_feed
|
|
||||||
value: 'HeadFeed'
|
|
||||||
- id: upsert
|
|
||||||
value: 'Upsert'
|
|
||||||
- id: batch
|
|
||||||
value: 'Batch'
|
|
||||||
- id: query_plan
|
|
||||||
value: 'QueryPlan'
|
|
||||||
- id: execute_javascript
|
|
||||||
value: 'ExecuteJavaScript'
|
|
||||||
brief: CosmosDB Operation Type.
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
conditionally_required: when performing one of the operations in this list
|
conditionally_required: when performing one of the operations in this list
|
||||||
|
tag: call-level-tech-specific
|
||||||
- ref: user_agent.original
|
- ref: user_agent.original
|
||||||
brief: 'Full user-agent string is generated by Cosmos DB SDK'
|
brief: 'Full user-agent string is generated by Cosmos DB SDK'
|
||||||
note: >
|
note: >
|
||||||
|
|
@ -561,46 +224,29 @@ groups:
|
||||||
Format Reg-{D (Disabled discovery)}-S(application region)|L(List of preferred regions)|N(None, user did not configure it).
|
Format Reg-{D (Disabled discovery)}-S(application region)|L(List of preferred regions)|N(None, user did not configure it).
|
||||||
Default value is "NS".
|
Default value is "NS".
|
||||||
examples: ['cosmos-netstandard-sdk/3.23.0\|3.23.1\|1\|X64\|Linux 5.4.0-1098-azure 104 18\|.NET Core 3.1.32\|S\|']
|
examples: ['cosmos-netstandard-sdk/3.23.0\|3.23.1\|1\|X64\|Linux 5.4.0-1098-azure 104 18\|.NET Core 3.1.32\|S\|']
|
||||||
- id: connection_mode
|
tag: call-level-tech-specific
|
||||||
type:
|
- ref: db.cosmosdb.connection_mode
|
||||||
allow_custom_values: false
|
|
||||||
members:
|
|
||||||
- id: gateway
|
|
||||||
value: 'gateway'
|
|
||||||
brief: Gateway (HTTP) connections mode
|
|
||||||
- id: direct
|
|
||||||
value: 'direct'
|
|
||||||
brief: Direct connection.
|
|
||||||
brief: Cosmos client connection mode.
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
conditionally_required: if not `direct` (or pick gw as default)
|
conditionally_required: if not `direct` (or pick gw as default)
|
||||||
- id: container
|
tag: call-level-tech-specific
|
||||||
type: string
|
- ref: db.cosmosdb.container
|
||||||
brief: Cosmos DB container name.
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
conditionally_required: if available
|
conditionally_required: if available
|
||||||
examples: 'anystring'
|
tag: call-level-tech-specific
|
||||||
- id: request_content_length
|
- ref: db.cosmosdb.request_content_length
|
||||||
type: int
|
tag: call-level-tech-specific
|
||||||
brief: Request payload size in bytes
|
- ref: db.cosmosdb.status_code
|
||||||
- id: status_code
|
|
||||||
type: int
|
|
||||||
brief: Cosmos DB status code.
|
|
||||||
examples: [200, 201]
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
conditionally_required: if response was received
|
conditionally_required: if response was received
|
||||||
- id: sub_status_code
|
tag: call-level-tech-specific
|
||||||
type: int
|
- ref: db.cosmosdb.sub_status_code
|
||||||
brief: Cosmos DB sub status code.
|
|
||||||
examples: [1000, 1002]
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
conditionally_required: when response was received and contained sub-code.
|
conditionally_required: when response was received and contained sub-code.
|
||||||
- id: request_charge
|
tag: call-level-tech-specific
|
||||||
type: double
|
- ref: db.cosmosdb.request_charge
|
||||||
brief: RU consumed for that operation
|
|
||||||
examples: [46.18, 1.0]
|
|
||||||
requirement_level:
|
requirement_level:
|
||||||
conditionally_required: when available
|
conditionally_required: when available
|
||||||
|
tag: call-level-tech-specific
|
||||||
|
|
||||||
- id: db.tech
|
- id: db.tech
|
||||||
type: span
|
type: span
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue