File tree Expand file tree Collapse file tree 5 files changed +0
-43
lines changed
node-experimental/src/sdk Expand file tree Collapse file tree 5 files changed +0
-43
lines changed Original file line number Diff line number Diff line change @@ -478,14 +478,6 @@ Sentry.init({...});
478
478
return result ;
479
479
}
480
480
481
- /**
482
- * @inheritDoc
483
- * @deprecated Use `spanToTraceHeader()` instead.
484
- */
485
- public traceHeaders ( ) : { [ key : string ] : string } {
486
- return this . _callExtensionMethod < { [ key : string ] : string } > ( 'traceHeaders' ) ;
487
- }
488
-
489
481
/**
490
482
* @inheritDoc
491
483
*
Original file line number Diff line number Diff line change @@ -3,26 +3,11 @@ import { logger } from '@sentry/utils';
3
3
import { getMainCarrier } from '../asyncContext' ;
4
4
5
5
import { DEBUG_BUILD } from '../debug-build' ;
6
- import { spanToTraceHeader } from '../utils/spanUtils' ;
7
6
import { registerErrorInstrumentation } from './errors' ;
8
7
import { IdleTransaction } from './idletransaction' ;
9
8
import { sampleTransaction } from './sampling' ;
10
9
import { Transaction } from './transaction' ;
11
10
12
- /** Returns all trace headers that are currently on the top scope. */
13
- function traceHeaders ( this : Hub ) : { [ key : string ] : string } {
14
- // eslint-disable-next-line deprecation/deprecation
15
- const scope = this . getScope ( ) ;
16
- // eslint-disable-next-line deprecation/deprecation
17
- const span = scope . getSpan ( ) ;
18
-
19
- return span
20
- ? {
21
- 'sentry-trace' : spanToTraceHeader ( span ) ,
22
- }
23
- : { } ;
24
- }
25
-
26
11
/**
27
12
* Creates a new transaction and adds a sampling decision if it doesn't yet have one.
28
13
*
@@ -142,9 +127,6 @@ export function addTracingExtensions(): void {
142
127
if ( ! carrier . __SENTRY__ . extensions . startTransaction ) {
143
128
carrier . __SENTRY__ . extensions . startTransaction = _startTransaction ;
144
129
}
145
- if ( ! carrier . __SENTRY__ . extensions . traceHeaders ) {
146
- carrier . __SENTRY__ . extensions . traceHeaders = traceHeaders ;
147
- }
148
130
149
131
registerErrorInstrumentation ( ) ;
150
132
}
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import {
26
26
withScope ,
27
27
} from '@sentry/core' ;
28
28
import { getClient } from './api' ;
29
- import { callExtensionMethod } from './globals' ;
30
29
31
30
/**
32
31
* This is for legacy reasons, and returns a proxy object instead of a hub to be used.
@@ -77,10 +76,6 @@ export function getCurrentHub(): Hub {
77
76
return getClient ( ) . getIntegration ( integration ) ;
78
77
} ,
79
78
80
- traceHeaders ( ) : { [ key : string ] : string } {
81
- return callExtensionMethod < { [ key : string ] : string } > ( this , 'traceHeaders' ) ;
82
- } ,
83
-
84
79
startTransaction (
85
80
_context : TransactionContext ,
86
81
_customSamplingContext ?: CustomSamplingContext ,
Original file line number Diff line number Diff line change @@ -76,11 +76,6 @@ export function getCurrentHub(): Hub {
76
76
return getClient ( ) ?. getIntegration ( integration ) || null ;
77
77
} ,
78
78
79
- traceHeaders ( ) : { [ key : string ] : string } {
80
- // TODO: Do we need this??
81
- return { } ;
82
- } ,
83
-
84
79
startTransaction (
85
80
_context : TransactionContext ,
86
81
_customSamplingContext ?: CustomSamplingContext ,
Original file line number Diff line number Diff line change @@ -204,13 +204,6 @@ export interface Hub {
204
204
*/
205
205
getIntegration < T extends Integration > ( integration : IntegrationClass < T > ) : T | null ;
206
206
207
- /**
208
- * Returns all trace headers that are currently on the top scope.
209
- *
210
- * @deprecated Use `spanToTraceHeader()` instead.
211
- */
212
- traceHeaders ( ) : { [ key : string ] : string } ;
213
-
214
207
/**
215
208
* Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
216
209
*
You can’t perform that action at this time.
0 commit comments