resource.Environment uses context.Background instead of plumbing a context.Context through.
|
func Environment() *Resource { |
|
detector := &fromEnv{} |
|
resource, err := detector.Detect(context.Background()) |
|
if err != nil { |
|
otel.Handle(err) |
|
} |
|
return resource |
|
} |
resource.Environmentusescontext.Backgroundinstead of plumbing acontext.Contextthrough.opentelemetry-go/sdk/resource/resource.go
Lines 262 to 269 in 6ce1429