@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
22 lines (21 loc) • 1.13 kB
TypeScript
import type { ProxyLogTraceContext } from "../types/index.js";
/** Correlation belongs to the in-flight HTTP request, not to an async callback. */
export declare function registerProxyRequestTraceContext(requestId: string, ids: ProxyLogTraceContext): void;
/** Release once transport and terminal accounting have settled. */
export declare function releaseProxyRequestTraceContext(requestId: string): void;
/** Internal fallback records share their parent request's trace. */
export declare function getProxyRequestTraceContext(requestId: string): ProxyLogTraceContext | undefined;
/** Retain IDs and sampling flags before deferred processing leaves the request. */
export declare function resolveProxyLogTraceContext(record: {
traceId?: unknown;
spanId?: unknown;
traceFlags?: unknown;
requestId?: unknown;
}): ProxyLogTraceContext | undefined;
/** Populate native OTLP correlation, including valid unsampled contexts. */
export declare function proxyLogContext(record: {
traceId?: unknown;
spanId?: unknown;
traceFlags?: unknown;
requestId?: unknown;
}): import("@opentelemetry/api").Context;