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

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

Open
xzizka opened this issue Dec 4, 2024 · 2 comments
Open

Comments

@xzizka
Copy link

xzizka commented Dec 4, 2024

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)

@xzizka xzizka added enhancement New feature or request needs triage New item requiring triage labels Dec 4, 2024
Copy link
Contributor

github-actions bot commented Dec 4, 2024

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@braydonk
Copy link
Contributor

braydonk commented Dec 4, 2024

Triage: Issue appears to contain necessary information. Moving to waiting-for-codeowners

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants