sentry-java
sentry-java copied to clipboard
Allow traverse span tree
Description
Should we provide an easy way to get the parent of a span (or directly the root span/transaction)?
This was asked by a customer who wants to attach custom spans to ui.load spans
Getting the current transaction should already be possible with Sentry.configureScope(scope -> scope.getTransaction());, maybe this is sufficient already.
Let's discuss this topic on a broader level, maybe we have some platforms which already expose APIs like the requested one.