/** * Local Observability Configuration * * Provides a single toggle (SUPERBLOCKS_LOCAL_OBS=true) that auto-configures * all environment variables needed for local observability testing with the * LGTM stack (Loki, Grafana, Tempo, Mimir). * * This eliminates the need to manually set 8+ environment variables: * - SUPERBLOCKS_DEPLOYMENT_TYPE * - SUPERBLOCKS_LLMOBS_ENABLED * - OTEL_EXPORTER_OTLP_ENDPOINT * - DD_LLMOBS_ENABLED * - DD_LLMOBS_ML_APP * - DD_LLMOBS_AGENTLESS_ENABLED * - DD_SITE * - DD_API_KEY * * Usage: * SUPERBLOCKS_LOCAL_OBS=true pnpm start:all * * Or with custom OTEL endpoint: * SUPERBLOCKS_LOCAL_OBS=true OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 pnpm start:all * * Note: this mode changes export POLICY (sampling, log levels, LLMObs), not the * dev-server's OTLP endpoint. The dev-server always exports through the * Superblocks server proxy at /api, so with an auth file * pointing at a remote instance, a standalone `SUPERBLOCKS_LOCAL_OBS=true * superblocks dev` sends its telemetry to that instance, not to the local * collector. Run against a local stack to keep telemetry local. */ /** * Checks if local observability mode is enabled. * * Returns true if: * - SUPERBLOCKS_LOCAL_OBS=true (primary toggle) * - OR all required env vars are manually configured (legacy mode) */ export declare function isLocalObsEnabled(): boolean; /** * Applies local observability configuration to process.env. * * This ensures that all downstream code that reads env vars directly * (like dd-trace auto-initialization) gets the correct values. * * Should be called early in the application lifecycle, before any * telemetry initialization occurs. */ export declare function applyLocalObsEnvVars(): void; //# sourceMappingURL=local-obs.d.ts.map