Skip to content

Get data statistics from websocket client #7572

Answered by Dreamsorcerer
willmcgugan asked this question in Q&A
Discussion options

You must be logged in to vote

I don't see an easy option with the current code. It could maybe be possible by using a custom response class, though the actual sending is handled by the writer class (passed into the response class), which is hardcoded:

writer = WebSocketWriter(
. I suppose you could always monkeypatch that object in your custom response class.

I think there has been requests to introduce tracing to websockets, so if you wanted to try and expand the current tracing stuff to websockets, maybe that would be worth looking at (I've not personally done anything with the tracing API before, so not sure how well it matches up).

By the way, your Pyg…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@willmcgugan
Comment options

@Dreamsorcerer
Comment options

Answer selected by willmcgugan
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