Replies: 1 comment 1 reply
-
Hello @sleep-dev, this looks like another bug in the SDK. The problem seems to be us cloning a new hub from the main hub. While pushing and popping of scopes seems problematic as well the order of executions suggests that's not an issue - at least for WebFlux. When the transaction is created in Possible fixes:
This may be a bug affecting other Sentry SDKs and integrations with OpenTelemetry support as well. I'll discuss with the team. |
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
-
Hello team.
I found something strange while developing.
When using the sentry-spring-boot-starter and the Opentelemetry Agent at the same time, it seems that configuring scope on the user code does not reflect on result.
Is there anyway to controll the hub made by sentry-opentelemtry-core?
code like below (kotlin)
application.properties
vm option
-javaagent: {Path to OpentelemetryAgent}
ENV
gradle
I found that
hub.configureScope
Section apply to hub from SentryWebFilter which isNoOp
.If I remove the SentryWebFilter and SentryWebTracingFilter then Sentry.getCurrentHub() makes clone of the mainHub in runtime.
If I use
io.sentry:sentry
andio.sentry:sentry-opentelemetry-core
(with env SENTRY_AUTO_INIT=true) then the result shows what I want ( thehub.configureScope
applies to result)I'm sorry for posting several questions. Thank you always.
Beta Was this translation helpful? Give feedback.
All reactions