-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
resource.Environment uses context.Background instead of plumbing a context.Context through.
opentelemetry-go/sdk/resource/resource.go
Lines 262 to 269 in 6ce1429
| func Environment() *Resource { | |
| detector := &fromEnv{} | |
| resource, err := detector.Detect(context.Background()) | |
| if err != nil { | |
| otel.Handle(err) | |
| } | |
| return resource | |
| } |
Metadata
Metadata
Assignees
Labels
No labels