0

I'm trying to setAttributes() on the first Span in the current Trace that has the same host.name attribute as the active span (trace.getSpan(context.active())).

How do I walk the tree of Spans up? I couldn't find how to get the active span's parent span.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.