Skip to content

Commit

Permalink
feat(tracing): Remove start method
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Apr 4, 2022
1 parent 1de9354 commit 8ca7f7c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions packages/hub/src/hub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import {
Primitive,
SessionContext,
Severity,
Span,
SpanContext,
Transaction,
TransactionContext,
User,
Expand Down
10 changes: 0 additions & 10 deletions packages/tracing/src/span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,6 @@ export class Span implements SpanInterface {
}
}

/**
* @inheritDoc
* @deprecated
*/
public child(
spanContext?: Pick<SpanContext, Exclude<keyof SpanContext, 'spanId' | 'sampled' | 'traceId' | 'parentSpanId'>>,
): Span {
return this.startChild(spanContext);
}

/**
* @inheritDoc
*/
Expand Down
8 changes: 0 additions & 8 deletions packages/types/src/span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,6 @@ export interface Span extends SpanContext {
*/
setHttpStatus(httpStatus: number): this;

/**
* Use {@link startChild}
* @deprecated
*/
child(
spanContext?: Pick<SpanContext, Exclude<keyof SpanContext, 'spanId' | 'sampled' | 'traceId' | 'parentSpanId'>>,
): Span;

/**
* Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.
* Also the `sampled` decision will be inherited.
Expand Down

0 comments on commit 8ca7f7c

Please sign in to comment.