UNPKG

@cerbos/opentelemetry

Version:

OpenTelemetry instrumentation for the @cerbos/grpc and @cerbos/http client libraries

14 lines 1.04 kB
import type { DescMessage, DescMethodServerStreaming, DescMethodUnary, MessageShape, MessageValidType } from "@bufbuild/protobuf"; import type { AbortHandler, Transport as CoreTransport } from "@cerbos/core/~internal"; import type { CerbosInstrumentation } from "./instrumentation.js"; export declare class Transport implements CoreTransport { private readonly instrumentation; private readonly transport; constructor(instrumentation: CerbosInstrumentation, transport: CoreTransport); unary<I extends DescMessage, O extends DescMessage>(method: DescMethodUnary<I, O>, request: MessageValidType<I>, headers: Headers, abortHandler: AbortHandler): Promise<MessageShape<O>>; serverStream<I extends DescMessage, O extends DescMessage>(method: DescMethodServerStreaming<I, O>, request: MessageValidType<I>, headers: Headers, abortHandler: AbortHandler): AsyncGenerator<MessageShape<O>, void, undefined>; private instrument; private get instruments(); private get tracer(); } //# sourceMappingURL=transport.d.ts.map