diff --git a/state/global.go b/state/global.go index 258c9f7..bac9409 100644 --- a/state/global.go +++ b/state/global.go @@ -19,6 +19,9 @@ func GlobalState() OTEL { otelStateMutex.RLock() s := otelState otelStateMutex.RUnlock() + if s == nil { + return nil + } return s }