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
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
import type { Context, Span, SpanOptions } from '@opentelemetry/api';
|
|
type V6SpanCallback<R> = (span?: Span, context?: Context) => R;
|
|
type V6ExtendedSpanOptions = SpanOptions & {
|
|
name: string;
|
|
internal?: boolean;
|
|
middleware?: boolean;
|
|
active?: boolean;
|
|
context?: Context;
|
|
};
|
|
type V6EngineSpanId = string;
|
|
type V6HrTime = [number, number];
|
|
type EngineSpanKind = 'client' | 'internal';
|
|
type PrismaV6EngineSpan = {
|
|
id: V6EngineSpanId;
|
|
parentId: string | null;
|
|
name: string;
|
|
startTime: V6HrTime;
|
|
endTime: V6HrTime;
|
|
kind: EngineSpanKind;
|
|
attributes?: Record<string, unknown>;
|
|
links?: V6EngineSpanId[];
|
|
};
|
|
export interface PrismaV6TracingHelper {
|
|
isEnabled(): boolean;
|
|
getTraceParent(context?: Context): string;
|
|
dispatchEngineSpans(spans: PrismaV6EngineSpan[]): void;
|
|
getActiveContext(): Context | undefined;
|
|
runInChildSpan<R>(nameOrOptions: string | V6ExtendedSpanOptions, callback: V6SpanCallback<R>): R;
|
|
}
|
|
export {};
|
|
//# sourceMappingURL=v6-tracing-helper.d.ts.map |