@fiberplane/hono-otel
Version:
Hono middleware to forward OpenTelemetry traces to a local instance of @fiberplane/studio
11 lines (10 loc) • 527 B
TypeScript
import type { Attributes } from "@opentelemetry/api";
import { type FpResolvedConfig } from "../../config/index.js";
import type { InitParam, InputParam } from "../../types/hono-types.js";
/**
* Get the request attributes for a given request.
*
* The `config` param is optional, and if not provided,
* we will try to use the config that's currently in the active OpenTelemetry context.
*/
export declare function getRequestAttributes(input: InputParam, init: InitParam | undefined, config?: FpResolvedConfig): Attributes;