From c9c81379541b7bec5f4ce6e3b31f8f6865dae07e Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Jul 2020 21:09:19 -0700 Subject: [PATCH] Remove IndexedAttribute from api/label (#970) * Remove IndexedAttribute from api/label IndexedAttribute is a synonym for IndexedLabel and a hold over from when this iterator pattern had multiple implementations. Given it no longer is uses, remove it to avoid introducing confusion to users. * Update Changelog * Update Changelog PR number --- CHANGELOG.md | 2 ++ api/label/iterator.go | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac70e572c..fbc906ab4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Removed dependency on `github.com/open-telemetry/opentelemetry-collector`. (#943) - Removed `go.opentelemetry.io/otel/api/kv/value` by flattening all value functionality and structures into the `go.opentelemetry.io/otel/api/kv` package. (#968) +- Remove `IndexedAttribute` from `go.opentelemetry.io/otel/api/label`. + Use `IndexedLabel` which is synonymous instead. (#970) ## [0.8.0] - 2020-07-09 diff --git a/api/label/iterator.go b/api/label/iterator.go index f4870f5dd..d2ab56185 100644 --- a/api/label/iterator.go +++ b/api/label/iterator.go @@ -65,11 +65,6 @@ func (i *Iterator) IndexedLabel() (int, kv.KeyValue) { return i.idx, i.Label() } -// IndexedAttribute is a synonym for IndexedLabel(). -func (i *Iterator) IndexedAttribute() (int, kv.KeyValue) { - return i.IndexedLabel() -} - // Len returns a number of labels in the iterator's `*Set`. func (i *Iterator) Len() int { return i.storage.Len()