@@ -4,7 +4,9 @@ import { vi } from 'vitest';
4
4
import { getTracingMetaTags , isValidBaggageString } from '../../src/server/meta' ;
5
5
6
6
const mockedSpan = {
7
- toTraceparent : ( ) => '12345678901234567890123456789012-1234567890123456-1' ,
7
+ sampled : true ,
8
+ traceId : '12345678901234567890123456789012' ,
9
+ spanId : '1234567890123456' ,
8
10
transaction : {
9
11
getDynamicSamplingContext : ( ) => ( {
10
12
environment : 'production' ,
@@ -68,7 +70,9 @@ describe('getTracingMetaTags', () => {
68
70
const tags = getTracingMetaTags (
69
71
// @ts -expect-error - only passing a partial span object
70
72
{
71
- toTraceparent : ( ) => '12345678901234567890123456789012-1234567890123456-1' ,
73
+ sampled : true ,
74
+ traceId : '12345678901234567890123456789012' ,
75
+ spanId : '1234567890123456' ,
72
76
transaction : undefined ,
73
77
} ,
74
78
mockedScope ,
@@ -89,7 +93,9 @@ describe('getTracingMetaTags', () => {
89
93
const tags = getTracingMetaTags (
90
94
// @ts -expect-error - only passing a partial span object
91
95
{
92
- toTraceparent : ( ) => '12345678901234567890123456789012-1234567890123456-1' ,
96
+ sampled : true ,
97
+ traceId : '12345678901234567890123456789012' ,
98
+ spanId : '1234567890123456' ,
93
99
transaction : undefined ,
94
100
} ,
95
101
mockedScope ,
0 commit comments