dd-trace-js icon indicating copy to clipboard operation
dd-trace-js copied to clipboard

websocket support

Open RichardWright opened this issue 2 years ago • 4 comments

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.

RichardWright avatar Feb 21 '23 10:02 RichardWright

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

kdawgwilk avatar Apr 12 '23 05:04 kdawgwilk

Which websocket package(s)?

tlhunter avatar Dec 18 '23 22:12 tlhunter

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)

p-desaintchamas avatar Jul 11 '24 16:07 p-desaintchamas

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.

mysterycommand avatar Jul 24 '24 12:07 mysterycommand

@tlhunter Hi! Any idea where this request is on your backlog?

richardwf1arcade avatar Jan 21 '25 15:01 richardwf1arcade

Websocket support is currently being worked on

tlhunter avatar Feb 18 '25 22:02 tlhunter