lightstep / lightstep-tracer-javascript

Lightstep distributed tracing library for Node.js and the browser
https://lightstep.com
MIT License
77 stars 66 forks source link

fix: Baggage items propagation from parent to child #233

Closed dafortune closed 4 years ago

dafortune commented 4 years ago

This PR implements context propagation from parent to child in a similar way as the GoLang library when a new span is created the baggage items get copied from the parent context to the child context.

Also it implements the methods _setBaggageItem and _getBaggageItem on the span, which are meant to be overriden by implementors according to opentracing specification for JS.

andrewhsu commented 4 years ago

@mwear @obecny when you guys get a chance, can you review this?

dafortune commented 4 years ago

Thanks!!