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

Replace api_v3.SpansResponseChunk with opentelemetry.proto.trace.v1.TracesData #103

Merged
merged 4 commits into from
Jan 14, 2024

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Jan 14, 2024

Which problem is this PR solving?

Description of the changes

  • Replace SpansResponseChunk with opentelemetry.proto.trace.v1.TracesData

How was this change tested?

Signed-off-by: Yuri Shkuro <github@ysh.us>
yurishkuro and others added 3 commits January 14, 2024 13:57
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
@yurishkuro yurishkuro marked this pull request as ready for review January 14, 2024 19:09
@yurishkuro yurishkuro changed the title Use OTLP Replace api_v3.SpansResponseChunk with opentelemetry.proto.trace.v1.TracesData Jan 14, 2024
@yurishkuro yurishkuro merged commit a97152c into jaegertracing:main Jan 14, 2024
2 of 3 checks passed
@yurishkuro yurishkuro deleted the use-otlp branch January 14, 2024 19:11
yurishkuro added a commit to jaegertracing/jaeger that referenced this pull request Jan 15, 2024
## Which problem is this PR solving?
- Part of #5079
- Avoid triple marshaling due to our use of internally generated OTLP
proto types, which prevents us from directly using the output of
jaeger->otlp conversion from collector contrib.

## Description of the changes
- 🛑 breaking: the JSON format is changed to match
[OTLP-JSON][otlp-json], specifically
- the trace & span IDs are returned as hex-encoded strings, not base64
as required by Proto-JSON
  - enums are returned as integers, not strings
- Use Proposal 1 from
open-telemetry/opentelemetry-collector#9233 (comment)
- API-V3 proto is already declared to use official OTLP types; remove
the overrides to our internally generated OTLP proto types
- Replace `SpansResponseChunk` with official `otlp.TracesData`, but
override it internally to use a custom type
- Depends on jaegertracing/jaeger-idl#103

## How was this change tested?
- Unit tests

[otlp-json]:
https://github.com/open-telemetry/opentelemetry-proto/blob/main/docs/specification.md#json-protobuf-encoding

---------

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant