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
18 lines
753 B
Plaintext
18 lines
753 B
Plaintext
import { Context, TracerProvider } from '@opentelemetry/api';
|
|
import type { EngineSpan, ExtendedSpanOptions, SpanCallback, TracingHelper } from '@prisma/instrumentation-contract';
|
|
type Options = {
|
|
tracerProvider: TracerProvider;
|
|
ignoreSpanTypes: (string | RegExp)[];
|
|
};
|
|
export declare class ActiveTracingHelper implements TracingHelper {
|
|
private tracerProvider;
|
|
private ignoreSpanTypes;
|
|
constructor({ tracerProvider, ignoreSpanTypes }: Options);
|
|
isEnabled(): boolean;
|
|
getTraceParent(context?: Context | undefined): string;
|
|
dispatchEngineSpans(spans: EngineSpan[]): void;
|
|
getActiveContext(): Context | undefined;
|
|
runInChildSpan<R>(options: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
|
|
}
|
|
export {};
|