Skip to content
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

Merged
merged 4 commits into from
May 22, 2024

Conversation

jm1221d
Copy link
Contributor

@jm1221d jm1221d commented May 15, 2024

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 called kafkaheaders.

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.

@jm1221d jm1221d requested review from a team as code owners May 15, 2024 06:52
Copy link
Contributor

@remeh remeh left a 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?

@jm1221d
Copy link
Contributor Author

jm1221d commented May 15, 2024

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/

@urseberry urseberry self-assigned this May 15, 2024
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@jszwedko jszwedko requested a review from remeh May 20, 2024 18:11
@remeh remeh merged commit 923c4d4 into DataDog:master May 22, 2024
6 checks passed
@remeh
Copy link
Contributor

remeh commented May 22, 2024

Thanks for the contribution @jm1221d. I'll try to have a new release v1.3.0 shipped this week.

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.

3 participants