Skip to content

Tracing a single websocket message #236

Answered by palkan
danielsbird asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!

My understanding is that both the sid and the X-Request-ID HTTP header are not unique per websocket message. Instead, they are unique per websocket connection.

Correct.

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?

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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danielsbird
Comment options

Answer selected by danielsbird
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants