Quick question: io.opentelemetry.api.trace.Span can be inside @ApplicationScoped bean? #41652
-
As per subject, because we can do |
Beta Was this translation helpful? Give feedback.
Answered by
brunobat
Jul 3, 2024
Replies: 1 comment 1 reply
-
/cc @brunobat (opentelemetry,tracing), @radcortez (opentelemetry,tracing) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes it can, however, you should only set attributes that make sense for an application scoped bean.
As an example, if you want to have access, for example to the user id (different in every request), it needs to be on a
@RequestScoped
bean.