-
Notifications
You must be signed in to change notification settings - Fork 783
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
Response contains invalid Sampled header value #327
Comments
we could qualify this further, I think.
It seems to be copying all B3 request headers to the response, which is
unnecessary overhead. By not doing that, we automatically fix the one with
the wrong sample state.
|
Hmm but isn't it nice to send a request and in the response get the info about the trace id (at least). Or actually from the user's perspective getting the trace id is the only thing that could matter. We could limit the headers to contain only the trace id actually. |
My opinion is to not copy any of the propagation headers to the response
automatically. Trace ids aren't the same as end-user "request ids", which
are often copied to the response.
Once we escalate something into user namespace we have other problems. What
do we say when people have user support asking what this id is about? What
if someone finds that leaking the trace ids makes some attack easier? What
if we want to use a different header for propagation in the future?
We don't have any of these problems if we simply don't do this.
|
Fair enough - let's remove them |
👍 PS it is relatively common for folks to ask to have tracing system re-use some externally managed "request ids" as "trace ids". That's one reason why zipkin doesn't require the trace id to be a span id. |
Please see #331 With the fix, header X-B3-TraceId wouldn't be in the response? I was using the trace id to find the trace in Zipkin. If this header is removed, how would I go about finding trace for a paritcular request in Zipkin?
|
You can search for it in the logs and in Zipkin. You know the time, you have tags etc. None of the existing tracing instrumentations is publishing this information in the response. Additionally, it can be problematic from the security perspective |
the typical ways would be to add a tag for your "request id" if there is
one, basically the user-level request id. Then, you can search by that.
If doing debugging, you can also start a trace from the client. In that
case, you already know the trace id.
ex. https://github.com/openzipkin/zipkin-browser-extension
|
No description provided.
The text was updated successfully, but these errors were encountered: