From 8ca7f7c59f91f7b6b969ab91f3161bb4c6465939 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Mon, 4 Apr 2022 13:18:22 -0400 Subject: [PATCH] feat(tracing): Remove start method --- packages/hub/src/hub.ts | 2 -- packages/tracing/src/span.ts | 10 ---------- packages/types/src/span.ts | 8 -------- 3 files changed, 20 deletions(-) diff --git a/packages/hub/src/hub.ts b/packages/hub/src/hub.ts index 8917e17c792c..4799b8dce3d8 100644 --- a/packages/hub/src/hub.ts +++ b/packages/hub/src/hub.ts @@ -14,8 +14,6 @@ import { Primitive, SessionContext, Severity, - Span, - SpanContext, Transaction, TransactionContext, User, diff --git a/packages/tracing/src/span.ts b/packages/tracing/src/span.ts index 990f56ce981c..baece680f52c 100644 --- a/packages/tracing/src/span.ts +++ b/packages/tracing/src/span.ts @@ -149,16 +149,6 @@ export class Span implements SpanInterface { } } - /** - * @inheritDoc - * @deprecated - */ - public child( - spanContext?: Pick>, - ): Span { - return this.startChild(spanContext); - } - /** * @inheritDoc */ diff --git a/packages/types/src/span.ts b/packages/types/src/span.ts index 09b69454835e..d26887a93f2a 100644 --- a/packages/types/src/span.ts +++ b/packages/types/src/span.ts @@ -128,14 +128,6 @@ export interface Span extends SpanContext { */ setHttpStatus(httpStatus: number): this; - /** - * Use {@link startChild} - * @deprecated - */ - child( - spanContext?: Pick>, - ): Span; - /** * Creates a new `Span` while setting the current `Span.id` as `parentSpanId`. * Also the `sampled` decision will be inherited.