-
Notifications
You must be signed in to change notification settings - Fork 11
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
add datadog.parse_record_headers property #49
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jm1221d, thanks for the contribution!
I left a few comments and I also have a separate question on the OpenTelemetry implementation you're referring to: is this implementation also adding these headers in a JSON or are they sent differently?
src/main/java/com/datadoghq/connect/logs/sink/DatadogLogsApiWriter.java
Outdated
Show resolved
Hide resolved
src/main/java/com/datadoghq/connect/logs/sink/DatadogLogsApiWriter.java
Outdated
Show resolved
Hide resolved
Hi @remeh , thanks for looking at the PR! Currently, the OpenTelemetry implementation adds a header called traceparent (or other headers if enabled -> b3), and the value format is described here: https://www.w3.org/TR/trace-context/ |
Thanks for the contribution @jm1221d. I'll try to have a new release v1.3.0 shipped this week. |
What does this PR do?
Add a property
datadog.parse_record_headers
to the connector configuration that enables parsing the Kafka Record Headers and sending them to DataDog. The attribute would be calledkafkaheaders
.Motivation
Currently, Kafka Record Headers are not sent to DataDog. OpenTelemetry injects a record header, called traceparent, to all kafka records. This change would enable us to correlate all records that we received in DataDog by the traceparent record header key or any other record header key.
Additional Notes
Additionally, we could add another property that would explicitly contain the header keys that the user wants to parse and send to DataDog.