how to check if agent has started span, if not how can I start span? #12203
Answered
by
trask
annaik-mdsol
asked this question in
Q&A
-
I run my springboot app with otel agent, I want to ensure that agent creates span if not I want to create span for my app. I have created loggingContextFilter in springboot, how to see span starting and if not create one and then process doFilter? |
Beta Was this translation helpful? Give feedback.
Answered by
trask
Sep 12, 2024
Replies: 1 comment
-
I think |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
annaik-mdsol
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think
Span.current().getSpanContext().isValid()
is what you're looking for