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

Browser friendly lightweight distribution #239

Closed peter-leonov closed 4 years ago

peter-leonov commented 4 years ago

Hello and thank you for a great product!

We use LightStep heavily on the server side of things in our node apps and would like to also enable tracing on the browser side to have the full stack covered. Is there an effort planned for making the browser builds lightweight, lazy loadable and friendly to the modern packaging tools to enable tree shaking?

andrewhsu commented 4 years ago

Thanks for your comment. Is your question suggesting a change to what we already have in our https://github.com/lightstep/lightstep-tracer-javascript/tree/master/dist folder?

Doesn't directly answer your question: but I'd like to just point out some interesting work that's going on in OpenTelemetry project related to javascript tracing https://github.com/open-telemetry/opentelemetry-js

Feel free to jump on over there and have a look and bring your ideas to that community because Lightstep is also participating in that community to build cool new features!

peter-leonov commented 4 years ago

Hi Andrew,

Thanks for a very quick response!

Thanks for your comment. Is your question suggesting a change to what we already have in our https://github.com/lightstep/lightstep-tracer-javascript/tree/master/dist folder?

Yes. The minimised bundle is 461 KB which is the reason for this issue :)

Doesn't directly answer your question: but I'd like to just point out some interesting work that's going on in OpenTelemetry project related to javascript tracing https://github.com/open-telemetry/opentelemetry-js

We are looking for a stable LightStep compatible tracer which is ready to be shipped to a busy website asap.

andrewhsu commented 4 years ago

@peter-leonov no active plans to reduce the bundle size beyond what it is already with the strategies you have proposed initially in the description, but since this is open source you have possibilities available to you to create your own bundle (but not even sure if it can be minimized smaller).