diff --git a/.chloggen/2489.yaml b/.chloggen/2489.yaml new file mode 100644 index 000000000..316613ea7 --- /dev/null +++ b/.chloggen/2489.yaml @@ -0,0 +1,17 @@ +# Use this changelog template to create an entry for release notes. +# +# If your change doesn't affect end users you should instead start +# your pull request title with [chore] or use the "Skip Changelog" label. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db) +component: otel + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: "Add `otel.scope.schema_url` attribute to non-OTLP exporters that represents an instrumentation scope schema URL." + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +# The values here must be integers. +issues: [2320, 2489] diff --git a/docs/registry/attributes/otel.md b/docs/registry/attributes/otel.md index cf9ec65e7..adcffba05 100644 --- a/docs/registry/attributes/otel.md +++ b/docs/registry/attributes/otel.md @@ -104,6 +104,7 @@ Attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concept | 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.schema_url` | string | The schema URL of the instrumentation scope. | `https://opentelemetry.io/schemas/1.31.0` | ![Development](https://img.shields.io/badge/-development-blue) | | `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) | ## Deprecated OTel Library Attributes diff --git a/model/otel/registry.yaml b/model/otel/registry.yaml index 2d3fed96e..916df907b 100644 --- a/model/otel/registry.yaml +++ b/model/otel/registry.yaml @@ -71,6 +71,11 @@ groups: brief: The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). examples: ['1.0.0'] stability: stable + - id: otel.scope.schema_url + type: string + brief: The schema URL of the instrumentation scope. + examples: ['https://opentelemetry.io/schemas/1.31.0'] + stability: development - id: registry.otel.component type: attribute_group display_name: OTel Component Attributes