File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ export function fetchCallback(
160
160
shouldAttachHeaders : ( url : string ) => boolean ,
161
161
spans : Record < string , Span > ,
162
162
) : void {
163
+ console . log ( 2 ) ;
163
164
if ( ! hasTracingEnabled ( ) || ! ( handlerData . fetchData && shouldCreateSpan ( handlerData . fetchData . url ) ) ) {
164
165
return ;
165
166
}
@@ -294,6 +295,7 @@ export function xhrCallback(
294
295
shouldAttachHeaders : ( url : string ) => boolean ,
295
296
spans : Record < string , Span > ,
296
297
) : void {
298
+ console . log ( 1 ) ;
297
299
if (
298
300
! hasTracingEnabled ( ) ||
299
301
( handlerData . xhr && handlerData . xhr . __sentry_own_request__ ) ||
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type {
12
12
TransactionMetadata ,
13
13
} from '@sentry/types' ;
14
14
import { dropUndefinedKeys , logger } from '@sentry/utils' ;
15
-
15
+ import { Replay } from '@sentry/replay' ;
16
16
import { Span as SpanClass , SpanRecorder } from './span' ;
17
17
18
18
/** JSDoc */
@@ -236,6 +236,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
236
236
* @experimental
237
237
*/
238
238
public getDynamicSamplingContext ( ) : Readonly < Partial < DynamicSamplingContext > > {
239
+ console . log ( 'dsc' ) ;
239
240
if ( this . _frozenDynamicSamplingContext ) {
240
241
return this . _frozenDynamicSamplingContext ;
241
242
}
@@ -256,6 +257,12 @@ export class Transaction extends SpanClass implements TransactionInterface {
256
257
257
258
const source = this . metadata . source ;
258
259
260
+ const replay = client . getIntegration ( Replay ) ;
261
+
262
+ console . log ( replay ) ;
263
+ // @ts -ignore
264
+ const replayId = replay ?. _replay . session . id ;
265
+
259
266
// We don't want to have a transaction name in the DSC if the source is "url" because URLs might contain PII
260
267
const transaction = source && source !== 'url' ? this . name : undefined ;
261
268
@@ -267,6 +274,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
267
274
public_key,
268
275
trace_id : this . traceId ,
269
276
sample_rate,
277
+ replayId,
270
278
} ) ;
271
279
272
280
// Uncomment if we want to make DSC immutable
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function instrument(type: InstrumentHandlerType): void {
48
48
49
49
switch ( type ) {
50
50
case 'console' :
51
- instrumentConsole ( ) ;
51
+ // instrumentConsole();
52
52
break ;
53
53
case 'dom' :
54
54
instrumentDOM ( ) ;
You can’t perform that action at this time.
0 commit comments