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 b1ea897
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
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 b1ea897

Please sign in to comment.