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

Make and use getters on SpanContext #231

Open conartist6 opened 4 years ago

conartist6 commented 4 years ago

This would allow properties of spanContext to be read without accessing private variables. Alternatively, the private variables could simply be made public, though this seems less safe. Also because the "private" variables have thus far been used in a public way, changing them would be a breaking change, where adding new public getters would not be.