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

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant