UNPKG

@hasura/ndc-sdk-typescript

Version:

This SDK is mostly analogous to the Rust SDK, except where necessary.

8 lines 758 B
import { Attributes, Span, Tracer } from "@opentelemetry/api"; export type Protocol = "grpc" | "http/protobuf"; export declare function initTelemetry(defaultServiceName?: string, defaultEndpoint?: string, defaultProtocol?: Protocol, defaultConnectorName?: string, defaultConnectorVersion?: string): void; export declare function isInitialized(): boolean; export declare const USER_VISIBLE_SPAN_ATTRIBUTE: Attributes; export declare function withActiveSpan<TReturn>(tracer: Tracer, name: string, func: (span: Span) => TReturn, attributes?: Attributes): TReturn; export declare function withInternalActiveSpan<TReturn>(tracer: Tracer, name: string, func: (span: Span) => TReturn, attributes?: Attributes): TReturn; //# sourceMappingURL=instrumentation.d.ts.map