You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`rpc.system`](../attributes-registry/rpc.md)| string | The value `aws-api`. |`aws-api`| Required |
30
31
|`aws.request_id`| string | The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. |`79b9da39-b7ae-508a-a6bc-864b2829c622`; `C9ER4AJX75574TDJ`| Recommended |
31
32
|[`rpc.method`](../attributes-registry/rpc.md)| string | The name of the operation corresponding to the request, as returned by the AWS SDK [1]|`GetItem`; `PutItem`| Recommended |
32
33
|[`rpc.service`](../attributes-registry/rpc.md)| string | The name of the service to which a request is made, as returned by the AWS SDK. [2]|`DynamoDB`; `S3`| Recommended |
33
-
|[`rpc.system`](../attributes-registry/rpc.md)| string | The value `aws-api`. |`aws-api`| Required |
34
34
35
35
**[1]:** This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side).
|[`db.name`](../attributes-registry/db.md)| string | The keyspace name in Cassandra. [1]|`mykeyspace`| Conditionally Required: If applicable. |
20
21
|[`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 |
21
22
|[`db.cassandra.coordinator.dc`](../attributes-registry/db.md)| string | The data center of the coordinating node for a query. |`us-west-2`| Recommended |
22
23
|[`db.cassandra.coordinator.id`](../attributes-registry/db.md)| string | The ID of the coordinating node for a query. |`be13faa2-8574-4d71-926d-27f16cf8a7af`| Recommended |
23
24
|[`db.cassandra.idempotence`](../attributes-registry/db.md)| boolean | Whether or not the query is idempotent. || Recommended |
24
25
|[`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 |
25
26
|[`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 |
26
-
|[`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 |
27
-
|[`db.name`](../attributes-registry/db.md)| string | The keyspace name in Cassandra. [2]|`mykeyspace`| Conditionally Required: If applicable. |
27
+
|[`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). [2]|`mytable`| Recommended |
28
28
29
-
**[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.
29
+
**[1]:**For Cassandra the `db.name`should be set to the Cassandra keyspace name.
30
30
31
-
**[2]:**For Cassandra the `db.name`should be set to the Cassandra keyspace name.
31
+
**[2]:**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.
32
32
33
33
`db.cassandra.consistency_level` MUST be one of the following:
|[`db.cosmosdb.request_charge`](../attributes-registry/db.md)| double | RU consumed for that operation |`46.18`; `1.0`| Conditionally Required: when available |
28
-
|[`db.cosmosdb.request_content_length`](../attributes-registry/db.md)| int | Request payload size in bytes || Recommended |
29
27
|[`db.cosmosdb.status_code`](../attributes-registry/db.md)| int | Cosmos DB status code. |`200`; `201`| Conditionally Required: if response was received |
30
28
|[`db.cosmosdb.sub_status_code`](../attributes-registry/db.md)| int | Cosmos DB sub status code. |`1000`; `1002`| Conditionally Required: [2]|
|[`db.cosmosdb.request_content_length`](../attributes-registry/db.md)| int | Request payload size in bytes || Recommended |
31
31
|[`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 |
32
32
33
33
**[1]:** when performing one of the operations in this list
|[`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 |
67
-
|[`db.instance.id`](../attributes-registry/db.md)| string | 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 like `select @@hostname`. |`mysql-e26b99z.example.com`| Recommended: If different from the `server.address`|
68
66
|[`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 |
67
+
|[`server.port`](../attributes-registry/server.md)| int | Server port number. [1]|`80`; `8080`; `443`| Conditionally Required: [2]|
68
+
|[`db.instance.id`](../attributes-registry/db.md)| string | 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 like `select @@hostname`. |`mysql-e26b99z.example.com`| Recommended: If different from the `server.address`|
69
+
|[`network.peer.port`](../attributes-registry/network.md)| int | Peer port number of the network connection. |`65123`| Recommended: If `network.peer.address` is set. |
70
+
|[`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 |
69
71
|[`db.user`](../attributes-registry/db.md)| string | Username for accessing the database. |`readonly_user`; `reporting_user`| Recommended |
70
72
|[`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 |
71
-
|[`network.peer.port`](../attributes-registry/network.md)| int | Peer port number of the network connection. |`65123`| Recommended: If `network.peer.address` is set. |
72
-
|[`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 |
|[`server.address`](../attributes-registry/server.md)| string | Name of the database host. [3]|`example.com`; `10.1.2.80`; `/tmp/my.sock`| Recommended |
75
-
|[`server.port`](../attributes-registry/server.md)| int | Server port number. [4]|`80`; `8080`; `443`| Conditionally Required: [5]|
73
+
|[`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). [3]|`tcp`; `udp`| Recommended |
|[`server.address`](../attributes-registry/server.md)| string | Name of the database host. [5]|`example.com`; `10.1.2.80`; `/tmp/my.sock`| Recommended |
76
+
77
+
**[1]:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
78
+
79
+
**[2]:** If using a port other than the default port for this DBMS and if `server.address` is set.
76
80
77
-
**[1]:** The value SHOULD be normalized to lowercase.
81
+
**[3]:** The value SHOULD be normalized to lowercase.
78
82
79
83
Consider always setting the transport when setting a port number, since
80
84
a port number is ambiguous without knowing the transport. For example
81
85
different processes could be listening on TCP port 12345 and UDP port 12345.
82
86
83
-
**[2]:** The value SHOULD be normalized to lowercase.
84
-
85
-
**[3]:** When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available.
86
-
87
-
**[4]:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
87
+
**[4]:** The value SHOULD be normalized to lowercase.
88
88
89
-
**[5]:**If using a port other than the default port for this DBMS and if `server.address`is set.
89
+
**[5]:**When observed from the client side, and when communicating through an intermediary, `server.address`SHOULD represent the server address behind any intermediaries, for example proxies, if it's available.
90
90
91
91
`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.
0 commit comments