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

Add additional websocket debug logging #16801

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jakekaplan
Copy link
Contributor

I am trying to identify some potentially odd behavior around how events are sent via websocket. These debug logs will help give us a better understanding of how the websocket client is working, how often it reconnects and what it spends the most time on.

Copy link

codspeed-hq bot commented Jan 21, 2025

CodSpeed Performance Report

Merging #16801 will not alter performance

Comparing add-websocket-debug-logging (da6f3a3) with main (310612b)

Summary

✅ 2 untouched benchmarks

@@ -349,15 +349,21 @@ async def __aexit__(
return await super().__aexit__(exc_type, exc_val, exc_tb)

async def _reconnect(self) -> None:
logger.debug("Reconnecting websocket connection.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any upside to using some reference ID in the logs, e.g., id(self)? Not requesting you make any changes, just tossing it out in case it's useful

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

Successfully merging this pull request may close these issues.

2 participants