Conversation
|
👋 Hey @DataDog/ruby-guild, please fill "Change log entry" section in the pull request description. If changes need to be present in CHANGELOG.md you can state it this way **Change log entry**
Yes. A brief summary to be placed into the CHANGELOG.md(possible answers Yes/Yep/Yeah) Or you can opt out like that **Change log entry**
None.(possible answers No/Nope/None) Visited at: 2026-03-12 20:34:24 UTC |
Typing analysisIgnored filesThis PR introduces 2 ignored files. It decreases the percentage of typed files from 45.64% to 45.53% (-0.11%). Ignored files (+2-0)❌ Introduced:Note: Ignored files are excluded from the next sections. Untyped methodsThis PR introduces 7 partially typed methods, and clears 5 partially typed methods. It increases the percentage of typed methods from 61.14% to 61.31% (+0.17%). Partially typed methods (+7-5)❌ Introduced:If you believe a method or an attribute is rightfully untyped or partially typed, you can add |
163ee55 to
ab5c738
Compare
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 808da4f | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback! |
BenchmarksBenchmark execution time: 2026-03-12 21:21:29 Comparing candidate commit 808da4f in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 46 metrics, 0 unstable metrics.
|
What does this PR do?
Adds OpenTelemetry logs support to the Datadog Ruby tracer. When
DD_LOGS_OTEL_ENABLEDis true, the tracer configures the OpenTelemetry logs SDK with a BatchLogRecordProcessor and OTLP exporter (with Datadog telemetry), wired through the existing SDK configurator. Adds configuration (endpoint, protocol, headers, timeouts, BLRP options), app-started telemetry for logs settings, supported-configurations entries, RBS types, and specs (one pending for trace-context bridging).Motivation:
Enable users to send OpenTelemetry logs via the tracer using standard OTEL env vars and
DD_LOGS_OTEL_ENABLED, aligned with the existing OTel metrics integration.Change log entry
DD_LOGS_OTEL_ENABLED=trueand use standard OTEL logs env vars (e.g.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT) to export logs via OTLP.Additional Notes:
N/A
How to test the change?
spec/datadog/opentelemetry/logs_spec.rb.DD_LOGS_OTEL_ENABLED=trueand confirm logs are exported to the configured OTLP endpoint.