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
|`db.elasticsearch.cluster.name`| string | Represents the identifier of an Elasticsearch cluster. |`e9106fc68e3044f0b1475b04bf4ffd5f`|
174
-
|`db.elasticsearch.node.name`| string | Represents the human-readable identifier of the node/instance to which a request was routed. |`instance-0000000001`|
175
175
|`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`|
176
176
177
177
**[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.
@@ -219,5 +219,16 @@
219
219
| Attribute | Type | Description | Examples |
220
220
|---|---|---|---|
221
221
|`db.connection_string`| string |<br>Deprecated, use `server.address`, `server.port` attributes instead. |`Server=(localdb)\v11.0;Integrated Security=true;`|
222
+
|`db.elasticsearch.node.name`| string |<br>Deprecated, use `db.instance.id` instead. |`instance-0000000001`|
222
223
|`db.jdbc.driver_classname`| string |<br>Removed, no replacement at this time. |`org.postgresql.Driver`; `com.microsoft.sqlserver.jdbc.SQLServerDriver`|
|`db.connection_string`| string |<br>Deprecated, use `server.address`, `server.port` attributes instead. |`Server=(localdb)\v11.0;Integrated Security=true;`|
232
+
|`db.elasticsearch.node.name`| string |<br>Deprecated, use `db.instance.id` instead. |`instance-0000000001`|
233
+
|`db.jdbc.driver_classname`| string |<br>Removed, no replacement at this time. |`org.postgresql.Driver`; `com.microsoft.sqlserver.jdbc.SQLServerDriver`|
|[`db.elasticsearch.cluster.name`](../attributes-registry/db.md)| string | Represents the identifier of an Elasticsearch cluster. |`e9106fc68e3044f0b1475b04bf4ffd5f`| Recommended: [1]|
30
-
|[`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]|
31
-
|[`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|
30
+
|[`db.elasticsearch.path_parts.<key>`](../attributes-registry/db.md)| string |A dynamic value in the url path. [2]|`db.elasticsearch.path_parts.index=test-index`; `db.elasticsearch.path_parts.doc_id=123`| Conditionally Required: when the url has dynamic values|
31
+
|[`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: [3]|
32
32
|[`db.operation`](../attributes-registry/db.md)| string | The endpoint identifier for the request. [4]|`search`; `ml.close_job`; `cat.aliases`| Required |
33
33
|[`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]|
@@ -40,9 +40,9 @@ If the endpoint id is not available, the span name SHOULD be the `http.request.m
40
40
41
41
**[1]:** When communicating with an Elastic Cloud deployment, this should be collected from the "X-Found-Handling-Cluster" HTTP response header.
42
42
43
-
**[2]:**When communicating with an Elastic Cloud deployment, this should be collected from the "X-Found-Handling-Instance" HTTP response header.
43
+
**[2]:**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.
44
44
45
-
**[3]:**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.
45
+
**[3]:**When communicating with an Elastic Cloud deployment, this should be collected from the "X-Found-Handling-Instance" HTTP response header.
46
46
47
47
**[4]:** 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.
48
48
@@ -105,6 +105,6 @@ Tracing instrumentations that do so, MUST also set `http.request.method_original
0 commit comments