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

Response contains invalid Sampled header value #327

Closed
marcingrzejszczak opened this issue Jul 11, 2016 · 8 comments · Fixed by #329
Closed

Response contains invalid Sampled header value #327

marcingrzejszczak opened this issue Jul 11, 2016 · 8 comments · Fixed by #329
Assignees
Labels
Milestone

Comments

@marcingrzejszczak
Copy link
Contributor

No description provided.

@marcingrzejszczak marcingrzejszczak added this to the 1.1.0.M1 milestone Jul 11, 2016
@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Jul 11, 2016 via email

@marcingrzejszczak
Copy link
Contributor Author

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.

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Jul 11, 2016 via email

@marcingrzejszczak
Copy link
Contributor Author

Fair enough - let's remove them

@codefromthecrypt
Copy link
Contributor

👍

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.

@devasat
Copy link

devasat commented Jul 20, 2016

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?

curl -v http://localhost:8080
* Adding handle: conn: 0x7fc210803000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fc210803000) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 8080 (#0)
*   Trying ::1...
* Connected to localhost (::1) port 8080 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 200 OK
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< X-B3-Sampled: 1
< X-B3-SpanId: c4adf4696a1334
< X-B3-TraceId: c4adf4696a1334
< X-Application-Context: frontend
< Content-Type: text/plain;charset=UTF-8
< Content-Length: 28
< Date: Sat, 09 Jul 2016 13:04:41 GMT
<
* Connection #0 to host localhost left intact
Sat Jul 09 09:04:41 EDT 2016

@marcingrzejszczak
Copy link
Contributor Author

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

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Jul 21, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants