Skip to content

Conversation

@YifeiZhuang
Copy link
Member

End-2-end test for trace context propagation from client application to server application. Unit test cases include:

  • otel client w/GrpcTraceBinContextPropagator --> otel server w/GrpcTraceBinContextPropagator
  • otel client w/W3CTraceContextPropagator --> otel server w/W3CTraceContextPropagator
  • census client --> otel server w/GrpcTraceBinContextPropagator

#11500

Comment on lines +154 to +155
// This is because census-tracing overrides the grpc-trace-bin header with
// OpenTelemetry's GrpcTraceBinPropagator.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does census-tracing overrides grpc-trace-bin header? Isn't it the other way around?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified again the order, the otel interceptor will be run first.
Looking at the code, the census interceptor is added in the front of the interceptor list. And the otel interceptor is after. Then the otel interceptor will be run first. see interceptor channel.

@YifeiZhuang YifeiZhuang merged commit d169a5d into grpc:master Sep 28, 2024
@YifeiZhuang YifeiZhuang deleted the otel-interop branch September 28, 2024 00:22
kannanjgithub pushed a commit to kannanjgithub/grpc-java that referenced this pull request Oct 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants