Move otel.scope attributes to registry (#889)

This commit is contained in:
Joao Grassi 2024-04-05 14:56:30 +02:00 committed by GitHub
parent 1f3c27ea45
commit a307d19c86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 56 additions and 29 deletions

View File

@ -50,6 +50,7 @@ body:
- area:network
- area:oci
- area:os
- area:otel
- area:peer
- area:process
- area:rpc

View File

@ -43,6 +43,7 @@ body:
- area:network
- area:oci
- area:os
- area:otel
- area:peer
- area:process
- area:rpc

View File

@ -52,6 +52,7 @@ body:
- area:network
- area:oci
- area:os
- area:otel
- area:peer
- area:process
- area:rpc

View File

@ -55,6 +55,7 @@ Currently, the following namespaces exist:
* [K8s](k8s.md)
* [Network](network.md)
* [OCI](oci.md)
* [OpenTelemetry](otel.md)
* [OS](os.md)
* [Peer](peer.md)
* [Process](process.md)

View File

@ -0,0 +1,13 @@
<!--- Hugo front matter used to generate the website version of this page:
--->
# OpenTelemetry
## Scope Attributes
<!-- semconv registry.otel.scope(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `otel.scope.name` | string | The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). | `io.opentelemetry.contrib.mongodb` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
| `otel.scope.version` | string | The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). | `1.0.0` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
<!-- endsemconv -->

View File

@ -0,0 +1,19 @@
groups:
- id: otel.library
prefix: otel.library
type: resource
brief: >
Span attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
attributes:
- id: name
type: string
deprecated: use the `otel.scope.name` attribute.
stability: experimental
brief:
examples: ['io.opentelemetry.contrib.mongodb']
- id: version
type: string
deprecated: use the `otel.scope.version` attribute.
stability: experimental
brief:
examples: ['1.0.0']

16
model/registry/otel.yaml Normal file
View File

@ -0,0 +1,16 @@
groups:
- id: registry.otel.scope
prefix: otel.scope
type: resource
brief: Attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
attributes:
- id: name
type: string
brief: The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP).
examples: ['io.opentelemetry.contrib.mongodb']
stability: stable
- id: version
type: string
brief: The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP).
examples: ['1.0.0']
stability: stable

View File

@ -1,34 +1,9 @@
groups:
- id: otel.scope
prefix: otel.scope
type: resource
brief: Attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
attributes:
- id: name
type: string
brief: The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP).
examples: ['io.opentelemetry.contrib.mongodb']
stability: stable
- id: version
type: string
brief: The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP).
examples: ['1.0.0']
stability: stable
- id: otel.library
prefix: otel.library
type: resource
brief: >
Span attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
attributes:
- id: name
type: string
deprecated: use the `otel.scope.name` attribute.
stability: experimental
brief:
examples: ['io.opentelemetry.contrib.mongodb']
- id: version
type: string
deprecated: use the `otel.scope.version` attribute.
stability: experimental
brief:
examples: ['1.0.0']
- ref: otel.scope.name
requirement_level: recommended
- ref: otel.scope.version
requirement_level: recommended