Skip to content

Added default value for auto_session_tracking ...#1337

Merged
antonpirker merged 4 commits into
masterfrom
antonpirker/GH-1334-keyerror-auto-session-tracking
Feb 16, 2022
Merged

Added default value for auto_session_tracking ...#1337
antonpirker merged 4 commits into
masterfrom
antonpirker/GH-1334-keyerror-auto-session-tracking

Conversation

@antonpirker

Copy link
Copy Markdown
Contributor

… to make it work in fastapi

refs #1334

@tvandehouten

Copy link
Copy Markdown

Was hitting this using DjangoIntegration as well. Don't think it's the root of the issue I'm running into, but this fix is helpful.

@antonpirker
antonpirker merged commit deade2d into master Feb 16, 2022
@antonpirker
antonpirker deleted the antonpirker/GH-1334-keyerror-auto-session-tracking branch February 16, 2022 15:08
@tvandehouten

Copy link
Copy Markdown

Following up here. Is there a plan to get this change backported or released in the near future?

Comment thread sentry_sdk/sessions.py

def is_auto_session_tracking_enabled(hub=None):
# type: (Optional[sentry_sdk.Hub]) -> bool
# type: (Optional[sentry_sdk.Hub]) -> Union[Any, bool, None]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you sure this shouldn't have stayed bool?

perhaps a return bool(should_track) can avoid mypy errors

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.

4 participants