-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(core): Add Supabase Queues support #15921
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
base: develop
Are you sure you want to change the base?
Conversation
size-limit report 📦
|
bbadd60
to
e7b3370
Compare
1bc2897
to
d387514
Compare
e7b3370
to
56a2d84
Compare
56a2d84
to
13d60e0
Compare
423397d
to
556703c
Compare
13d60e0
to
74869e4
Compare
e63915a
to
719c8b6
Compare
}, | ||
}, | ||
async span => { | ||
return (Reflect.apply(target, thisArg, argumentsList) as Promise<unknown>).then((res: unknown) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably also end the span when it throws/rejects? We can also set the status of the span then.
name: 'supabase.db.rpc', | ||
attributes: { | ||
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.db.supabase', | ||
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: op, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can add the messaging.system
attribute to be 'supabase'
as described in https://develop.sentry.dev/sdk/telemetry/traces/modules/queues/
const isProducerSpan = argumentsList[0] === 'enqueue'; | ||
const isConsumerSpan = argumentsList[0] === 'dequeue'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if this recently changed, but here they show send
and pop
as rpc args: https://supabase.com/docs/guides/queues/quickstart#enqueueing-and-dequeueing-messages 🤔
Resolves: #14611
Can't E2E test this at the moment, because the local Supabase instance needs to be configured after each reset via UI.