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

interop-test: add opentelemetry tracing context propagation test #11538

Merged
merged 4 commits into from
Sep 28, 2024

Conversation

YifeiZhuang
Copy link
Contributor

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
Contributor 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
15 checks passed
@YifeiZhuang YifeiZhuang deleted the otel-interop branch September 28, 2024 00:22
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.

2 participants