UNPKG

@fiberplane/hono-otel

Version:

Hono middleware to forward OpenTelemetry traces to a local instance of @fiberplane/studio

9 lines (8 loc) 514 B
import type { Response as WorkerResponse } from "@cloudflare/workers-types"; import type { GlobalResponse } from "../../types/index.js"; export declare function formatBody(body: BodyInit): string; export declare function formatRootRequestBody(request: Request): Promise<{ "fpx.http.request.body": string; } | null>; export declare function formDataValueToString(value: string | File): string; export declare function tryGetResponseBodyAsText(response: GlobalResponse | WorkerResponse): Promise<string | null>;