Skip to content

Commit a307d19

Browse files
authored
Move otel.scope attributes to registry (#889)
1 parent 1f3c27e commit a307d19

File tree

8 files changed

+56
-29
lines changed

8 files changed

+56
-29
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ body:
5050
- area:network
5151
- area:oci
5252
- area:os
53+
- area:otel
5354
- area:peer
5455
- area:process
5556
- area:rpc

.github/ISSUE_TEMPLATE/change_proposal.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ body:
4343
- area:network
4444
- area:oci
4545
- area:os
46+
- area:otel
4647
- area:peer
4748
- area:process
4849
- area:rpc

.github/ISSUE_TEMPLATE/new-conventions.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ body:
5252
- area:network
5353
- area:oci
5454
- area:os
55+
- area:otel
5556
- area:peer
5657
- area:process
5758
- area:rpc

docs/attributes-registry/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Currently, the following namespaces exist:
5555
* [K8s](k8s.md)
5656
* [Network](network.md)
5757
* [OCI](oci.md)
58+
* [OpenTelemetry](otel.md)
5859
* [OS](os.md)
5960
* [Peer](peer.md)
6061
* [Process](process.md)

docs/attributes-registry/otel.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!--- Hugo front matter used to generate the website version of this page:
2+
--->
3+
4+
# OpenTelemetry
5+
6+
## Scope Attributes
7+
8+
<!-- semconv registry.otel.scope(omit_requirement_level) -->
9+
| Attribute | Type | Description | Examples | Stability |
10+
|---|---|---|---|---|
11+
| `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) |
12+
| `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) |
13+
<!-- endsemconv -->

model/registry/deprecated/otel.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
groups:
2+
- id: otel.library
3+
prefix: otel.library
4+
type: resource
5+
brief: >
6+
Span attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
7+
attributes:
8+
- id: name
9+
type: string
10+
deprecated: use the `otel.scope.name` attribute.
11+
stability: experimental
12+
brief:
13+
examples: ['io.opentelemetry.contrib.mongodb']
14+
- id: version
15+
type: string
16+
deprecated: use the `otel.scope.version` attribute.
17+
stability: experimental
18+
brief:
19+
examples: ['1.0.0']

model/registry/otel.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
groups:
2+
- id: registry.otel.scope
3+
prefix: otel.scope
4+
type: resource
5+
brief: Attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
6+
attributes:
7+
- id: name
8+
type: string
9+
brief: The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP).
10+
examples: ['io.opentelemetry.contrib.mongodb']
11+
stability: stable
12+
- id: version
13+
type: string
14+
brief: The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP).
15+
examples: ['1.0.0']
16+
stability: stable

model/scope/exporter/exporter.yaml

+4-29
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,9 @@
11
groups:
22
- id: otel.scope
3-
prefix: otel.scope
43
type: resource
54
brief: Attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
65
attributes:
7-
- id: name
8-
type: string
9-
brief: The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP).
10-
examples: ['io.opentelemetry.contrib.mongodb']
11-
stability: stable
12-
- id: version
13-
type: string
14-
brief: The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP).
15-
examples: ['1.0.0']
16-
stability: stable
17-
- id: otel.library
18-
prefix: otel.library
19-
type: resource
20-
brief: >
21-
Span attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
22-
attributes:
23-
- id: name
24-
type: string
25-
deprecated: use the `otel.scope.name` attribute.
26-
stability: experimental
27-
brief:
28-
examples: ['io.opentelemetry.contrib.mongodb']
29-
- id: version
30-
type: string
31-
deprecated: use the `otel.scope.version` attribute.
32-
stability: experimental
33-
brief:
34-
examples: ['1.0.0']
6+
- ref: otel.scope.name
7+
requirement_level: recommended
8+
- ref: otel.scope.version
9+
requirement_level: recommended

0 commit comments

Comments
 (0)