Skip to content

Commit 8ca7f7c

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

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

packages/hub/src/hub.ts

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import {
1414
Primitive,
1515
SessionContext,
1616
Severity,
17-
Span,
18-
SpanContext,
1917
Transaction,
2018
TransactionContext,
2119
User,

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)