-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Component(s)
exporter/kafka
Is your feature request related to a problem? Please describe.
In this issue #35686 it was described a usecase that would require a complete record generated by OpenTelemetry Collector to be send in a RAW format. Unfortunatelly, the current raw
format sends just body (https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/kafkaexporter/raw_marshaler.go#L31).
Describe the solution you'd like
Add an encoding, that would not limit the raw
format to just body, but will also send resource and record attributes.
Describe alternatives you've considered
Save the whole 'message' to a variable and replace a Body with a content of this variable. It seems to me it will be resource consuming.
Additional context
Creating a follow-up issue recommended by @ChrsMark in #35686 (comment)