Skip to content

Add defensive code around beeline usage in django middleware #126

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

Merged
merged 3 commits into from
Sep 15, 2020

Conversation

MikeGoldsmith
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith commented Sep 15, 2020

Fixes #125

If the beeline has not been initialised (eg during in testing) and the django middleware runs, it raises an error because it's trying to use the beeline.

Middleware should check the beeline has been initialised before trying to use it.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
MikeGoldsmith Mike Goldsmith
@MikeGoldsmith MikeGoldsmith requested a review from a team September 15, 2020 10:17

Verified

This commit was signed with the committer’s verified signature. The key has expired.
MikeGoldsmith Mike Goldsmith

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@MikeGoldsmith MikeGoldsmith merged commit 3349392 into main Sep 15, 2020
@MikeGoldsmith MikeGoldsmith deleted the mike/django-not-init branch September 15, 2020 15:02
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.

How do I turn off honeycomb during the circleci run of my django app?
2 participants