Skip to content

Commit e22cda9

Browse files
authored
Add otel.scope.schema_url to non-OTLP exporters (#2489)
1 parent 0653645 commit e22cda9

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

.chloggen/2489.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Use this changelog template to create an entry for release notes.
2+
#
3+
# If your change doesn't affect end users you should instead start
4+
# your pull request title with [chore] or use the "Skip Changelog" label.
5+
6+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
7+
change_type: enhancement
8+
9+
# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db)
10+
component: otel
11+
12+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
13+
note: "Add `otel.scope.schema_url` attribute to non-OTLP exporters that represents an instrumentation scope schema URL."
14+
15+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
16+
# The values here must be integers.
17+
issues: [2320, 2489]

docs/registry/attributes/otel.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concept
104104
| Attribute | Type | Description | Examples | Stability |
105105
|---|---|---|---|---|
106106
| <a id="otel-scope-name" href="#otel-scope-name">`otel.scope.name`</a> | string | The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). | `io.opentelemetry.contrib.mongodb` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
107+
| <a id="otel-scope-schema-url" href="#otel-scope-schema-url">`otel.scope.schema_url`</a> | string | The schema URL of the instrumentation scope. | `https://opentelemetry.io/schemas/1.31.0` | ![Development](https://img.shields.io/badge/-development-blue) |
107108
| <a id="otel-scope-version" href="#otel-scope-version">`otel.scope.version`</a> | string | The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). | `1.0.0` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
108109

109110
## Deprecated OTel Library Attributes

model/otel/registry.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ groups:
7171
brief: The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP).
7272
examples: ['1.0.0']
7373
stability: stable
74+
- id: otel.scope.schema_url
75+
type: string
76+
brief: The schema URL of the instrumentation scope.
77+
examples: ['https://opentelemetry.io/schemas/1.31.0']
78+
stability: development
7479
- id: registry.otel.component
7580
type: attribute_group
7681
display_name: OTel Component Attributes

0 commit comments

Comments
 (0)