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

Copy certain context keys into the HTTP responses #558

Closed
ivantopo opened this issue Oct 12, 2018 · 3 comments
Closed

Copy certain context keys into the HTTP responses #558

ivantopo opened this issue Oct 12, 2018 · 3 comments
Assignees

Comments

@ivantopo
Copy link
Contributor

There is a common request for adding the trace and span ids on the HTTP responses from an instrumented service (see https://github.com/kamon-io/kamon-play/issues/16 for example). This is a common enough request that we should add it, but we need to figure out what's the cleanest way to do it.

Since #552 we will have an abstraction for instrumenting HTTP servers so, my proposal would be to add some special configuration there so that we can say "write the key span into the response, using the XXXX entry writer". This needs some more thought, looking forward for comments.

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Oct 13, 2018 via email

@ivantopo ivantopo self-assigned this Oct 30, 2018
@ivantopo
Copy link
Contributor Author

Thanks for the feedback, @adriancole. We finally got to implement this, it was a rather quick thing to do!

@dpsoft dpsoft closed this as completed in 313b7e7 Oct 31, 2018
dpsoft added a commit that referenced this issue Oct 31, 2018
include trace identifiers in HTTP responses, fixes #558
@jtjeferreira
Copy link
Contributor

this means kamon-io/kamon-play#29 is fixed?

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

3 participants