Skip to content

Commit b1ea897

Browse files
committed
feat(tracing): Remove start method
1 parent 1de9354 commit b1ea897

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

packages/tracing/src/span.ts

-10
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,6 @@ export class Span implements SpanInterface {
149149
}
150150
}
151151

152-
/**
153-
* @inheritDoc
154-
* @deprecated
155-
*/
156-
public child(
157-
spanContext?: Pick<SpanContext, Exclude<keyof SpanContext, 'spanId' | 'sampled' | 'traceId' | 'parentSpanId'>>,
158-
): Span {
159-
return this.startChild(spanContext);
160-
}
161-
162152
/**
163153
* @inheritDoc
164154
*/

packages/types/src/span.ts

-8
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,6 @@ export interface Span extends SpanContext {
128128
*/
129129
setHttpStatus(httpStatus: number): this;
130130

131-
/**
132-
* Use {@link startChild}
133-
* @deprecated
134-
*/
135-
child(
136-
spanContext?: Pick<SpanContext, Exclude<keyof SpanContext, 'spanId' | 'sampled' | 'traceId' | 'parentSpanId'>>,
137-
): Span;
138-
139131
/**
140132
* Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.
141133
* Also the `sampled` decision will be inherited.

0 commit comments

Comments
 (0)