From dda00102a976a9068a3e5bdbebf2b67b6dc6947b Mon Sep 17 00:00:00 2001 From: ronisec Date: Tue, 24 Aug 2021 11:51:13 +0300 Subject: [PATCH 1/2] Fix typos in resource.go. --- sdk/resource/resource.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/resource/resource.go b/sdk/resource/resource.go index 0d442f91716..6dd8796e729 100644 --- a/sdk/resource/resource.go +++ b/sdk/resource/resource.go @@ -135,7 +135,7 @@ func (r *Resource) SchemaURL() string { return r.schemaURL } -// Iter returns an interator of the Resource attributes. +// Iter returns an iterator of the Resource attributes. // This is ideal to use if you do not want a copy of the attributes. func (r *Resource) Iter() attribute.Iterator { if r == nil { @@ -206,7 +206,7 @@ func Empty() *Resource { } // Default returns an instance of Resource with a default -// "service.name" and OpenTelemetrySDK attributes +// "service.name" and OpenTelemetrySDK attributes. func Default() *Resource { return defaultResource } @@ -223,13 +223,13 @@ func Environment() *Resource { } // Equivalent returns an object that can be compared for equality -// between two resources. This value is suitable for use as a key in +// between two resources. This value is suitable for use as a key in // a map. func (r *Resource) Equivalent() attribute.Distinct { return r.Set().Equivalent() } -// Set returns the equivalent *attribute.Set of this resources attributes. +// Set returns the equivalent *attribute.Set of this resource's attributes. func (r *Resource) Set() *attribute.Set { if r == nil { r = Empty() From 30ec0ec6eff6c35d1ea517aa56f1bdd5cc6fe8e0 Mon Sep 17 00:00:00 2001 From: ronilichtman Date: Tue, 24 Aug 2021 13:32:26 +0300 Subject: [PATCH 2/2] Add a line to CHANGELOG.md with an identifier for the relevant PR. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05be353a44a..193d5a7d728 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - The `"go.opentelemetry.io/otel/attribute".Any` function now supports `int32` values. (#2169) - Multiple calls to `"go.opentelemetry.io/otel/sdk/metric/controller/basic".WithResource()` are handled correctly, and when no resources are provided `"go.opentelemetry.io/otel/sdk/resource".Default()` is used. (#2120) - The `WithoutTimestamps` option for the `go.opentelemetry.io/otel/exporters/stdout/stdouttrace` exporter causes the exporter to correctly ommit timestamps. (#2195) +- Fixed typos in `resource.go`. (#2200) ### Security