Skip to content

Retrieve the current trace in Go SDK #6113

Answered by dmathieu
josephschorr asked this question in Q&A
Discussion options

You must be logged in to vote

The trace.SpanFromContext method will give you the current span, it can be written.

There is no way to retrieve the full trace. We don't keep the entire tree in memory. And with distribiuted tracing, that wouldn't be possible.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by josephschorr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants