Skip to content

Commit c864ff6

Browse files
authored
doc: fix outdated docstring on Span constructor (#3021)
1 parent 8489072 commit c864ff6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/tracing/src/span.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ export class Span implements SpanInterface {
105105
public transaction?: Transaction;
106106

107107
/**
108-
* You should never call the constructor manually, always use `hub.startSpan()`.
108+
* You should never call the constructor manually, always use `Sentry.startTransaction()`
109+
* or call `startChild()` on an existing span.
109110
* @internal
110111
* @hideconstructor
111112
* @hidden

0 commit comments

Comments
 (0)