Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
10 lines
463 B
Plaintext
10 lines
463 B
Plaintext
import { SpanKind } from '@opentelemetry/api';
|
|
import type { AbstractSpan } from '../types';
|
|
/**
|
|
* Get the span kind from a span.
|
|
* For whatever reason, this is not public API on the generic "Span" type,
|
|
* so we need to check if we actually have a `SDKTraceBaseSpan` where we can fetch this from.
|
|
* Otherwise, we fall back to `SpanKind.INTERNAL`.
|
|
*/
|
|
export declare function getSpanKind(span: AbstractSpan): SpanKind;
|
|
//# sourceMappingURL=getSpanKind.d.ts.map |