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

SpanContext can put in MDC #179

Closed
wuyupengwoaini opened this issue Oct 23, 2018 · 3 comments
Closed

SpanContext can put in MDC #179

wuyupengwoaini opened this issue Oct 23, 2018 · 3 comments

Comments

@wuyupengwoaini
Copy link
Contributor

wuyupengwoaini commented Oct 23, 2018

Suppose this situation:

when i use tracing system,and i find a trace has a problem. So,i search the logs in ELK .But ,i find it is so hard to search the logs related to that trace,because there is no trace id in logs.So i can not find related logs by trace id.

so,colud put SpanContext(include traceId,spanId,parentId,flag) in MDC,i can format the log from the MDC.And then I can search the log by trace id

@objectiser
Copy link
Contributor

This will only be possible once opentracing/opentracing-java#280 has been released (v0.32.0). Currently the traceId and spanId are not available via the OpenTracing API.

@wuyupengwoaini
Copy link
Contributor Author

yeah,waiting for opentracing v0.32.0

@yurishkuro
Copy link

Duplicate of #92

@yurishkuro yurishkuro marked this as a duplicate of #92 Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants