Add otel.scope.schema_url to non-OTLP exporters (#2489)

This commit is contained in:
Robert Pająk 2025-07-17 06:18:41 +02:00 committed by GitHub
parent 06536459c8
commit e22cda9829
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 23 additions and 0 deletions

17
.chloggen/2489.yaml Normal file
View File

@ -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]

View File

@ -104,6 +104,7 @@ Attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concept
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| <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) |
| <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) |
| <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) |
## Deprecated OTel Library Attributes

View File

@ -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