lightstep / lightstep-tracer-go

The Lightstep distributed tracing library for Go
https://lightstep.com
MIT License
98 stars 54 forks source link

Adding B3 header support #227

Closed codeboten closed 4 years ago

codeboten commented 4 years ago

This change provides the ability to configure B3 headers propagation via a Propagator option parameter when creating a new Tracer:

lightstepTracer := lightstep.NewTracer(lightstep.Options{
  AccessToken: "YourAccessToken",
  Propagator: "b3",
})

The default configuration uses LightStep headers as before. As part of this change, adding a Propagator interface to support future formats, currently implemented by lightstepPropagator and b3Propagator.

chadbrad commented 4 years ago

wo0t!

codeboten commented 4 years ago

Correct. This is only adding support for b3 header propagation. Implementing a PropagatorStack as in the Java implementation will be done separately.