1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00
opentelemetry-go/api
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
..
core Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
correlation Allow dropping items from correlations + docs + cleanups (#454) 2020-02-03 13:07:53 -08:00
global Improve detail in stdout exporter (#436) 2020-01-24 05:51:58 -08:00
key Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00
metric Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
propagation Reorganize propagation code (shrink PR 381) (#444) 2020-01-28 10:13:46 -08:00
testharness Rename CurrentSpan to SpanFromContext & SetCurrentSpan to ContextWithSpan (#379) 2019-12-11 08:51:32 -08:00
trace make trace.TraceContext as default context propagator (#456) 2020-02-03 09:28:39 -08:00
unit Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00