We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9291bd3 commit dd34b8fCopy full SHA for dd34b8f
packages/node-experimental/src/integrations/http.ts
@@ -170,21 +170,23 @@ export class Http implements Integration {
170
171
addOtelSpanData(span.spanContext().spanId, additionalData);
172
173
- getCurrentHub().addBreadcrumb(
174
- {
175
- category: 'http',
176
- data: {
177
- status_code: response.statusCode,
178
- ...data,
+ if (this._breadcrumbs) {
+ getCurrentHub().addBreadcrumb(
+ {
+ category: 'http',
+ data: {
+ status_code: response.statusCode,
179
+ ...data,
180
+ },
181
+ type: 'http',
182
},
- type: 'http',
- },
183
- event: 'response',
184
- request,
185
- response,
186
187
- );
+ event: 'response',
+ request,
+ response,
188
+ );
189
+ }
190
}
191
192
0 commit comments