Skip to content

Commit d4e81b7

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

File tree

4 files changed

+0
-21
lines changed

4 files changed

+0
-21
lines changed

packages/hub/src/hub.ts

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 10 deletions
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/hub.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { Primitive } from './misc';
77
import { Scope } from './scope';
88
import { Session, SessionContext } from './session';
99
import { Severity } from './severity';
10-
import { Span, SpanContext } from './span';
1110
import { CustomSamplingContext, Transaction, TransactionContext } from './transaction';
1211
import { User } from './user';
1312

packages/types/src/span.ts

Lines changed: 0 additions & 8 deletions
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)