Skip to content

Commit 4bee24b

Browse files
committed
add deprecation message to startSpan
1 parent 88953f0 commit 4bee24b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/types/src/hub.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,7 @@ export interface Hub {
176176
traceHeaders(): { [key: string]: string };
177177

178178
/**
179-
* Starts a new `Span` and returns it. If there is a `Span` on the `Scope`,
180-
* the new `Span` will be a child of the existing `Span`.
181-
*
182-
* @param context Properties of the new `Span`.
179+
* @deprecated No longer does anything. Use use {@link Transaction.startChild} instead.
183180
*/
184181
startSpan(context: SpanContext): Span;
185182

0 commit comments

Comments
 (0)