Skip to content

Commit 8542795

Browse files
committed
Remove unnecessary span.end() calls in generic RPC instrumentation
1 parent a155526 commit 8542795

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/core/src/integrations/supabase.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,8 +1084,6 @@ function instrumentGenericRpc(
10841084
if (res && typeof res === 'object' && 'error' in res && res.error && !('status' in res)) {
10851085
span.setStatus({ code: SPAN_STATUS_ERROR });
10861086
}
1087-
1088-
span.end();
10891087
}
10901088

10911089
const breadcrumb: SupabaseBreadcrumb = {
@@ -1122,7 +1120,6 @@ function instrumentGenericRpc(
11221120

11231121
if (span) {
11241122
setHttpStatus(span, 500);
1125-
span.end();
11261123
}
11271124
throw err;
11281125
},

0 commit comments

Comments
 (0)