Skip to content

Commit a47d391

Browse files
committed
reword slightly
1 parent 99786e9 commit a47d391

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/core/src/utils/should-ignore-span.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { debug } from './debug-logger';
55
import { isMatchingPattern } from './string';
66

77
function logIgnoredSpan(droppedSpan: Pick<SpanJSON, 'description' | 'op'>): void {
8-
debug.log(`Ignoring span ${droppedSpan.op} - ${droppedSpan.description}`);
8+
debug.log(`Ignoring span ${droppedSpan.op} - ${droppedSpan.description} because it matches \`ignoreSpans\`.`);
99
}
1010

1111
/**

packages/core/test/lib/utils/should-ignore-span.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ describe('shouldIgnoreSpan', () => {
9494
const span = { description: 'testDescription', op: 'testOp' };
9595
const ignoreSpans = [/test/];
9696
expect(shouldIgnoreSpan(span, ignoreSpans)).toBe(true);
97-
expect(debugLogSpy).toHaveBeenCalledWith('Ignoring span testOp - testDescription');
97+
expect(debugLogSpy).toHaveBeenCalledWith(
98+
'Ignoring span testOp - testDescription because it matches `ignoreSpans`.',
99+
);
98100
});
99101
});
100102

0 commit comments

Comments
 (0)