@@ -58,7 +58,20 @@ describe('eventToSentryRequest', () => {
58
58
beforeEach ( ( ) => {
59
59
transactionEvent = {
60
60
...eventBase ,
61
- debug_meta : { transactionSampling : { method : TransactionSamplingMethod . Rate , rate : 0.1121 } } ,
61
+ debug_meta : {
62
+ transactionSampling : { method : TransactionSamplingMethod . Rate , rate : 0.1121 } ,
63
+ // This value is hardcoded in its base64 form to avoid a dependency on @sentry /tracing, where the method to
64
+ // compute the value lives. It's equivalent to
65
+ // computeTracestateValue({
66
+ // trace_id: '1231201211212012',
67
+ // environment: 'dogpark',
68
+ // release: 'off.leash.park',
69
+ // public_key: 'dogsarebadatkeepingsecrets',
70
+ // }),
71
+ tracestate :
72
+ 'eyJ0cmFjZV9pZCI6IjEyMzEyMDEyMTEyMTIwMTIiLCJlbnZpcm9ubWVudCI6ImRvZ3BhcmsiLCJyZWxlYXNlIjoib2ZmLmxlYXNo' +
73
+ 'LnBhcmsiLCJwdWJsaWNfa2V5IjoiZG9nc2FyZWJhZGF0a2VlcGluZ3NlY3JldHMifQ' ,
74
+ } ,
62
75
spans : [ ] ,
63
76
transaction : '/dogs/are/great/' ,
64
77
type : 'transaction' ,
@@ -77,7 +90,7 @@ describe('eventToSentryRequest', () => {
77
90
} ) ;
78
91
79
92
describe ( 'envelope header' , ( ) => {
80
- it ( 'adds correct data to envelope header' , ( ) => {
93
+ it ( 'adds correct entries to envelope header' , ( ) => {
81
94
jest . spyOn ( Date . prototype , 'toISOString' ) . mockReturnValueOnce ( '2012-12-31T09:08:13.000Z' ) ;
82
95
83
96
const result = eventToSentryRequest ( transactionEvent , api ) ;
@@ -155,7 +168,7 @@ describe('eventToSentryRequest', () => {
155
168
} ) ;
156
169
157
170
describe ( 'item header' , ( ) => {
158
- it ( 'adds correct data to item header' , ( ) => {
171
+ it ( 'adds correct entries to item header' , ( ) => {
159
172
const result = eventToSentryRequest ( transactionEvent , api ) ;
160
173
const envelope = parseEnvelopeRequest ( result ) ;
161
174
0 commit comments