Skip to content

Add OTLP Trace Metrics Configs#11653

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 5 commits into
masterfrom
mhlidd/otlp_trace_metrics_config
Jun 24, 2026
Merged

Add OTLP Trace Metrics Configs#11653
gh-worker-dd-mergequeue-cf854d[bot] merged 5 commits into
masterfrom
mhlidd/otlp_trace_metrics_config

Conversation

@mhlidd

@mhlidd mhlidd commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

This PR introduces OTLP Trace Metrics Configs that set the baseline for enabling this feature in future PRs.

Motivation

Additional Notes

Contributor Checklist

  • Format the title according to the contribution guidelines
  • Assign the type: and (comp: or inst:) labels in addition to any other useful labels
  • Avoid using close, fix, or any linking keywords when referencing an issue
    Use solves instead, and assign the PR milestone to the issue
  • Update the CODEOWNERS file on source file addition, migration, or deletion
  • Update public documentation with any new configuration flags or behaviors
  • Add your completed PR to the merge queue by commenting /merge. You can also:
    • Customize the commit message associated with the merge with /merge --commit-message "..."
    • Remove your PR from the merge queue with /merge -c
    • Skip all merge queue checks with /merge -f --reason "reason"; please use this judiciously, as some checks do not run at the PR-level (note: the PR still needs to be mergeable, this will only skip the pre-merge build)
    • Get more information in this doc

Jira ticket: [PROJ-IDENT]

@datadog-datadog-prod-us1

This comment has been minimized.

@dd-octo-sts

dd-octo-sts Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 13.99 s 13.96 s [-0.4%; +0.8%] (no difference)
startup:insecure-bank:tracing:Agent 12.95 s 13.09 s [-1.7%; -0.4%] (maybe better)
startup:petclinic:appsec:Agent 16.84 s 16.54 s [+0.9%; +2.7%] (maybe worse)
startup:petclinic:iast:Agent 16.44 s 16.80 s [-6.5%; +2.2%] (no difference)
startup:petclinic:profiling:Agent 16.64 s 16.50 s [-3.6%; +5.3%] (no difference)
startup:petclinic:sca:Agent 15.93 s 16.38 s [-8.9%; +3.4%] (unstable)
startup:petclinic:tracing:Agent 15.53 s 15.98 s [-7.0%; +1.3%] (no difference)

Commit: ead86767 · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@mhlidd mhlidd changed the title init Add OTLP Trace Metrics Configs Jun 23, 2026
@mhlidd
mhlidd marked this pull request as ready for review June 23, 2026 20:39
@mhlidd
mhlidd requested review from a team as code owners June 23, 2026 20:39
@mhlidd
mhlidd requested review from mtoffl01, sarahchen6 and ygree and removed request for a team June 23, 2026 20:39

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6cfff78477

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread internal-api/src/main/java/datadog/trace/api/Config.java Outdated
Comment thread internal-api/src/test/groovy/datadog/trace/api/ConfigTest.groovy Outdated
@dd-octo-sts

dd-octo-sts Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request

If you need help, please check our contributing guidelines.

@mhlidd mhlidd added type: feature Enhancements and improvements comp: config Configuration labels Jun 23, 2026
@mhlidd

mhlidd commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7224bc2e0f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

tracesSpanMetricsEnabled =
configProvider.getBoolean(
TRACES_SPAN_METRICS_ENABLED,
isTraceOtlpExporterEnabled() && isMetricsOtlpExporterEnabled());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Require metrics enablement for span-metric default

When a deployment sets DD_TRACE_OTEL_EXPORTER=otlp and DD_METRICS_OTEL_EXPORTER=otlp but leaves DD_METRICS_OTEL_ENABLED at its default false, this default evaluates to true even though the OTLP metrics pipeline is not enabled. That contradicts the tri-state comment's "OTLP metrics export" condition and can make consumers of isTracesSpanMetricsEnabled() emit span metrics without an active metrics exporter; the default should also require isMetricsOtelEnabled().

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Low risk since DD OTel configs are "internal", but fixed in ead8676 since it is a possibility.

Comment thread internal-api/src/test/groovy/datadog/trace/api/ConfigTest.groovy Outdated
@mhlidd

mhlidd commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ead86767cb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread internal-api/src/test/groovy/datadog/trace/api/ConfigTest.groovy
@mhlidd
mhlidd added this pull request to the merge queue Jun 24, 2026
@dd-octo-sts

dd-octo-sts Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Jun 24, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-06-24 17:04:23 UTC ℹ️ Start processing command /merge


2026-06-24 17:04:28 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-06-24 18:09:13 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 24, 2026
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 29af0b4 into master Jun 24, 2026
583 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the mhlidd/otlp_trace_metrics_config branch June 24, 2026 18:09
@github-actions github-actions Bot added this to the 1.64.0 milestone Jun 24, 2026
TophrC-dd pushed a commit that referenced this pull request Jun 29, 2026
init

adding tests

Merge branch 'master' into mhlidd/otlp_trace_metrics_config

bugfix

fixing issue where internal DD configs are used instead of OTel equivalents

Co-authored-by: devflow.devflow-routing-intake <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: config Configuration type: feature Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants