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

Asymmetry in extractor vs injector breaks propagation #96

Closed
meltsufin opened this issue Sep 14, 2018 · 4 comments
Closed

Asymmetry in extractor vs injector breaks propagation #96

meltsufin opened this issue Sep 14, 2018 · 4 comments

Comments

@meltsufin
Copy link
Collaborator

The extractor always prioritizes GCP headers (X-Cloud-Trace-Context) over the Brave headers.
However, the injector only propagates traces in the Brave headers. The GCP load-balancer will generate X-Cloud-Trace-Context header when one is not present. This causes a break in the trace propagation from service A to B.

I see two possible solutions:

  1. Injector should inject both X-Cloud-Trace-Context and X-B3-* headers.
  2. Extractor should prioratize X-B3-* headers over X-Cloud-Trace-Context.

See: spring-attic/spring-cloud-gcp#1019

cc/ @saturnism

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Sep 14, 2018 via email

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Sep 14, 2018 via email

@meltsufin
Copy link
Collaborator Author

You are basically suggesting combining both proposed solutions. Makes sense.

@codefromthecrypt
Copy link
Member

I meant do both 1 and 2.

I maybe mis-phrased the bullet:

  • If you can, then you could prioritize as currently then
    dual-propagate X-Cloud-Trace-Context

The sub-point to two was meant to be phrased unlikely. For example, it isn't likely to be in a homogenous X-Cloud-Trace-Context, hence this issue. It is even less likely going forward with tracecontext etc. So, prioritizing X-Cloud-Trace-Context (over b3) probably isn't much sense, and the incidental work dual-propagating X-Cloud-Trace-Context is also less sensible AFAICT.

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

No branches or pull requests

2 participants