Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = async ({ url: urlBase, argv }) => {
spans: [
{
description: 'GET http://example.com/',
op: 'request',
op: 'http.client',
status: 'ok',
tags: { 'http.status_code': '200' },
},
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/integrations/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function _createWrappedRequestMethodFactory(
if (parentSpan) {
span = parentSpan.startChild({
description: `${requestOptions.method || 'GET'} ${requestUrl}`,
op: 'request',
op: 'http.client',
});

const sentryTraceHeader = span.toTraceparent();
Expand Down
2 changes: 1 addition & 1 deletion packages/node/test/integrations/http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('tracing', () => {

// our span is at index 1 because the transaction itself is at index 0
expect(spans[1].description).toEqual('GET http://dogs.are.great/');
expect(spans[1].op).toEqual('request');
expect(spans[1].op).toEqual('http.client');
});

it("doesn't create a span for outgoing sentry requests", () => {
Expand Down