Skip to content

Commit e0273ad

Browse files
committed
ref: Remove unused code
1 parent 5ee0fe3 commit e0273ad

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

packages/apm/src/span.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Span as SpanInterface, SpanContext, Transaction } from '@sentry/types';
2-
import { dropUndefinedKeys, logger, timestampWithMs, uuid4 } from '@sentry/utils';
1+
import { Span as SpanInterface, SpanContext } from '@sentry/types';
2+
import { dropUndefinedKeys, timestampWithMs, uuid4 } from '@sentry/utils';
33

44
import { SpanStatus } from './spanstatus';
55
import { SpanRecorder } from './transaction';

packages/types/src/span.ts

-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Transaction } from './transaction';
2-
31
/** Interface holding all properties that can be set on a Span on creation. */
42
export interface SpanContext {
53
/**
@@ -135,12 +133,6 @@ export interface Span extends SpanContext {
135133
spanContext?: Pick<SpanContext, Exclude<keyof SpanContext, 'spanId' | 'sampled' | 'traceId' | 'parentSpanId'>>,
136134
): Span;
137135

138-
/**
139-
* Callback to retrieve the root Span (Transaction) in case there is one.
140-
* @param callback Will only be invoked in case there is an active transaction
141-
*/
142-
getTransaction(callback: (transaction: Transaction) => void): void;
143-
144136
/**
145137
* Determines whether span was successful (HTTP200)
146138
*/

0 commit comments

Comments
 (0)