Skip to content

Commit

Permalink
Prefer namespaced attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Aug 29, 2023
1 parent e607302 commit 515e266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/database/elasticsearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ in order to map the path part values to their names.
<!-- semconv db.elasticsearch -->
| Attribute | Type | Description | Examples | Requirement Level |
|---|---|---|---|---|
| `db.elasticsearch.cluster_name` | string | Represents the identifier of an Elasticsearch cluster. [1] | `e9106fc68e3044f0b1475b04bf4ffd5f` | Recommended: [2] |
| `db.elasticsearch.cluster_instance` | string | Represents the identifier of the node/instance to which the request was routed. [3] | `instance-0000000001` | Recommended: [4] |
| `db.elasticsearch.cluster.name` | string | Represents the identifier of an Elasticsearch cluster. [1] | `e9106fc68e3044f0b1475b04bf4ffd5f` | Recommended: [2] |
| `db.elasticsearch.cluster.instance` | string | Represents the identifier of the node/instance to which the request was routed. [3] | `instance-0000000001` | Recommended: [4] |
| [`db.operation`](database-spans.md) | string | The endpoint identifier for the request. [5] | `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: [6] |
| `http.request.method` | string | HTTP request method. [7] | `GET`; `POST`; `HEAD` | Required |
Expand Down
4 changes: 2 additions & 2 deletions model/trace/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ groups:
examples: [ '"{\"query\":{\"term\":{\"user.id\":\"kimchy\"}}}"' ]
- ref: server.address
- ref: server.port
- id: cluster_name
- id: cluster.name
type: string
requirement_level:
recommended: >
Expand All @@ -465,7 +465,7 @@ groups:
examples: ["e9106fc68e3044f0b1475b04bf4ffd5f"]
note: >
For Elastic Cloud hosted deployents the "X-Found-Handling-Cluster" HTTP response header contains the cluster ID.
- id: cluster_instance
- id: cluster.instance
type: string
requirement_level:
recommended: >
Expand Down

0 comments on commit 515e266

Please sign in to comment.