1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-04-23 11:58:56 +02:00

Update resource.go (#1871)

* Update resource.go

* Update CHANGELOG.md

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
Tony Li 2021-05-03 09:50:36 -07:00 committed by GitHub
parent f40cad5ee2
commit a1349944c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Move the `Event` type from the `go.opentelemetry.io/otel` package to the `go.opentelemetry.io/otel/sdk/trace` package. (#1846) - Move the `Event` type from the `go.opentelemetry.io/otel` package to the `go.opentelemetry.io/otel/sdk/trace` package. (#1846)
- BatchSpanProcessor now report export failures when calling `ForceFlush()` method. (#1860) - BatchSpanProcessor now report export failures when calling `ForceFlush()` method. (#1860)
- `Set.Encoded(Encoder)` no longer caches the result of an encoding. (#1855) - `Set.Encoded(Encoder)` no longer caches the result of an encoding. (#1855)
- Renamed `CloudZoneKey` to `CloudAvailabilityZoneKey` in Resource semantic conventions according to spec. (#1871)
### Deprecated ### Deprecated

View File

@ -239,8 +239,8 @@ const (
// Geographical region where this resource is. // Geographical region where this resource is.
CloudRegionKey = attribute.Key("cloud.region") CloudRegionKey = attribute.Key("cloud.region")
// Zone of the region where this resource is. // Availability zone of the region where this resource is.
CloudZoneKey = attribute.Key("cloud.zone") CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
) )
// Semantic conventions for common cloud provider resource attributes. // Semantic conventions for common cloud provider resource attributes.