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

Jaeger translator performs unnecessary conversion of binary attributes to strings #32204

Closed
yurishkuro opened this issue Apr 5, 2024 · 1 comment · Fixed by #32208
Closed
Labels
bug Something isn't working pkg/translator/jaeger

Comments

@yurishkuro
Copy link
Member

Component(s)

pkg/translator/jaeger

What happened?

Description

When implementing e2e integration tests for jaeger-v2 we encountered a conversion issue jaegertracing/jaeger#5322 (comment)

Expected Result

binary attributes in OTEL should be represented as binary tags in Jaeger

Actual Result

transformers in both directions encode binary as base64. Behavior introduced in #14574

case pcommon.ValueTypeBytes:
tag.VType = model.ValueType_STRING
tag.VStr = base64.StdEncoding.EncodeToString(attr.Bytes().AsRaw())

case model.ValueType_BINARY:
dest.PutStr(tag.Key, base64.StdEncoding.EncodeToString(tag.GetVBinary()))

case jaeger.TagType_BINARY:
dest.PutStr(tag.Key, base64.StdEncoding.EncodeToString(tag.GetVBinary()))

Collector version

0.97

Environment information

No response

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@yurishkuro yurishkuro added bug Something isn't working needs triage New item requiring triage labels Apr 5, 2024
Copy link
Contributor

github-actions bot commented Apr 5, 2024

Pinging code owners:

  • pkg/translator/jaeger: @open-telemetry/collector-approvers @frzifus

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

@Frapschen Frapschen removed the needs triage New item requiring triage label Apr 7, 2024
@mx-psi mx-psi closed this as completed in b2bc497 Apr 23, 2024
rimitchell pushed a commit to rimitchell/opentelemetry-collector-contrib that referenced this issue May 8, 2024
…try#32208)

**Description:** translate binary attribute values to/from Jaeger as is,
without encoding them as base64 strings

**Link to tracking Issue:**  Resolves open-telemetry#32204

**Testing:** unit tests in the package

**Documentation:** none

---------

Signed-off-by: Yuri Shkuro <github@ysh.us>
jlg-io pushed a commit to jlg-io/opentelemetry-collector-contrib that referenced this issue May 14, 2024
…try#32208)

**Description:** translate binary attribute values to/from Jaeger as is,
without encoding them as base64 strings

**Link to tracking Issue:**  Resolves open-telemetry#32204

**Testing:** unit tests in the package

**Documentation:** none

---------

Signed-off-by: Yuri Shkuro <github@ysh.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg/translator/jaeger
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants