8000 chore(core): Mark `Span.getSpanJSON` method as internal (#10197) · GingerAdonis/sentry-javascript@6077cb9 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 6077cb9

Browse files
authored
chore(core): Mark Span.getSpanJSON method as internal (getsentry#10197)
Clarify the API status of the `Span.getSpanJSON` method. This method is purely purposed for internal usage and users should not rely on it but instead on `spanToJSON`. ref getsentry#10184
1 parent 0cc2ac9 commit 6077cb9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/core/src/tracing/span.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,11 @@ export class Span implements SpanInterface {
508508

509509
/**
510510
* Get JSON representation of this span.
511+
*
512+
* @hidden
513+
* @internal This method is purely for internal purposes and should not be used outside
514+
* of SDK code. If you need to get a JSON representation of a span,
515+
* use `spanToJSON(span)` instead.
511516
*/
512517
public getSpanJSON(): SpanJSON {
513518
return dropUndefinedKeys({

0 commit comments

Comments
 (0)
0