Skip to content

Recommend default SDK component name format - #4082

Open
cijothomas wants to merge 3 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/component-name-fallback
Open

cijothomas wants to merge 3 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/component-name-fallback

Conversation

@cijothomas

@cijothomas cijothomas commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

Fixes #4077

Related to open-telemetry/opentelemetry-specification#5298.

Related changes

Together, these changes define configurable SDK component names, their fallback naming convention, and declarative configuration support.

Changes

When no application-provided component name is configured, recommend <otel.component.type>/<instance-counter> as the default format for otel.component.name.

This strengthens the existing fallback guidance from MAY to SHOULD. Assignment of the instance counter remains implementation-defined, and the existing uniqueness and cardinality requirements are unchanged.

The recommended format reflects existing counter-based implementations in .NET, Go, Java, and Python. Automatically assigned values are not required to identify the same logical component across restarts.

Merge requirement checklist

  • CONTRIBUTING.md guidelines followed.
  • Links to prototypes or existing instrumentations (when adding or changing conventions)
  • Disclose AI usage, see OTel GenAI policy:
    • no AI used
    • AI-assisted
    • bulk AI-generated
  • I have the experience and knowledge necessary to understand, review, and validate all content in this PR.

Copilot AI lite review requested due to automatic review settings September 4, 2026 15:39
@github-actions github-actions Bot added enhancement New feature or request area:otel labels Sep 4, 2026
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-09-23 04:29 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The updated normative recommendation introduces a small wording inconsistency/ambiguity around whether the instance-counter is “MAY be” assigned vs implementation-defined in the default-name scenario.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the OpenTelemetry semantic conventions guidance for otel.component.name to recommend a predictable default naming format when no application-provided name is configured, aligning the conventions with existing SDK practice and the linked specification work.

Changes:

  • Strengthen the fallback recommendation from MAY to SHOULD for using <otel.component.type>/<instance-counter> when no application-provided component name is set.
  • Propagate the updated recommendation into the generated registry and SDK metrics documentation.
  • Add a changelog entry describing the enhancement and linking it to issue #4077.
File summaries
File Description
model/otel/registry.yaml Updates the source-of-truth semantic convention note for otel.component.name to recommend the default naming pattern.
docs/registry/attributes/otel.md Regenerates the attribute registry docs to reflect the updated recommendation.
docs/otel/sdk-metrics.md Regenerates SDK self-observability metric docs blocks that include the otel.component.name guidance.
.chloggen/component-name-fallback.yaml Adds a changelog entry for the enhanced default naming recommendation.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread model/otel/registry.yaml Outdated
When no application-provided name is configured, implementations SHOULD follow a `<otel.component.type>/<instance-counter>` pattern, e.g. `batching_span_processor/0`.
Hereby `otel.component.type` refers to the corresponding attribute value of the component.

The value of `instance-counter` MAY be automatically assigned by the component and uniqueness within the enclosing SDK instance MUST be guaranteed.
@cijothomas
cijothomas force-pushed the cijothomas/component-name-fallback branch from 12c5efd to 937501e Compare September 12, 2026 17:13
@cijothomas
cijothomas marked this pull request as ready for review September 23, 2026 04:17
@cijothomas
cijothomas requested review from a team as code owners September 23, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:otel enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recommend a default format for automatically assigned otel.component.name

2 participants