telemetry.distro.name and telemetry.distro.version (#178)

Co-authored-by: Reiley Yang <reyang@microsoft.com>
This commit is contained in:
Gregor Zeitlinger 2023-10-05 15:12:31 +02:00 committed by GitHub
parent 5181f04560
commit b33f2fcbaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 3 deletions

View File

@ -129,6 +129,9 @@ release.
([#350](https://github.com/open-telemetry/semantic-conventions/pull/350)) ([#350](https://github.com/open-telemetry/semantic-conventions/pull/350))
- Improve network attribute briefs. - Improve network attribute briefs.
([#352](https://github.com/open-telemetry/semantic-conventions/pull/352)) ([#352](https://github.com/open-telemetry/semantic-conventions/pull/352))
- BREAKING: Rename `telemetry.auto.version` resource attribute to `telemetry.distro.version`
and add `telemetry.distro.name` resource attribute
([#178](https://github.com/open-telemetry/semantic-conventions/pull/178))
## v1.21.0 (2023-07-13) ## v1.21.0 (2023-07-13)

View File

@ -172,7 +172,11 @@ All custom identifiers SHOULD be stable across different versions of an implemen
<!-- semconv telemetry_experimental --> <!-- semconv telemetry_experimental -->
| Attribute | Type | Description | Examples | Requirement Level | | Attribute | Type | Description | Examples | Requirement Level |
|---|---|---|---|---| |---|---|---|---|---|
| `telemetry.auto.version` | string | The version string of the auto instrumentation agent, if used. | `1.2.3` | Recommended | | `telemetry.distro.name` | string | The name of the auto instrumentation agent or distribution, if used. [1] | `parts-unlimited-java` | Recommended |
| `telemetry.distro.version` | string | The version string of the auto instrumentation agent or distribution, if used. | `1.2.3` | Recommended |
**[1]:** Official auto instrumentation agents and distributions SHOULD set the `telemetry.distro.name` attribute to
a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation`.
<!-- endsemconv --> <!-- endsemconv -->
## Compute Unit ## Compute Unit

View File

@ -5,8 +5,16 @@ groups:
brief: > brief: >
The telemetry SDK used to capture data recorded by the instrumentation libraries. The telemetry SDK used to capture data recorded by the instrumentation libraries.
attributes: attributes:
- id: auto.version - id: distro.name
type: string type: string
brief: > brief: >
The version string of the auto instrumentation agent, if used. The name of the auto instrumentation agent or distribution, if used.
note: |
Official auto instrumentation agents and distributions SHOULD set the `telemetry.distro.name` attribute to
a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation`.
examples: ["parts-unlimited-java"]
- id: distro.version
type: string
brief: >
The version string of the auto instrumentation agent or distribution, if used.
examples: ["1.2.3"] examples: ["1.2.3"]

View File

@ -135,6 +135,12 @@ versions:
- rename_metrics: - rename_metrics:
http.server.request.size: http.server.request.body.size http.server.request.size: http.server.request.body.size
http.server.response.size: http.server.response.body.size http.server.response.size: http.server.response.body.size
resources:
changes:
# https://github.com/open-telemetry/semantic-conventions/pull/178
- rename_attributes:
attribute_map:
telemetry.auto.version: telemetry.distro.version
1.21.0: 1.21.0:
spans: spans:
changes: changes: