mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
f499e1a00a
Replace the TTL-based cache with a Lazy<AtomicBool> that is initialised once from config and updated immediately via set_telemetry_enabled() whenever the telemetry key is written through the /config/upsert, /config/remove, or CLI configure paths. This gives hot paths (Sentry before_send / traces_sampler) zero disk I/O while ensuring opt-in and opt-out take effect instantly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>