@fiberplane/hono-otel
Version:
Hono middleware to forward OpenTelemetry traces to a local instance of @fiberplane/studio
10 lines (9 loc) • 526 B
TypeScript
/**
* The client library needs to be aware of whether it is in production. In production, we will NOT send certain sensitive data (see below).
*
* To determine whether we're in "local" mode, the library first checks:
* - Whether the FIBERPLANE_ENVIRONMENT env var === "local"
* - If there is no FIBERPLANE_ENVIRONMENT set, then we check if FIBERPLANE_OTEL_ENDPOINT contains localhost.
*
*/
export declare function isInLocalMode(env: Record<string, string | null> | null | undefined, isLocalFallback: boolean): boolean;