Skip to content

ref(core): Improve event mechanism for supabase integration #17286

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Aug 1, 2025

ref: #17250
ref: #17212

@Lms24 Lms24 self-assigned this Aug 1, 2025
@Lms24 Lms24 requested review from onurtemizkan and s1gr1d August 1, 2025 14:17
@@ -448,6 +454,7 @@ function instrumentPostgRESTFilterBuilder(PostgRESTFilterBuilder: PostgRESTFilte
return res;
},
(err: Error) => {
// TODO: shouldn't we capture this error?
Copy link
Member Author

Choose a reason for hiding this comment

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

@onurtemizkan not sure if this is me missing something or if we should call captureException here. Can you take a look?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, looks like this comes from the original implementation we ported:

https://github.com/supabase-community/sentry-integration-js/blob/9fc7be61d2890f87257c4af528271374c89c4acd/v8.js#L237-L242

I don't see a reason why we should not capture this, though.

@@ -236,6 +236,7 @@ function instrumentAuthOperation(operation: AuthOperationFn, isAdmin = false): A
captureException(res.error, {
mechanism: {
handled: false,
type: 'auto.db.supabase.auth',
Copy link
Member Author

Choose a reason for hiding this comment

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

these types are one level more specific than the trace origin on the spans (auto.db.supabase). I think this is fine.

@Lms24 Lms24 mentioned this pull request Aug 1, 2025
4 tasks
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.

2 participants