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
IMO Otel should guard for this and if it's nil fill in a context.Background(). PR to do that: #3110
Environment
OS: Linux
Architecture: x64
Go Version: 1.19
opentelemetry-go version: 1.9.0 (based on panic stack trace)
Steps To Reproduce
Provide a nil context to Start() (see Go Playground link in description)
Expected behavior
Typical Otel behavior seems to either No-op or use reasonable defaults. While this panic isn't coming from the Otel lib, but rather an std lib, I'd still expect the sdk to - at worst - provide a NoOp span based on similar behavior in other parts
The text was updated successfully, but these errors were encountered:
Description
Creating a new Span with a nil context causes a panic
Example https://go.dev/play/p/SXEK1EX_GzQ
Stack trace:
IMO Otel should guard for this and if it's nil fill in a
context.Background()
. PR to do that: #3110Environment
Steps To Reproduce
Start()
(see Go Playground link in description)Expected behavior
Typical Otel behavior seems to either No-op or use reasonable defaults. While this panic isn't coming from the Otel lib, but rather an std lib, I'd still expect the sdk to - at worst - provide a NoOp span based on similar behavior in other parts
The text was updated successfully, but these errors were encountered: