Reputation: 9806
I have three services A, B, C, and the calling relationship between them is A->B->C.
I would like to pass in a special http header when calling A, and subsequent requests caused by this request will automatically carry this http header.
Is it the fact that only java-agent
can do it without hacking into the service code? Envoy seems to require users to modify the service code to explicitly configure the http headers.
Environment:
demo
profile)Upvotes: 0
Views: 326
Reputation: 5267
Is header propagation only java-agent can do?
No, there are couple of ways to achive header propagation in istio, based on you specific situation.
Header propagation may be accomplished through client libraries, such as Zipkin or Jaeger. It may also be accomplished manually, as documented in the Distributed Tracing Task.
Look also at the topic What is the best practice of HTTP header propagation?
As you can see, there is no one perfect way to help you achieve your goal. See also:
Using OpenTracing with Istio/Envoy Headers propagation with hpropagate
Upvotes: 1