Skip to content

Commit

Permalink
Move otel.scope attributes to registry (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopgrassi authored Apr 5, 2024
1 parent 1f3c27e commit a307d19
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 29 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ body:
- area:network
- area:oci
- area:os
- area:otel
- area:peer
- area:process
- area:rpc
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/change_proposal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ body:
- area:network
- area:oci
- area:os
- area:otel
- area:peer
- area:process
- area:rpc
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/new-conventions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ body:
- area:network
- area:oci
- area:os
- area:otel
- area:peer
- area:process
- area:rpc
Expand Down
1 change: 1 addition & 0 deletions docs/attributes-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 13 additions & 0 deletions docs/attributes-registry/otel.md
Original file line number Diff line number Diff line change
@@ -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 -->
19 changes: 19 additions & 0 deletions model/registry/deprecated/otel.yaml
Original file line number Diff line number Diff line change
@@ -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 changes: 16 additions & 0 deletions model/registry/otel.yaml
Original file line number Diff line number Diff line change
@@ -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
33 changes: 4 additions & 29 deletions model/scope/exporter/exporter.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a307d19

Please sign in to comment.