Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ref: Remove unused code
  • Loading branch information
HazAT committed Jun 18, 2020
commit e0273adfe991f8e50f742deb3adebb428a40ab64
4 changes: 2 additions & 2 deletions packages/apm/src/span.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Span as SpanInterface, SpanContext, Transaction } from '@sentry/types';
import { dropUndefinedKeys, logger, timestampWithMs, uuid4 } from '@sentry/utils';
import { Span as SpanInterface, SpanContext } from '@sentry/types';
import { dropUndefinedKeys, timestampWithMs, uuid4 } from '@sentry/utils';

import { SpanStatus } from './spanstatus';
import { SpanRecorder } from './transaction';
Expand Down
8 changes: 0 additions & 8 deletions packages/types/src/span.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Transaction } from './transaction';

/** Interface holding all properties that can be set on a Span on creation. */
export interface SpanContext {
/**
Expand Down Expand Up @@ -135,12 +133,6 @@ export interface Span extends SpanContext {
spanContext?: Pick<SpanContext, Exclude<keyof SpanContext, 'spanId' | 'sampled' | 'traceId' | 'parentSpanId'>>,
): Span;

/**
* Callback to retrieve the root Span (Transaction) in case there is one.
* @param callback Will only be invoked in case there is an active transaction
*/
getTransaction(callback: (transaction: Transaction) => void): void;

/**
* Determines whether span was successful (HTTP200)
*/
Expand Down