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
if tp, ok := tp.(*sdktrace.TracerProvider); ok && tp != nil {
return tp.Shutdown(ctx)
}
This code panic because in the context there is no hub assigned, and the spanprocessor try to call stackTop on a nil hub, do i have to explicitly assign a hub into the main context?
Environment
SDK
sentry-go version: 0.22.0
Go version: 1.20
Using Go Modules? [yes]
Additional context
The text was updated successfully, but these errors were encountered:
Summary
I setup sentry with Opentelemetry, and on shutdown, the code panic with stack trace
How i init client
How i shutdown (ctx is background)
This code panic because in the context there is no hub assigned, and the spanprocessor try to call stackTop on a nil hub, do i have to explicitly assign a hub into the main context?
Environment
SDK
sentry-go
version: 0.22.0Additional context
The text was updated successfully, but these errors were encountered: