Tracing a single websocket message #236
-
Hi there, I want to assign a unique identifier to each websocket message received by anycable-go from the browser and have anycable-go forward that unique identifier to the Anycable gRPC server. I read https://github.com/anycable/anycable-go/blob/master/docs/tracing.md and see anycable-go either assigns a random unique I believe having a unique identifier for each websocket message will make it easier for me to trace requests that originate as websocket messages and flow from Anycable to the rest of my application's systems. Is this possible now? If not, will you implement such a feature or accept a pull request? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey!
Correct.
Currently, it's not possible. The primary reason is the the underlying protocol we use, Action Cable, has no such capabilities. We can extend it though (like we already did for some features). The way I see it as follows:
If there is no need in the client-originated trace ID, you can attach IDs at the RPC level (e.g., via an AnyCable middleware) to distinguish commands at the application level. |
Beta Was this translation helpful? Give feedback.
Hey!
Correct.
Currently, it's not possible. The primary reason is the the underlying protocol we use, Action Cable, has no such capabilities. We can extend it though (like we already did for some features).
The way I see it as foll…