@fiberplane/hono-otel
Version:
Hono middleware to forward OpenTelemetry traces to a local instance of @fiberplane/studio
15 lines (14 loc) • 551 B
TypeScript
import type { FpResolvedConfig } from "../config.js";
/**
* Helper function to determine whether we want to record potentially sensitive data
* inside trace attributes.
*
* Optionally takes a config argument, but falls back to whatever is set on the OpenTelemetry context.
*
* If this returns true, then traces will include things like:
* - environment variables
* - sensitive req/res headers
* - results from database queries
* - etc., etc.,
*/
export declare function getShouldTraceEverything(resolvedConfig?: FpResolvedConfig): boolean;