Skip to content

feat: add feature gate to control otel.scope convention in Datadog exporter#49001

Open
Alexpedone wants to merge 2 commits into
open-telemetry:mainfrom
Alexpedone:alexandre.pedone/OTEL-3043/ingestion_convention
Open

feat: add feature gate to control otel.scope convention in Datadog exporter#49001
Alexpedone wants to merge 2 commits into
open-telemetry:mainfrom
Alexpedone:alexandre.pedone/OTEL-3043/ingestion_convention

Conversation

@Alexpedone

Copy link
Copy Markdown

Description

Adds a datadog.EnableScopeConvention feature gate (Beta, enabled by default) to the Datadog exporter and APM stats connector. When enabled, OTLP spans are ingested using the otel.scope.name / otel.scope.version attributes instead of the deprecated otel.library.name / otel.library.version.

The feature gate propagates to the embedded trace agent as the disable_scope_convention feature flag. Customers who run into issues can opt out by disabling the gate.

Authorship

  • I, a human, wrote this pull request description myself.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Jun 10, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@github-actions github-actions Bot added the first-time contributor PRs made by new contributors label Jun 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

  • Read our Contributing Guidelines.
  • Sign the CLA if you haven't already.
  • First-time contributors should have at most one PR not marked as draft until their first PR is merged.
  • If your change isn't one of our priority components, reviews may take more time.
  • Give reviewers at least a few days before pinging them for feedback.
  • If you need help or struggle to move your PR forward:

Comment thread pkg/datadog/internal/metadata/generated_feature_gates.go
Comment thread pkg/datadog/apmstats/connector.go
Comment thread pkg/datadog/internal/metadata/generated_feature_gates.go Outdated
@Alexpedone Alexpedone marked this pull request as ready for review June 10, 2026 17:14
@Alexpedone Alexpedone requested review from a team, mx-psi and songy23 as code owners June 10, 2026 17:14

@songy23 songy23 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This warrants a changelog

Comment thread pkg/datadog/metadata.yaml
stage: beta
description: >-
When enabled, use otel.scope.name and otel.scope.version convention to set scope name and version instead of the deprecated otel.library.name and otel.library.version.
from_version: v1.10.0

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.

Not sure what that version is, this should be 0.155.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exporter/datadog Datadog components first-time contributor PRs made by new contributors pkg/datadog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants