1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/api
Rahul Patel 547d584da8
Add global propagators (#494)
* Add global propagators

The default global propagators are set to the chained W3C trace and
correlation context propagators.

* Use global propagators in plugins

The httptrace and grpcplugins should also get some API for setting a
propagator to use (the othttp plugin already has such an API), but
that can come in some other PR.

* Decrease indentation in trace propagators

* Drop obsolete TODOs

Now we do "something" with correlation context - it ends up in the
context, and we put the context into the request, so the chained HTTP
handler can access it too.

The other TODO was about tag.Upsert which is long gone.

* Do not unnecessarily update the request context

The request context already contains the span (and we add some
attribute there), so inserting it into context again is pointless.

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-03-05 10:12:10 -08:00
..
core Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
correlation Missing PR fixes (#503) 2020-03-02 14:50:53 -08:00
global Add global propagators (#494) 2020-03-05 10:12:10 -08:00
key Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00
metric Missing PR fixes (#503) 2020-03-02 14:50:53 -08:00
propagation Refactor propagators (#467) 2020-02-13 23:16:04 -08:00
testharness Replace span relationship with a potentially remote parent context (#451) 2020-02-04 08:55:03 -08:00
trace Add global propagators (#494) 2020-03-05 10:12:10 -08:00
unit Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00