From c864ff63d3515be4efa3b1399ef9cafe89497661 Mon Sep 17 00:00:00 2001 From: Gunnlaugur Thor Briem Date: Mon, 2 Nov 2020 09:33:46 +0000 Subject: [PATCH] doc: fix outdated docstring on Span constructor (#3021) --- packages/tracing/src/span.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/tracing/src/span.ts b/packages/tracing/src/span.ts index ec8d76efab6c..9a20e4c152bf 100644 --- a/packages/tracing/src/span.ts +++ b/packages/tracing/src/span.ts @@ -105,7 +105,8 @@ export class Span implements SpanInterface { public transaction?: Transaction; /** - * You should never call the constructor manually, always use `hub.startSpan()`. + * You should never call the constructor manually, always use `Sentry.startTransaction()` + * or call `startChild()` on an existing span. * @internal * @hideconstructor * @hidden