diff --git a/packages/core/src/tracing/span.ts b/packages/core/src/tracing/span.ts index 353f2e4d694f..d140c3d0a910 100644 --- a/packages/core/src/tracing/span.ts +++ b/packages/core/src/tracing/span.ts @@ -508,6 +508,11 @@ export class Span implements SpanInterface { /** * Get JSON representation of this span. + * + * @hidden + * @internal This method is purely for internal purposes and should not be used outside + * of SDK code. If you need to get a JSON representation of a span, + * use `spanToJSON(span)` instead. */ public getSpanJSON(): SpanJSON { return dropUndefinedKeys({