Skip to content

Commit 5a45eb5

Browse files
author
Alex Boten
committed
Renaming OTEL_RESOURCE_LABELS env var
As per the specification here open-telemetry/opentelemetry-specification#758
1 parent 799c178 commit 5a45eb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/resource/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// the Detect function to generate a Resource from the merged information.
2323
//
2424
// To load a user defined Resource from the environment variable
25-
// OTEL_RESOURCE_LABELS the FromEnv Detector can be used. It will interpret
25+
// OTEL_RESOURCE_ATTRIBUTES the FromEnv Detector can be used. It will interpret
2626
// the value as a list of comma delimited key/value pairs
2727
// (e.g. `<key1>=<value1>,<key2>=<value2>,...`).
2828
package resource

sdk/resource/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
)
2525

2626
// envVar is the environment variable name OpenTelemetry Resource information can be assigned to.
27-
const envVar = "OTEL_RESOURCE_LABELS"
27+
const envVar = "OTEL_RESOURCE_ATTRIBUTES"
2828

2929
var (
3030
//errMissingValue is returned when a resource value is missing.

0 commit comments

Comments
 (0)