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 an option to enable keepalive #2837

Closed
sentrivana opened this issue Mar 18, 2024 · 0 comments · Fixed by #2842
Closed

Add an option to enable keepalive #2837

sentrivana opened this issue Mar 18, 2024 · 0 comments · Fixed by #2842
Assignees
Labels
enhancement New feature or request

Comments

@sentrivana
Copy link
Contributor

Problem Statement

In case folks are experiencing network issues between the SDK and Sentry, we in general recommend tweaking socket_options directly with a predefined set of settings. This seems to alleviate the issue most of the time, but feels rather low-level and hacky.

Solution Brainstorm

Node has a separate keepAlive transport option. We could do something similar for the Python SDK; maybe a top-level enable_keepalive (or enable_keep_alive?) option that sets the socket option to what we usually recommend, while keeping the socket_options around as well for users who need more control over things.

Make sure to also call this new option out in the docs (especially in the Crons part since crons seem to be often affected).

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

Successfully merging a pull request may close this issue.

1 participant