diff --git a/CHANGELOG.md b/CHANGELOG.md index e83ff2ab771..3ec7fa4527a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - `EventOption` and the related `NewEventConfig` function are added to the `go.opentelemetry.io/otel` package to configure Span events. (#1254) - A `TextMapPropagator` and associated `TextMapCarrier` are added to the `go.opentelemetry.io/otel/oteltest` package to test TextMap type propagators and their use. (#1259) - `SpanContextFromContext` returns `SpanContext` from context. (#1255) +- `DeploymentEnvironmentKey` added to `go.opentelemetry.io/otel/semconv` package. (#1323) - Add an opencensus to opentelemetry tracing bridge. (#1305) - Add a parent context argument to `SpanProcessor.OnStart` to follow the specification. (#1333) diff --git a/semconv/resource.go b/semconv/resource.go index 8a1ec6db9a3..59a326d27aa 100644 --- a/semconv/resource.go +++ b/semconv/resource.go @@ -219,3 +219,9 @@ var ( CloudProviderAzure = CloudProviderKey.String("azure") CloudProviderGCP = CloudProviderKey.String("gcp") ) + +// Semantic conventions for deployment attributes. +const ( + // Name of the deployment environment (aka deployment tier); e.g. (staging, production). + DeploymentEnvironmentKey = label.Key("deployment.environment") +)