UNPKG

@fiberplane/hono-otel

Version:

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

12 lines (11 loc) 532 B
import { type Context } from "@opentelemetry/api"; import type { FpResolvedConfig } from "../config.js"; /** * Unique symbol used to store/retrieve the FPX config on the active context. */ export declare const FPX_CONFIG_KEY: unique symbol; /** * Retrieves the FPX configuration from the current active context, or returns the default configuration. */ export declare function getFpResolvedConfig(): FpResolvedConfig | undefined; export declare function setFpResolvedConfig(context: Context, config: FpResolvedConfig): Context;