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
lifespan protocol not implemented? #505
Comments
hmm cc @tomchristie. The middleware in this SDK is a fork of encode/sentry-asgi, with the intent to deprecate sentry-asgi (afaik @tomchristie agreed to this plan). But it seems that both are now maintained? I would like to keep the one inside the SDK, because I can then build integrations for Channels and other web frameworks on top. |
This seems like a recent regression, and I'll fix that in 0.12.2, sorry about that |
0.12.2 has been released yesterday with the crash fixed |
@untitaker yeah, I just found that. Thanks for your work. |
Correct - I'd like to move |
Thanks! Just wanted to make sure |
@tomchristie is the lifespan thing something you think we could instrument in Sentry somehow? |
@untitaker I'm not quite sure what that means. Certainly you could have "shutup" and "shutdown" event types, if that's a thing? And yes, you could tag any errors that occur during ASGI startup/shutdown messaging against one of those two contexts. There's also the period in the lifespan context between startup/shutdown, which app frameworks might start using for lightweight clock events, without having to reach for tools like celery, which again, yeah, could be properly tagged - though I'd need to take a more in depth look at sentry's interface as it currently stands. |
Nevermind my question, I looked into lifespans and now I believe my
question doesn't make sense.
…On Fri, Sep 27, 2019, 14:42 Tom Christie ***@***.***> wrote:
@untitaker <https://github.com/untitaker> I'm not quite sure what that
means.
Certainly you could have "shutup" and "shutdown" event types, if that's a
thing?
And yes, you could tag any errors that occur during ASGI startup/shutdown
messaging against one of those two contexts.
There's also the period in the lifespan context between startup/shutdown,
which app frameworks might start using for lightweight clock events,
without having to reach for tools like celery, which again, yeah, could be
properly tagged - though I'd need to take a more in depth look at sentry's
interface as it currently stands.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#505?email_source=notifications&email_token=AAGMPRO3AMS2BBQMMRKQJFLQLX5R3A5CNFSM4IYXKOBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7YYQRY#issuecomment-535922759>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGMPRP3R3WVSYWHHZEGV7TQLX5R3ANCNFSM4IYXKOBA>
.
|
Offical spec https://asgi.readthedocs.io/en/latest/specs/lifespan.html
I'm using uvicorn and fastapi. I originally using encode/sentry-asgi and these days I found that there is a AsgiMiddleware in sentry-sdk. So i try to start using
sentry_sdk.integrations.asgi.SentryAsgiMiddleware
But I gotINFO: ASGI 'lifespan' protocol appears unsupported.
I got this error in asyncio debug mode:
It's not a http event so there is no
headers
key in scopeenv:
The text was updated successfully, but these errors were encountered: