feat: BROWSER_OBSERVABILITY env var to toggle browser telemetry proxy (#1288)
the logfire browser SDK proxies all browser trace data through the
backend (POST /logfire-proxy/v1/traces) because Logfire requires
server-side auth. the proxy uses run_in_threadpool for a synchronous
HTTP call — under load, this saturates the threadpool and starves
async handlers including DB queries.
adds BROWSER_OBSERVABILITY env var (default: true) exposed via
GET /config. frontend gates initObservability() on this flag.
set BROWSER_OBSERVABILITY=false to disable browser telemetry proxy
and eliminate the proxy load on the backend.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
authored by