1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-12 02:28:07 +02:00

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
This commit is contained in:
Tyler Yahn 2020-07-24 21:09:19 -07:00 committed by GitHub
parent 3b01a854d1
commit c9c8137954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -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 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) - 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 ## [0.8.0] - 2020-07-09

View File

@ -65,11 +65,6 @@ func (i *Iterator) IndexedLabel() (int, kv.KeyValue) {
return i.idx, i.Label() 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`. // Len returns a number of labels in the iterator's `*Set`.
func (i *Iterator) Len() int { func (i *Iterator) Len() int {
return i.storage.Len() return i.storage.Len()