@pw-tech/instrumentation-hyper-express
Version:
OpenTelemetry hyper-express automatic instrumentation package
7 lines • 471 B
TypeScript
import { SpanKind, SpanStatusCode } from "@opentelemetry/api";
import type { Server } from "hyper-express";
export declare const isPromise: (value?: any) => value is Promise<unknown>;
export declare const isAsyncFunction: (value?: unknown) => boolean;
export declare const parseResponseStatus: (kind: SpanKind, statusCode?: number | undefined) => SpanStatusCode;
export declare const getScheme: (app: Server) => "https://" | "http://";
//# sourceMappingURL=utils.d.ts.map