Skip to content

Commit

Permalink
fix tests & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Dec 20, 2024
1 parent c74c349 commit 0b5edbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { RequestEventData, getActiveSpan } from '@sentry/core';
import type { RequestEventData } from '@sentry/core';
import { getActiveSpan } from '@sentry/core';
import {
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
SPAN_STATUS_ERROR,
Expand Down
22 changes: 3 additions & 19 deletions packages/opentelemetry/test/trace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1576,11 +1576,8 @@ describe('continueTrace', () => {
);

expect(scope.getPropagationContext()).toEqual({
dsc: {}, // DSC should be an empty object (frozen), because there was an incoming trace
sampled: false,
parentSpanId: '1121201211212012',
spanId: expect.any(String),
traceId: '12312012123120121231201212312012',
traceId: expect.any(String),
});

expect(scope.getScopeData().sdkProcessingMetadata).toEqual({});
Expand Down Expand Up @@ -1609,14 +1606,8 @@ describe('continueTrace', () => {
);

expect(scope.getPropagationContext()).toEqual({
dsc: {
environment: 'production',
version: '1.0',
},
sampled: true,
parentSpanId: '1121201211212012',
spanId: expect.any(String),
traceId: '12312012123120121231201212312012',
traceId: expect.any(String),
});

expect(scope.getScopeData().sdkProcessingMetadata).toEqual({});
Expand Down Expand Up @@ -1645,16 +1636,9 @@ describe('continueTrace', () => {
);

expect(scope.getPropagationContext()).toEqual({
dsc: {
environment: 'production',
version: '1.0',
},
sampled: true,
parentSpanId: '1121201211212012',
spanId: expect.any(String),
traceId: '12312012123120121231201212312012',
traceId: expect.any(String),
});

expect(scope.getScopeData().sdkProcessingMetadata).toEqual({});
});

Expand Down

0 comments on commit 0b5edbd

Please sign in to comment.