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:
parent
3b01a854d1
commit
c9c8137954
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user