Skip to content

Disable SDK when API key is blank#107

Draft
marandaneto wants to merge 1 commit intoPostHog:mainfrom
marandaneto:fix/noop-empty-api-key
Draft

Disable SDK when API key is blank#107
marandaneto wants to merge 1 commit intoPostHog:mainfrom
marandaneto:fix/noop-empty-api-key

Conversation

@marandaneto
Copy link
Copy Markdown
Member

Summary

  • Treat missing, empty, or whitespace-only api_key as disabled/no-op configuration
  • Avoid building an API client or starting senders/source workers when disabled
  • Make captures no-op when the SDK is disabled

Tests

  • mix test test/posthog/config_test.exs test/posthog/application_config_test.exs test/posthog/supervisor_test.exs
  • mix test
  • mix format --check-formatted
  • mix credo --strict

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

@github-actions github-actions Bot added the stale label May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant