Skip to content

Don't send page view events when telemetry is disabled#256

Open
takluyver wants to merge 2 commits intoTenderOwl:masterfrom
takluyver:patch-2
Open

Don't send page view events when telemetry is disabled#256
takluyver wants to merge 2 commits intoTenderOwl:masterfrom
takluyver:patch-2

Conversation

@takluyver
Copy link

It's somewhat unusual for open source projects to have on by default telemetry. I think that's up to you, but if I disable telemetry in the settings, I expect that to stop all telemetry. Page view events (telemetry.capture_page_view()) are currently sent regardless of the telemetry setting.

Going a step further, I've made it set up the posthog client only if telemetry is enabled. This is meant to prevent similar mistakes where the setting is ignored, including accidentally sending telemetry at startup before the setting value has been applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant