You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-07-17 01:12:45 +02:00
Renaming OTEL_RESOURCE_LABELS env var (#1042)
* Renaming OTEL_RESOURCE_LABELS env var As per the specification here https://github.com/open-telemetry/opentelemetry-specification/pull/758 * update changelog
This commit is contained in:
@ -13,6 +13,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
- The `go.opentelemetry.io/otel/bridge/opentracing` bridge package has been made into its own module.
|
- The `go.opentelemetry.io/otel/bridge/opentracing` bridge package has been made into its own module.
|
||||||
This removes the package dependencies of this bridge from the rest of the OpenTelemetry based project. (#1038)
|
This removes the package dependencies of this bridge from the rest of the OpenTelemetry based project. (#1038)
|
||||||
- Renamed `go.opentelemetry.io/otel/api/standard` package to `go.opentelemetry.io/otel/semconv` to avoid the ambiguous and generic name `standard` and better describe the package as containing OpenTelemetry semantic conventions. (#1016)
|
- Renamed `go.opentelemetry.io/otel/api/standard` package to `go.opentelemetry.io/otel/semconv` to avoid the ambiguous and generic name `standard` and better describe the package as containing OpenTelemetry semantic conventions. (#1016)
|
||||||
|
- The environment variable used for resource detection has been changed from `OTEL_RESOURCE_LABELS` to `OTEL_RESOURCE_ATTRIBUTES` (#1042)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
// the Detect function to generate a Resource from the merged information.
|
// the Detect function to generate a Resource from the merged information.
|
||||||
//
|
//
|
||||||
// To load a user defined Resource from the environment variable
|
// To load a user defined Resource from the environment variable
|
||||||
// OTEL_RESOURCE_LABELS the FromEnv Detector can be used. It will interpret
|
// OTEL_RESOURCE_ATTRIBUTES the FromEnv Detector can be used. It will interpret
|
||||||
// the value as a list of comma delimited key/value pairs
|
// the value as a list of comma delimited key/value pairs
|
||||||
// (e.g. `<key1>=<value1>,<key2>=<value2>,...`).
|
// (e.g. `<key1>=<value1>,<key2>=<value2>,...`).
|
||||||
package resource
|
package resource
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// envVar is the environment variable name OpenTelemetry Resource information can be assigned to.
|
// envVar is the environment variable name OpenTelemetry Resource information can be assigned to.
|
||||||
const envVar = "OTEL_RESOURCE_LABELS"
|
const envVar = "OTEL_RESOURCE_ATTRIBUTES"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
//errMissingValue is returned when a resource value is missing.
|
//errMissingValue is returned when a resource value is missing.
|
||||||
|
Reference in New Issue
Block a user