Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context and Tracing #56

Open
joates-mobilus opened this issue Oct 23, 2023 · 0 comments
Open

Context and Tracing #56

joates-mobilus opened this issue Oct 23, 2023 · 0 comments

Comments

@joates-mobilus
Copy link

As part of Tracing would it be possible to connect all the message calls on a socket to a single context object?
I've been trying to do it myself but I'm really struggling with the context object, it doesn't really behave how I would expect it to.
I also use custom events which are only passed the message data and not a context object.

Essentially what I'm hopping for is a long running trace from which all subsequent calls are logged against and ended when the socket itself disconnects.

At the moment what I'm trying is to co-opting the authentication method and use it to create a new context object. Which I then attach to the socket for subsequent messages to use when making sub calls rather than directly via the broker attached to the Socket IO service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant