Report OTLP export status in tracer startup log#12062
Draft
bm1549 wants to merge 1 commit into
Draft
Conversation
Report whether the tracer exports each telemetry signal over OTLP in the "DATADOG TRACER CONFIGURATION" startup log via three boolean fields: otlp_traces_export_enabled, otlp_metrics_export_enabled, and otlp_logs_export_enabled. Metrics and logs require both the OTel signal to be enabled and the OTLP exporter to be selected. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 24, 2026
Contributor
|
🎯 Code Coverage (details) 🔗 Commit SHA: a4287c5 | Docs | Datadog PR Page | Give us feedback! |
Contributor
🟡 Java Benchmark SLOs — Performance SLO warning (near threshold)
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Adds three boolean fields to the "DATADOG TRACER CONFIGURATION" startup log emitted by
dd-trace-core'sStatusLogger.toJson:otlp_traces_export_enabled:config.isTraceOtlpExporterEnabled()otlp_metrics_export_enabled:config.isMetricsOtelEnabled() && config.isMetricsOtlpExporterEnabled()otlp_logs_export_enabled:config.isLogsOtelEnabled() && config.isLogsOtlpExporterEnabled()Also adds a new
StatusLoggerTestcovering the default (disabled) case, the fully-enabled case, and the case where the OTLP exporter is selected but the metrics and logs OTel signals stay disabled.Motivation
Part of a cross-tracer effort to report OTLP export status in each tracer's startup log. The JSON keys are identical across the dd-trace-* libraries so the fields can be read the same way regardless of language.
Additional Notes
Traces report directly from the OTLP exporter setting. Metrics and logs require both the OTel signal to be enabled and the OTLP exporter to be selected, so those two fields combine both checks.
This is a diagnostic logging change and does not alter tracer runtime behavior.
Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueRelated PRs — cross-tracer OTLP startup-log effort