Skip to content

Encoding that sends raw format including resource and record attributes #36674

@xzizka

Description

@xzizka

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions