Skip to content

Conversation

@mabdinur
Copy link
Contributor

@mabdinur mabdinur commented Jan 26, 2026

What does this PR do?

Adds OpenTelemetry Logs API support to the datadog-opentelemetry crate, mirroring the existing metrics implementation.

Motivation

  • Provides a consistent API for logs export matching the metrics API (logs() mirrors metrics())
  • Enables OTLP-based logs export via gRPC and HTTP/protobuf protocols
  • Follows the same patterns and conventions as the metrics implementation for maintainability

Additional Notes

  • New feature flags: logs-grpc and logs-http (mirroring metrics-grpc and metrics-http)
  • Configuration via standard OpenTelemetry environment variables (DD_LOGS_OTEL_ENABLED, OTEL_EXPORTER_OTLP_LOGS_*)
  • Returns no-op logger provider on errors to prevent application crashes
  • Note: OpenTelemetry 0.31.0 doesn't have a global logger provider setter, so users must manage the logger provider instance
  • Testing: chore(otel): add logs endpoints to rust parametric app system-tests#6137

@mabdinur mabdinur force-pushed the munir/otel-logs-vibez branch 2 times, most recently from b21a1dd to 71b28b3 Compare January 28, 2026 20:39
@mabdinur mabdinur force-pushed the munir/otel-logs-vibez branch from 71b28b3 to 88814b7 Compare January 30, 2026 21:53
@mabdinur mabdinur force-pushed the munir/otel-logs-vibez branch from 39bd106 to 9b8d3aa Compare February 2, 2026 03:49
@mabdinur mabdinur marked this pull request as ready for review February 2, 2026 04:11
@mabdinur mabdinur requested a review from a team as a code owner February 2, 2026 04:11
@paullegranddc
Copy link
Collaborator

Looks mostly good to me 👍

mabdinur and others added 3 commits February 4, 2026 12:09
Co-authored-by: paullegranddc <82819397+paullegranddc@users.noreply.github.com>
@mabdinur mabdinur force-pushed the munir/otel-logs-vibez branch from 7777a50 to 516c504 Compare February 6, 2026 16:11
@mabdinur mabdinur merged commit 8e7d293 into main Feb 9, 2026
45 of 46 checks passed
@mabdinur mabdinur deleted the munir/otel-logs-vibez branch February 9, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants