Skip to content

Commit 9914924

Browse files
authored
ref(bun): Adjust mechanism of errors captured in Bun.serve (#17616)
uses the same mechanism type as the span active when captureException is called closes #17615
1 parent d67b60d commit 9914924

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/bun/src/integrations/bunserver.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,8 @@ function wrapRequestHandler<T extends RouteHandler = RouteHandler>(
246246
} catch (e) {
247247
captureException(e, {
248248
mechanism: {
249-
type: 'bun',
249+
type: 'auto.http.bun.serve',
250250
handled: false,
251-
data: {
252-
function: 'serve',
253-
},
254251
},
255252
});
256253
throw e;

0 commit comments

Comments
 (0)