DataDog / dd-trace-js

JavaScript APM Tracer
https://docs.datadoghq.com/tracing/
Other
636 stars 298 forks source link

websocket support #2827

Open RichardWright opened 1 year ago

RichardWright commented 1 year ago

Hi!

We want to be able to instrument our websocket server automatically, will be this supported anytime soon? We currently use metrics to capture application state but are not happy with the memory/cpu cost this is incurring.

kdawgwilk commented 1 year ago

With the surge in LLMs and streaming from those models this is becoming a crucial needs for many companies

tlhunter commented 8 months ago

Which websocket package(s)?

p-desaintchamas commented 1 month ago

We have a similar issue, using the socket.io package.

Yet, would be perhaps even more useful to set-up a single example on how to do this with custom spans so people can at least make a workaround. We also would rely on NATS for our internal messaging & asynchronous task, and none of the actions it triggers appears to be tracked. (So https://github.com/DataDog/dd-trace-js/issues/2769 would probably also be useful for us)

mysterycommand commented 1 month ago

Which websocket package(s)?

For Node/JS servers https://github.com/socketio/socket.io and https://github.com/websockets/ws seem to be the most popular. I agree that an example of how to do it ones self would be invaluable.