You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When moving options.setSpanFactory(SpanFactoryFactory.create(new LoadClass(), NoOpLogger.getInstance())); from the SentryOptions ctor to Sentry.init OpenTelemetry ends some spans early.
We don't know why that happens yet.
The agentless sample does not have the "spanCreatedThroughSentryApi" span due to e.g. "spanCreatedThroughOtelApi" being ended early and the startChild call thus NoOping. Setting an earlier breakpoint causes the behaviour to change and leads to "personSpanThroughOtelAnnotation" being ended prematurely. When removing the @WithSpan annotation, it's the root span that's ended too early.