Skip to content

Commit

Permalink
doc: fix outdated docstring on Span constructor (#3021)
Browse files Browse the repository at this point in the history
  • Loading branch information
gthb authored Nov 2, 2020
1 parent 8489072 commit c864ff6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tracing/src/span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c864ff6

Please sign in to comment.