|
1 | 1 | import { context, trace, TraceFlags } from '@opentelemetry/api';
|
2 | 2 | import type { SpanProcessor } from '@opentelemetry/sdk-trace-base';
|
3 | 3 | import type { TransactionEvent } from '@sentry/core';
|
4 |
| -import { logger, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core'; |
| 4 | +import { debug, logger, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core'; |
5 | 5 | import { SentrySpanProcessor } from '@sentry/opentelemetry';
|
6 | 6 | import { afterEach, describe, expect, it, vi } from 'vitest';
|
7 | 7 | import * as Sentry from '../../src';
|
@@ -558,7 +558,9 @@ describe('Integration | Transactions', () => {
|
558 | 558 | vi.setSystemTime(now);
|
559 | 559 |
|
560 | 560 | const logs: unknown[] = [];
|
| 561 | + // TODO: Remove this once node is using debug instead of logger |
561 | 562 | vi.spyOn(logger, 'log').mockImplementation(msg => logs.push(msg));
|
| 563 | + vi.spyOn(debug, 'log').mockImplementation(msg => logs.push(msg)); |
562 | 564 |
|
563 | 565 | mockSdkInit({ tracesSampleRate: 1, beforeSendTransaction });
|
564 | 566 |
|
@@ -636,7 +638,9 @@ describe('Integration | Transactions', () => {
|
636 | 638 | vi.setSystemTime(now);
|
637 | 639 |
|
638 | 640 | const logs: unknown[] = [];
|
| 641 | + // TODO: Remove this once node is using debug instead of logger |
639 | 642 | vi.spyOn(logger, 'log').mockImplementation(msg => logs.push(msg));
|
| 643 | + vi.spyOn(debug, 'log').mockImplementation(msg => logs.push(msg)); |
640 | 644 |
|
641 | 645 | mockSdkInit({
|
642 | 646 | tracesSampleRate: 1,
|
|
0 commit comments