-
-
Notifications
You must be signed in to change notification settings - Fork 537
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
Sentry integration broken in latest version 0.240.2 #3623
Comments
mmh, interesting, I'll try to investigate soon |
@jaydensmith this seems to be working for me, can you provide more info? 😊 |
This is broken for us as well:
Versions:
|
@knksmith57 are you able to get a minimal reproduction? 😊 |
I was just able to isolate to an underlying cause but not sure if it covers all cases. We use a mix of sync and async resolvers and I had explicitly set StrawberryIntegration(
async_execution=True,
) I'm not encountering that same exception anymore after removing the arg: StrawberryIntegration() But am also unsure of the consequences of removing the |
Aha, I think this is an ordering issue. # remove the built in strawberry sentry extension, if present
extensions = [
extension
for extension in extensions
if extension
not in (StrawberrySentryAsyncExtension, StrawberrySentrySyncExtension)
]
# add our extension
extensions.append(
SentryAsyncExtension if should_use_async_extension else SentrySyncExtension
)
kwargs["extensions"] = extensions If I understand correctly, we want to prepend the Sentry extension here so that it runs before any other extension, right? edit: or, if we want to be precise, in the case where the legacy extension was removed, insert the new extension at the same index to preserve the user's intended ordering. |
After updating Sentry (2.14.0) and Strawberry to the latest version, I get a fatal error:
System Information
Upvote & Fund
The text was updated successfully, but these errors were encountered: