Skip to content

Conversation

@bvigar
Copy link
Contributor

@bvigar bvigar commented Oct 28, 2025

Description

Adding a feature to the datadog receiver to support logs, in addition to the currently supported traces and metrics. This change adds support for the api/v2/logs endpoint.

Note: There's purposefully no datadog semantics or conforming in this changeset because I plan to make those changes next in the ddsemanticsprocessor. I didn't think they belonged here.

Link to tracking issue

Fixes

Testing

  • Built a custom collector locally with these changes and verified with the debug exporter that otel logs are being exported properly
  • Added tests for the log translation layer
  • Added e2e tests for the receiver for single and multiple logs

Documentation

Updated the receiver/datadogreceiver/README.md to now show support for logs.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 28, 2025

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 Oct 28, 2025
@github-actions
Copy link
Contributor

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

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

@bvigar bvigar marked this pull request as ready for review October 28, 2025 20:13
@bvigar bvigar requested review from a team and MovieStoreGuy as code owners October 28, 2025 20:13
@bvigar bvigar changed the title [receiver/datadogreceiver] Adding logs support to the dd receiver [receiver/datadogreceiver] Adding logs support to the datadog receiver Oct 30, 2025
Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

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

nothing jumps at me, everything LGTM - this is alpha and I haven't tested it myself.

@bvigar
Copy link
Contributor Author

bvigar commented Nov 5, 2025

Could somebody approve my workflows to run please?

@songy23 songy23 merged commit 9cf8ee6 into open-telemetry:main Nov 5, 2025
190 checks passed
@otelbot
Copy link
Contributor

otelbot bot commented Nov 5, 2025

Thank you for your contribution @bvigar! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help.

@github-actions github-actions bot added this to the next release milestone Nov 5, 2025
jelly-afk pushed a commit to jelly-afk/opentelemetry-collector-contrib that referenced this pull request Nov 6, 2025
open-telemetry#43841)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Adding a feature to the datadog receiver to support logs, in addition to
the currently supported traces and metrics. This change adds support for
the `api/v2/logs` endpoint.

Note: There's purposefully no datadog semantics or conforming in this
changeset because I plan to make those changes next in the
[ddsemanticsprocessor](https://github.com/Sawmills/opentelemetry-collector-contrib/tree/e70d1b2ba66405e10dfc02afc170f8e2462b4a36/processor/datadogsemanticsprocessor).
I didn't think they belonged here.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Built a custom collector locally with these changes and verified with
the debug exporter that otel logs are being exported properly
- Added tests for the log translation layer
- Added e2e tests for the receiver for single and multiple logs

<!--Describe the documentation added.-->
#### Documentation
Updated the `receiver/datadogreceiver/README.md` to now show support for
logs.

<!--Please delete paragraphs that you did not use before submitting.-->

---------

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

Labels

first-time contributor PRs made by new contributors receiver/datadog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants