UNPKG

@fiberplane/hono-otel

Version:

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

10 lines (9 loc) 487 B
import type { Attributes } from "@opentelemetry/api"; import { type FpResolvedConfig } from "../../config/index.js"; /** * Helper to get the request attributes for the root request. * * When tracing e.v.e.r.y.t.h.i.n.g, this requires that we have a cloned request, * so we can get the body and headers without consuming the original request. */ export declare function getIncomingRequestAttributes(request: Request, honoEnv: unknown, config: FpResolvedConfig): Promise<Attributes>;