-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[receiver/datadog] correlating datadog traces with logs #23057
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
So what exactly would you like it do? Can we get more specific? This receiver takes in traces. Do you want a receiver that takes in logs and adds related trace info to it based on it? |
Hey @boostchicken sorry for late response, so as described atm I would like to: Add datadog.span.id and datadog.trace.id as attributes to the spans made by datadogreceiver. But any alternative suggestions are welcome and I can work on it |
**Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> Add datadog trace id and span id so we cancorrelate traces received by datadogreceiver with logs. Datadog libraries automatically provide datadog span ids and trace ids with the logs for various languages: - https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces/python/ -https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces/java?tab=log4j2 Example log for python: ``` 2023-06-05 06:01:30,459 INFO [__main__] [test-enhanced.py:44] [dd.service= dd.env= dd.version= dd.trace_id=6249785623524942554 dd.span_id=2 28114450199004348] - Starting a new Game! ``` **Link to tracking Issue:** #23057 **Testing:** <Describe what testing was performed and which tests were added.> - local testing with python app - updated unit tests - **Documentation:** <Describe the documentation added.>
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
receiver/datadog
Is your feature request related to a problem? Please describe.
We would like to correlate traces received by datadogreceiver with logs.
Datadog libraries automatically provide datadog span ids and trace ids with the logs for various languages:
-https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces/java?tab=log4j2
Example log:
Describe the solution you'd like
Provide
datadog.span.id
anddatadog.trace.id
as attributes to the spans made by datadogreceiver.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: