fix: otel http parent propogation #3758
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes issue raised in the community forum: https://community.flipt.io/t/ofrep-http-trace-context-propagation/66
It seems GRPC gateway / OTEL grpc instrumentation does not properly proxy the
traceparent
information via HTTP headers if present. This fixes that.It also removes a couple deprecated method calls/setup from the OTEL/grpc projects
See: openfga/openfga#1624
Note: I used stdoutracing for demonstrating the changes before/after
Note: This also adds a new span named
grpc-gateway
before the grpc gateway span (ie:flipt.ofrep.OFREPService/EvaluateFlag
)Here's an example request, note the
traceparent
header which is used for parent span propagation:Before
Parent span is
000...
After
Parent span is set correctly and traces are linked