1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00
opentelemetry-go/api/correlation
Krzesimir Nowak 574463c9ef
Allow dropping items from correlations + docs + cleanups (#454)
* Drop entry from correlation map

Entry used to contain stuff like TTL, but right now the notion of
entry was dropped from the spec.

* Compute exact size of the correlations map

The map will be immutable, so spend some more time to ensure that we
will not unnecessarily waste some memory on a basically read-only map.

* Allow dropping keys from correlations map

This is to follow the spec. Before this change it was possible in an
awkward way by using Foreach to gather and filter the key-value pairs,
and then calling NewMap with a MultiKV MapUpdate.

* Document the correlation package

* Add missing license blurbs in correlation package

* Add tests for deleting items in correlations

* Factor out getting map size and test it

This is an implementation detail that can't be tested in a black-box
manner.

* Fix copyright dates

* Simplify/disambiguate keySet function parameters/return values

* Fix typo in Apply docs

* Fix test names

* Explain the nonsense of dropping keys from new map
2020-02-03 13:07:53 -08:00
..
context.go Allow dropping items from correlations + docs + cleanups (#454) 2020-02-03 13:07:53 -08:00
doc.go Allow dropping items from correlations + docs + cleanups (#454) 2020-02-03 13:07:53 -08:00
map_test.go Allow dropping items from correlations + docs + cleanups (#454) 2020-02-03 13:07:53 -08:00
map.go Allow dropping items from correlations + docs + cleanups (#454) 2020-02-03 13:07:53 -08:00