* Sadly, due to circular dependency checks we cannot actually import the Span class here and check for instanceof. * :( So instead we approximate this by checking if it has the `getSpanJSON` method.
(span: Span)
| 300 | * :( So instead we approximate this by checking if it has the `getSpanJSON` method. |
| 301 | */ |
| 302 | function spanIsSentrySpan(span: Span): span is SentrySpan { |
| 303 | return typeof (span as SentrySpan).getSpanJSON === 'function'; |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * Returns true if a span is sampled. |
no outgoing calls
no test coverage detected