Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bc64de5

Browse files
committed
error without server integration
1 parent 37b3e24 commit bc64de5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎packages/node-core/src/integrations/http/httpServerSpansIntegration.ts‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,21 @@ const _httpServerSpansIntegration = ((options: HttpServerSpansIntegrationOptions
231231
return event;
232232
},
233233
afterAllSetup(client) {
234-
if (DEBUG_BUILD && client.getIntegrationByName('Http')) {
234+
if (!DEBUG_BUILD) {
235+
return;
236+
}
237+
238+
if (client.getIntegrationByName('Http')) {
235239
debug.warn(
236240
'It seems that you have manually added `httpServerSpansIntergation` while `httpIntegration` is also present. Make sure to remove `httpIntegration` when adding `httpServerSpansIntegration`.',
237241
);
238242
}
243+
244+
if (!client.getIntegrationByName('Http.Server')) {
245+
debug.error(
246+
'It seems that you have manually added `httpServerSpansIntergation` without adding `httpServerIntegration`. This is a requiement for spans to be created - please add the `httpServerIntegration` integration.',
247+
);
248+
}
239249
},
240250
};
241251
}) satisfies IntegrationFn;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /