-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[kafkareceiver] - dynamic metadata support #21729
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners for receiver/kafka: @pavolloffay @MovieStoreGuy. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Do you have an example of how you would use the headers from kafka as part of the data that is sent? |
Yes, I would like to give you an example using Splunk Exporter: Let's suppose I send the following event: I eventually want this data to send in "main" index on Splunk. This was just an example from my pov, there might be others as well. |
Unfortunately the collector doesn't have a current mechanism to pass meta information from one receiver to another that can associate it with data (interestingly enough considering that this is tracing's jam). While it is possible to extract those headers for you, it is another request to have components consume that meta information that could be provided to those components. |
Yeah, I agree. I can actually create a PR myself if you're open to taking a look. I'll think this through one more time. |
I am happy to review, but depending how much it touch will require some further conversation if we want to accept it upstream. If you have the time to create a PR as a PoC of what could happen, I would be interested to see. Unfortunately, I don't have the time to spike this myself. |
Yeah, no worries, I planned working on this before creating the issue, so no issues there. If you cna assign this to me. |
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. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
@MovieStoreGuy can you reopen this in any way? I can't see any button. |
**Description:** Enable support to extract headers from Kafka Messages and attach them to resource attributes. In later stages in the pipeline, different exporters can utilize this information. **Link to tracking Issue:** [21729](#21729) **Testing:** Added test cases for logs, traces, and metrics. **Documentation:** <Describe the documentation added.> --------- Co-authored-by: Alex Boten <aboten@lightstep.com>
Completed via #24367 |
**Description:** Enable support to extract headers from Kafka Messages and attach them to resource attributes. In later stages in the pipeline, different exporters can utilize this information. **Link to tracking Issue:** [21729](open-telemetry#21729) **Testing:** Added test cases for logs, traces, and metrics. **Documentation:** <Describe the documentation added.> --------- Co-authored-by: Alex Boten <aboten@lightstep.com>
Component(s)
receiver/kafka
Is your feature request related to a problem? Please describe.
It's an enhancement request
Describe the solution you'd like
Users can specify custom metadata fields in Kafka message headers.
Currently, kafkareceiver receives the log, unmarshals it, and passes it forward.
It ignores the header field.
Users might want to attach metadata in headers and use that data in later stages.
Instead of ignoring the headers, we can also pass them on to the next stage.
Describe alternatives you've considered
Open for any other alternatives
Additional context
No response
The text was updated successfully, but these errors were encountered: