diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d9acdf7..28f1e517 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed review agent so that it works with GHES instances [#611](https://github.com/sourcebot-dev/sourcebot/pull/611) +## [4.10.2] - 2025-12-04 + +### Fixed +- Fixed issue where the disable telemetry flag was not being respected for web server telemetry. [#657](https://github.com/sourcebot-dev/sourcebot/pull/657) + ## [4.10.1] - 2025-12-03 ### Added diff --git a/packages/web/src/lib/posthog.ts b/packages/web/src/lib/posthog.ts index 916151ca..6296768e 100644 --- a/packages/web/src/lib/posthog.ts +++ b/packages/web/src/lib/posthog.ts @@ -48,6 +48,10 @@ const getPostHogCookie = (cookieStore: Pick): PostHogCook } export async function captureEvent(event: E, properties: PosthogEventMap[E]) { + if (env.SOURCEBOT_TELEMETRY_DISABLED === 'true') { + return; + } + const cookieStore = await cookies(); const cookie = getPostHogCookie(cookieStore);