:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(wizard): call detected competitors posthog alternatives (#117328)
Rafael Audibertfd165210855f
diff --git a/.agents/skills/implementing-warehouse-sources/SKILL.md b/.agents/skills/implementing-warehouse-sources/SKILL.mdindex 4b399d375309..444a0311f908 100644--- a/.agents/skills/implementing-warehouse-sources/SKILL.md+++ b/.agents/skills/implementing-warehouse-sources/SKILL.md@@ -281,7 +281,7 @@ the name already obviously matches; don't add noise.## Codebase detection-A released source (no `unreleasedSource=True`) must set the `codebase_detection` class attribute. The PostHog wizard uses it to tell that a customer's codebase uses the vendor, to suggest the source and to spot competitors.+A released source (no `unreleasedSource=True`) must set the `codebase_detection` class attribute. The PostHog wizard uses it to tell that a customer's codebase uses the vendor, to suggest the source and to spot PostHog alternatives.Use `detect(...)` from `products/warehouse_sources/backend/facade/codebase_detection.py`. List the vendor's official SDK package names per ecosystem, the `.env` key names the vendor documents as anchored regexes, and any CDN host its script tag loads from.The wizard creates the source from the terminal unless the source's fields need OAuth, a file upload or an account picker. Set the class attribute `setup_requires_ui = True` when users should still go to the app, for example because a credential is hard to find.Use `NOT_DETECTABLE` when no package, key or script gives the vendor away. `tests/test_codebase_detection.py` fails for a released source without the attribute, and for an unreleased source with one.diff --git a/products/warehouse_sources/backend/facade/codebase_detection.py b/products/warehouse_sources/backend/facade/codebase_detection.pyindex 20d26d729d45..ae1a023eb601 100644--- a/products/warehouse_sources/backend/facade/codebase_detection.py+++ b/products/warehouse_sources/backend/facade/codebase_detection.py@@ -48,7 +48,7 @@ class Detection:# A host matches itself and its subdomains.script_hosts: tuple[str, ...]packages: Mapping[Ecosystem, tuple[str, ...]]- competes_with: tuple[ProductKey, ...]+ alternative_to: tuple[ProductKey, ...]# Kinds that reach the same data through a more specific connector. When one of them also# matches, the wizard drops this one so the data is not imported twice.superseded_by: tuple[str, ...]@@ -76,7 +76,7 @@ class _Signals(TypedDict, total=False):pub: tuple[str, ...]rubygems: tuple[str, ...]swiftpm: tuple[str, ...]- competes_with: tuple[ProductKey, ...]+ alternative_to: tuple[ProductKey, ...]superseded_by: tuple[str, ...]@@ -87,7 +87,7 @@ def detect(**signals: Unpack[_Signals]) -> Detection:env_key_patterns=signals.get("env", ()),script_hosts=signals.get("script_hosts", ()),packages={ecosystem: by_name[ecosystem.value] for ecosystem in Ecosystem if by_name.get(ecosystem.value)},- competes_with=signals.get("competes_with", ()),+ alternative_to=signals.get("alternative_to", ()),superseded_by=signals.get("superseded_by", ()),)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/amplitude/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/amplitude/source.pyindex 9be5261dce47..af9f51aa4406 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/amplitude/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/amplitude/source.py@@ -140,7 +140,7 @@ class AmplitudeSource(ResumableSource[AmplitudeSourceConfig, AmplitudeResumeConf"github.com/amplitude/experiment-ios-client","github.com/amplitude/amplitude-engagement-swift",),- competes_with=(ProductKey.PRODUCT_ANALYTICS,),+ alternative_to=(ProductKey.PRODUCT_ANALYTICS,),)api_docs_url = "https://amplitude.com/docs/apis/analytics"diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/appcues/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/appcues/source.pyindex c86ee8b394fb..37398efc3bce 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/appcues/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/appcues/source.py@@ -52,7 +52,7 @@ class AppcuesSource(SimpleSource[AppcuesSourceConfig]):maven=("com.appcues:appcues", "com.appcues:segment-appcues"),pub=("appcues_flutter",),swiftpm=("github.com/appcues/appcues-ios-sdk", "github.com/appcues/segment-appcues-ios"),- competes_with=(ProductKey.PRODUCT_TOURS, ProductKey.SURVEYS),+ alternative_to=(ProductKey.PRODUCT_TOURS, ProductKey.SURVEYS),)lists_tables_without_credentials = Truediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/better_stack/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/better_stack/source.pyindex ea0a71aa3e5a..7a0b2cf90067 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/better_stack/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/better_stack/source.py@@ -70,7 +70,7 @@ class BetterStackSource(ResumableSource[BetterStackSourceConfig, BetterStackResugo=("github.com/BetterStackHQ/slog-betterstack",),maven=("com.logtail:logback-logtail",),rubygems=("logtail", "logtail-rails", "logtail-rack", "logtail-ruby", "fluent-plugin-logtail"),- competes_with=(ProductKey.LOGS,),+ alternative_to=(ProductKey.LOGS,),)supported_versions = ("v2",)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/braze/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/braze/source.pyindex bca6490d6ad7..001d06fa4918 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/braze/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/braze/source.py@@ -95,7 +95,7 @@ class BrazeSource(ResumableSource[BrazeSourceConfig, BrazeResumeConfig]):"github.com/appboy/appboy-ios-sdk","github.com/appboy/appboy-segment-ios",),- competes_with=(ProductKey.WORKFLOWS,),+ alternative_to=(ProductKey.WORKFLOWS,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/source.pyindex 153cc2b9ad31..10dbb4e904dd 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/source.py@@ -158,7 +158,7 @@ class BugsnagSource(ResumableSource[BugsnagSourceConfig, BugsnagResumeConfig]):"bugsnag-em",),swiftpm=("github.com/bugsnag/bugsnag-cocoa", "github.com/bugsnag/bugsnag-cocoa-performance"),- competes_with=(ProductKey.ERROR_TRACKING,),+ alternative_to=(ProductKey.ERROR_TRACKING,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/clevertap/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/clevertap/source.pyindex 01c21aa7a637..62475988c13e 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/clevertap/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/clevertap/source.py@@ -77,7 +77,7 @@ class ClevertapSource(ResumableSource[ClevertapSourceConfig, ClevertapResumeConf),pub=("clevertap_plugin",),swiftpm=("github.com/clevertap/clevertap-ios-sdk",),- competes_with=(ProductKey.WORKFLOWS,),+ alternative_to=(ProductKey.WORKFLOWS,),)lists_tables_without_credentials = Truediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/configcat/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/configcat/source.pyindex 572162aaa020..cd2dc0bb0880 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/configcat/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/configcat/source.py@@ -82,7 +82,7 @@ class ConfigCatSource(SimpleSource[ConfigCatSourceConfig]):pub=("configcat_client", "configcat_preferences_cache"),rubygems=("configcat", "configcat-openfeature-provider"),swiftpm=("github.com/configcat/swift-sdk", "github.com/configcat/openfeature-swift"),- competes_with=(ProductKey.FEATURE_FLAGS,),+ alternative_to=(ProductKey.FEATURE_FLAGS,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/crisp/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/crisp/source.pyindex 92216101c97a..7035ca8fbf55 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/crisp/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/crisp/source.py@@ -54,7 +54,7 @@ class CrispSource(ResumableSource[CrispSourceConfig, CrispResumeConfig]):pub=("crisp_chat",),rubygems=("crisp-api",),swiftpm=("github.com/crisp-im/crisp-sdk-ios",),- competes_with=(ProductKey.CONVERSATIONS,),+ alternative_to=(ProductKey.CONVERSATIONS,),)lists_tables_without_credentials = Truediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/source.pyindex f865873df960..198078975559 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/source.py@@ -159,7 +159,7 @@ class CustomerIOSource("github.com/customerio/cdp-analytics-swift","github.com/customerio/customerio-ios-fcm",),- competes_with=(ProductKey.WORKFLOWS,),+ alternative_to=(ProductKey.WORKFLOWS,),)supported_versions = ("v1",)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/datadog/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/datadog/source.pyindex e97c92b08cb1..91249b1e47f6 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/datadog/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/datadog/source.py@@ -463,7 +463,7 @@ class DatadogSource(ResumableSource[DatadogSourceConfig, DatadogResumeConfig]):"github.com/datadog/dd-sdk-ios-apollo-interceptor","github.com/datadog/swift-dogstatsd",),- competes_with=(ProductKey.LOGS, ProductKey.TRACING, ProductKey.ERROR_TRACKING),+ alternative_to=(ProductKey.LOGS, ProductKey.TRACING, ProductKey.ERROR_TRACKING),)api_docs_url = "https://docs.datadoghq.com/api/latest/"diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/flagsmith/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/flagsmith/source.pyindex ce35c4786e50..8ab2482cecfe 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/flagsmith/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/flagsmith/source.py@@ -100,7 +100,7 @@ class FlagsmithSource(ResumableSource[FlagsmithSourceConfig, FlagsmithResumeConf"github.com/flagsmith/flagsmith-ios-client","github.com/flagsmith/flagsmith-openfeature-swift-provider",),- competes_with=(ProductKey.FEATURE_FLAGS,),+ alternative_to=(ProductKey.FEATURE_FLAGS,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/fullstory/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/fullstory/source.pyindex 244b680be94f..75a626c53353 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/fullstory/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/fullstory/source.py@@ -81,7 +81,7 @@ class FullStorySource(ResumableSource[FullStorySourceConfig, FullStoryResumeConf"github.com/fullstorydev/fullstory-guides-and-surveys-swift-package-ios","github.com/fullstorydev/fullstory-swiftui-selectors-ios",),- competes_with=(ProductKey.SESSION_REPLAY,),+ alternative_to=(ProductKey.SESSION_REPLAY,),)supported_versions = ("v2",)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/google_analytics/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/google_analytics/source.pyindex 0602df74e199..d8b0534b5809 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/google_analytics/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/google_analytics/source.py@@ -167,7 +167,7 @@ class GoogleAnalyticsSource(ResumableSource[GoogleAnalyticsSourceConfig, GoogleA"google-analytics-rails",),swiftpm=("github.com/google/googleappmeasurement",),- competes_with=(ProductKey.WEB_ANALYTICS,),+ alternative_to=(ProductKey.WEB_ANALYTICS,),)supported_versions = ("v1",)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/growthbook/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/growthbook/source.pyindex d4d56708aa35..dedebf099c52 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/growthbook/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/growthbook/source.py@@ -103,7 +103,7 @@ class GrowthBookSource(ResumableSource[GrowthBookSourceConfig, GrowthBookResumeCpub=("growthbook_sdk_flutter",),rubygems=("growthbook",),swiftpm=("github.com/growthbook/growthbook-swift",),- competes_with=(ProductKey.FEATURE_FLAGS, ProductKey.EXPERIMENTS),+ alternative_to=(ProductKey.FEATURE_FLAGS, ProductKey.EXPERIMENTS),)lists_tables_without_credentials = Truediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/helicone/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/helicone/source.pyindex 55420c87e0e5..1e49f8d1a209 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/helicone/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/helicone/source.py@@ -58,7 +58,7 @@ class HeliconeSource(ResumableSource[HeliconeSourceConfig, HeliconeResumeConfig]),pypi=("helicone", "helicone-helpers", "helicone-async", "helicone-prompts", "llama-index-llms-helicone"),go=("github.com/helicone/go-helicone-helpers",),- competes_with=(ProductKey.LLM_ANALYTICS,),+ alternative_to=(ProductKey.LLM_ANALYTICS,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/honeybadger/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/honeybadger/source.pyindex df16decbba01..4536d9bafef2 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/honeybadger/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/honeybadger/source.py@@ -75,7 +75,7 @@ class HoneybadgerSource(ResumableSource[HoneybadgerSourceConfig, HoneybadgerResumaven=("io.honeybadger:honeybadger-java", "io.honeybadger:honeybadger-java-shaded"),rubygems=("honeybadger", "yabeda-honeybadger_insights", "resque-honeybadger", "delayed_job_honeybadger"),swiftpm=("github.com/honeybadger-io/honeybadger-cocoa",),- competes_with=(ProductKey.ERROR_TRACKING,),+ alternative_to=(ProductKey.ERROR_TRACKING,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/honeycomb/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/honeycomb/source.pyindex e7adc96692be..a577c4658d41 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/honeycomb/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/honeycomb/source.py@@ -107,7 +107,7 @@ class HoneycombSource(ResumableSource[HoneycombSourceConfig, HoneycombResumeConf"logstash-output-honeycomb_json_batch",),swiftpm=("github.com/honeycombio/honeycomb-opentelemetry-swift", "github.com/honeycombio/libhoney-cocoa"),- competes_with=(ProductKey.TRACING,),+ alternative_to=(ProductKey.TRACING,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/intercom/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/intercom/source.pyindex 2e0464589f57..98d096ca0614 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/intercom/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/intercom/source.py@@ -79,7 +79,7 @@ class IntercomSource(ResumableSource[IntercomSourceConfig, IntercomResumeConfig]pub=("intercom_flutter", "intercom_flutter_web", "intercom_flutter_platform_interface"),rubygems=("intercom", "intercom-rails", "omniauth-intercom", "intercom-app"),swiftpm=("github.com/intercom/intercom-ios-sp", "github.com/intercom/intercom-ios"),- competes_with=(ProductKey.CONVERSATIONS,),+ alternative_to=(ProductKey.CONVERSATIONS,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/source.pyindex 405d0eb02815..84d934256e40 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/klaviyo/source.py@@ -79,7 +79,7 @@ class KlaviyoSource(ResumableSource[KlaviyoSourceConfig, KlaviyoResumeConfig]):pub=("klaviyo_flutter_sdk", "klaviyo_flutter"),rubygems=("klaviyo-api-sdk", "klaviyo", "klaviyo_sdk"),swiftpm=("github.com/klaviyo/klaviyo-swift-sdk",),- competes_with=(ProductKey.WORKFLOWS,),+ alternative_to=(ProductKey.WORKFLOWS,),)supported_versions = (KLAVIYO_API_VERSION_2024_10_15, KLAVIYO_API_VERSION_2026_07_15)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/langfuse/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/langfuse/source.pyindex 045ccc4e3293..263b677d2ccd 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/langfuse/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/langfuse/source.py@@ -108,7 +108,7 @@ class LangfuseSource(ResumableSource[LangfuseSourceConfig, LangfuseResumeConfig]"com.quantpulsar:opentelemetry-exporter-langfuse",),rubygems=("langfuse-rb", "langfuse-ruby", "langfuse"),- competes_with=(ProductKey.LLM_ANALYTICS,),+ alternative_to=(ProductKey.LLM_ANALYTICS,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/langsmith/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/langsmith/source.pyindex 02f188e5f771..bb0089298c08 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/langsmith/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/langsmith/source.py@@ -72,7 +72,7 @@ class LangSmithSource(ResumableSource[LangSmithSourceConfig, LangSmithResumeConf"com.langchain.smith:langsmith-java-wrappers",),rubygems=("langsmith-sdk",),- competes_with=(ProductKey.LLM_ANALYTICS,),+ alternative_to=(ProductKey.LLM_ANALYTICS,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/launchdarkly/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/launchdarkly/source.pyindex 21fe29b0e649..2be7573a6dfc 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/launchdarkly/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/launchdarkly/source.py@@ -209,7 +209,7 @@ class LaunchDarklySource(ResumableSource[LaunchDarklySourceConfig, LaunchDarklyR"launchdarkly_api",),swiftpm=("github.com/launchdarkly/ios-client-sdk", "github.com/launchdarkly/swift-launchdarkly-observability"),- competes_with=(ProductKey.FEATURE_FLAGS, ProductKey.EXPERIMENTS),+ alternative_to=(ProductKey.FEATURE_FLAGS, ProductKey.EXPERIMENTS),)supported_versions = ("v2",)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/logrocket/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/logrocket/source.pyindex feb856273fef..3937e28e2e47 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/logrocket/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/logrocket/source.py@@ -67,7 +67,7 @@ class LogrocketSource(ResumableSource[LogrocketSourceConfig, LogrocketResumeConfmaven=("com.logrocket:logrocket", "com.logrocket:compose"),pub=("logrocket_flutter",),swiftpm=("github.com/logrocket/logrocket-ios-swift-package",),- competes_with=(ProductKey.SESSION_REPLAY, ProductKey.ERROR_TRACKING),+ alternative_to=(ProductKey.SESSION_REPLAY, ProductKey.ERROR_TRACKING),)lists_tables_without_credentials = Truediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/matomo/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/matomo/source.pyindex 7757aa748b3e..113deb41bcee 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/matomo/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/matomo/source.py@@ -84,7 +84,7 @@ class MatomoSource(ResumableSource[MatomoSourceConfig, MatomoResumeConfig], Valipub=("matomo_tracker", "matomo"),rubygems=("autometal-piwik", "piwik_analytics"),swiftpm=("github.com/matomo-org/matomo-sdk-ios",),- competes_with=(ProductKey.WEB_ANALYTICS,),+ alternative_to=(ProductKey.WEB_ANALYTICS,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/mixpanel/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/mixpanel/source.pyindex cabb51f35069..bd3aca620c30 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/mixpanel/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/mixpanel/source.py@@ -92,7 +92,7 @@ class MixpanelSource(ResumableSource[MixpanelSourceConfig, MixpanelResumeConfig]"github.com/mixpanel/mixpanel-ios-session-replay-package","github.com/mixpanel/mixpanel-swift-common",),- competes_with=(ProductKey.PRODUCT_ANALYTICS,),+ alternative_to=(ProductKey.PRODUCT_ANALYTICS,),)api_docs_url = "https://developer.mixpanel.com/reference/raw-data-export-api"diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/new_relic/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/new_relic/source.pyindex 8c05a88e9e18..1ab234d1ba52 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/new_relic/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/new_relic/source.py@@ -162,7 +162,7 @@ class NewRelicSource(ResumableSource[NewRelicSourceConfig, NewRelicResumeConfig]"github.com/newrelic/newrelic-ios-agent","github.com/newrelic/video-agent-ios",),- competes_with=(ProductKey.LOGS, ProductKey.TRACING),+ alternative_to=(ProductKey.LOGS, ProductKey.TRACING),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/onesignal/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/onesignal/source.pyindex dfdaebe55ad5..a13f7d3c059e 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/onesignal/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/onesignal/source.py@@ -61,7 +61,7 @@ class OneSignalSource(ResumableSource[OneSignalSourceConfig, OneSignalResumeConfpub=("onesignal_flutter",),rubygems=("onesignal", "onesignal-ruby"),swiftpm=("github.com/onesignal/onesignal-xcframework", "github.com/onesignal/onesignal-ios-sdk"),- competes_with=(ProductKey.WORKFLOWS,),+ alternative_to=(ProductKey.WORKFLOWS,),)lists_tables_without_credentials = Truediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/optimizely/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/optimizely/source.pyindex 5c025dcf01fe..b29d2024a364 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/optimizely/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/optimizely/source.py@@ -79,7 +79,7 @@ class OptimizelySource(SimpleSource[OptimizelySourceConfig]):pub=("optimizely_flutter_sdk",),rubygems=("optimizely-sdk",),swiftpm=("github.com/optimizely/swift-sdk",),- competes_with=(ProductKey.EXPERIMENTS,),+ alternative_to=(ProductKey.EXPERIMENTS,),)supported_versions = ("v2",)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/pendo/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/pendo/source.pyindex 4c592c26b537..ad34eec481c5 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/pendo/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/pendo/source.py@@ -64,7 +64,7 @@ class PendoSource(ResumableSource[PendoSourceConfig, PendoResumeConfig]):maven=("sdk.pendo.io:pendoIO", "com.pendo:pendo-cmp"),pub=("pendo_sdk",),swiftpm=("github.com/pendo-io/pendo-mobile-sdk",),- competes_with=(ProductKey.PRODUCT_ANALYTICS, ProductKey.PRODUCT_TOURS, ProductKey.SURVEYS),+ alternative_to=(ProductKey.PRODUCT_ANALYTICS, ProductKey.PRODUCT_TOURS, ProductKey.SURVEYS),)supported_versions = ("v1",)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/plausible/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/plausible/source.pyindex 06333fc8ed5d..329ad41dbba7 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/plausible/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/plausible/source.py@@ -59,7 +59,7 @@ class PlausibleSource(ResumableSource[PlausibleSourceConfig, PlausibleResumeConfpub=("plausible_analytics", "plausible"),rubygems=("plausible_api", "bridgetown-plausible"),swiftpm=("github.com/nickoneill/plausibleswift", "github.com/brightdigit/aviaryinsights"),- competes_with=(ProductKey.WEB_ANALYTICS,),+ alternative_to=(ProductKey.WEB_ANALYTICS,),)supported_versions = ("v2",)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/raygun/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/raygun/source.pyindex 514147908cd3..632e5bddfe4d 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/raygun/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/raygun/source.py@@ -94,7 +94,7 @@ class RaygunSource(ResumableSource[RaygunSourceConfig, RaygunResumeConfig]):"fluent-plugin-raygun",),swiftpm=("github.com/mindscapehq/raygun4apple",),- competes_with=(ProductKey.ERROR_TRACKING,),+ alternative_to=(ProductKey.ERROR_TRACKING,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/rollbar/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/rollbar/source.pyindex de95e0bb87df..ae221ec207ef 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/rollbar/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/rollbar/source.py@@ -110,7 +110,7 @@ class RollbarSource(ResumableSource[RollbarSourceConfig, RollbarResumeConfig]):pub=("rollbar_flutter", "rollbar_dart", "rollbar_common"),rubygems=("rollbar", "ratchetio", "resque-rollbar"),swiftpm=("github.com/rollbar/rollbar-apple",),- competes_with=(ProductKey.ERROR_TRACKING,),+ alternative_to=(ProductKey.ERROR_TRACKING,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/rudderstack/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/rudderstack/source.pyindex 8968238a688c..7b81a6154453 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/rudderstack/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/rudderstack/source.py@@ -228,7 +228,7 @@ class RudderStackSource(ResumableSource[RudderStackSourceConfig, RudderStackResu"github.com/rudderlabs/rudder-integration-singular-swift","github.com/rudderlabs/rudder-integration-sprig-ios",),- competes_with=(ProductKey.PIPELINE_DESTINATIONS,),+ alternative_to=(ProductKey.PIPELINE_DESTINATIONS,),)lists_tables_without_credentials = Truediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/segment/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/segment/source.pyindex 8249a1106f53..138015a1870b 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/segment/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/segment/source.py@@ -241,7 +241,7 @@ class SegmentSource(ResumableSource[SegmentSourceConfig, SegmentResumeConfig]):"github.com/segment-integrations/analytics-swift-quantcast","github.com/segmentio/public-api-sdk-swift",),- competes_with=(ProductKey.PIPELINE_DESTINATIONS,),+ alternative_to=(ProductKey.PIPELINE_DESTINATIONS,),)api_docs_url = "https://docs.segmentapis.com/"diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/sentry/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/sentry/source.pyindex 2d5c9b6a2405..4aacf97c0088 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/sentry/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/sentry/source.py@@ -290,7 +290,7 @@ class SentrySource(ResumableSource[SentrySourceConfig, SentryResumeConfig]):"github.com/getsentry/sentry-apple-swiftybeaver","github.com/getsentry/sentry-apple-pulse",),- competes_with=(ProductKey.ERROR_TRACKING,),+ alternative_to=(ProductKey.ERROR_TRACKING,),)supported_versions = ("0",)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/snowplow/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/snowplow/source.pyindex f0ae64eb92e8..1a020976436b 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/snowplow/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/snowplow/source.py@@ -127,7 +127,7 @@ class SnowplowSource(ResumableSource[SnowplowSourceConfig, SnowplowResumeConfig]pub=("snowplow_tracker",),rubygems=("snowplow-tracker",),swiftpm=("github.com/snowplow/snowplow-ios-tracker", "github.com/snowplow/snowplow-objc-tracker"),- competes_with=(ProductKey.PRODUCT_ANALYTICS,),+ alternative_to=(ProductKey.PRODUCT_ANALYTICS,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/split_io/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/split_io/source.pyindex 5faff312895d..4a56c8530c62 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/split_io/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/split_io/source.py@@ -116,7 +116,7 @@ class SplitIoSource(ResumableSource[SplitIoSourceConfig, SplitIoResumeConfig]):"github.com/splitio/ios-rum","github.com/splitio/split-openfeature-provider-swift",),- competes_with=(ProductKey.FEATURE_FLAGS, ProductKey.EXPERIMENTS),+ alternative_to=(ProductKey.FEATURE_FLAGS, ProductKey.EXPERIMENTS),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/statsig/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/statsig/source.pyindex d500be6bcbcf..800201f954c6 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/statsig/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/statsig/source.py@@ -119,7 +119,7 @@ class StatsigSource(ResumableSource[StatsigSourceConfig, StatsigResumeConfig]):"github.com/statsig-io/swift-on-device-evaluations-sdk","github.com/statsig-io/ios-sdk",),- competes_with=(ProductKey.FEATURE_FLAGS, ProductKey.EXPERIMENTS),+ alternative_to=(ProductKey.FEATURE_FLAGS, ProductKey.EXPERIMENTS),)lists_tables_without_credentials = Truediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/typeform/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/typeform/source.pyindex b574ebe1e986..025072b56f12 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/typeform/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/typeform/source.py@@ -50,7 +50,7 @@ class TypeformSource(SimpleSource[TypeformSourceConfig]):"typeform-elements",),pypi=("typeform",),- competes_with=(ProductKey.SURVEYS,),+ alternative_to=(ProductKey.SURVEYS,),)api_docs_url = "https://www.typeform.com/developers/"diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/umami/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/umami/source.pyindex 54f50444be2e..e5dabea39226 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/umami/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/umami/source.py@@ -59,7 +59,7 @@ class UmamiSource(ResumableSource[UmamiSourceConfig, UmamiResumeState], Validate),pypi=("umami-analytics",),rubygems=("umami-ruby",),- competes_with=(ProductKey.WEB_ANALYTICS,),+ alternative_to=(ProductKey.WEB_ANALYTICS,),)lists_tables_without_credentials = Truediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/unleash/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/unleash/source.pyindex 2a411465dbfa..c15a92f38625 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/unleash/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/unleash/source.py@@ -112,7 +112,7 @@ class UnleashSource(ResumableSource[UnleashSourceConfig, UnleashResumeConfig]):"github.com/unleash/unleash-ios-sdk","github.com/unleash/unleash-openfeature-swift-provider",),- competes_with=(ProductKey.FEATURE_FLAGS,),+ alternative_to=(ProductKey.FEATURE_FLAGS,),)lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/zendesk/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/zendesk/source.pyindex aea4529eb96b..e54306a0b454 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/zendesk/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/zendesk/source.py@@ -140,7 +140,7 @@ class ZendeskSource(ResumableSource[ZendeskSourceConfig, ZendeskResumeConfig]):"github.com/zendesk/sdk_ui_components_ios","github.com/zendesk/sunshine-conversations-ios",),- competes_with=(ProductKey.CONVERSATIONS,),+ alternative_to=(ProductKey.CONVERSATIONS,),)setup_requires_ui = Truediff --git a/products/wizard/backend/logic/scans.py b/products/wizard/backend/logic/scans.pyindex 0e78b7b0489d..90cb763be6f3 100644--- a/products/wizard/backend/logic/scans.py+++ b/products/wizard/backend/logic/scans.py@@ -11,16 +11,16 @@ from posthog.models.scoping.manager import resolve_effective_team_idfrom products.wizard.backend.facade.contracts import RecordWizardScanInput, WizardScanResult, WizardScanToolfrom products.wizard.backend.models import WizardDetectedTool, WizardScanfrom products.wizard.backend.observability.config import (- WIZARD_COMPETITOR_DETECTED_EVENT,- WIZARD_COMPETITOR_REMOVED_EVENT,+ WIZARD_POSTHOG_ALTERNATIVE_DETECTED_EVENT,+ WIZARD_POSTHOG_ALTERNATIVE_REMOVED_EVENT,)from products.wizard.backend.tool_catalog.catalog import classify_tool@frozen-class _CompetitorSighting:+class _PostHogAlternativeSighting:kind: str- competes_with: tuple[str, ...]+ alternative_to: tuple[str, ...]first_detection: bool# Seen again after a scan of the workspace no longer found it.returned: bool@@ -28,15 +28,15 @@ class _CompetitorSighting:@frozen-class _CompetitorRemoval:+class _PostHogAlternativeRemoval:kind: str- competes_with: tuple[str, ...]+ alternative_to: tuple[str, ...]@frozenclass _ScanChanges:- sightings: tuple[_CompetitorSighting, ...]- removals: tuple[_CompetitorRemoval, ...]+ sightings: tuple[_PostHogAlternativeSighting, ...]+ removals: tuple[_PostHogAlternativeRemoval, ...]def _signals_json(tool: WizardScanTool) -> list[dict[str, str | None]]:@@ -46,7 +46,7 @@ def _signals_json(tool: WizardScanTool) -> list[dict[str, str | None]]:def _classify(row: WizardDetectedTool) -> None:classification = classify_tool(row.kind)row.warehouse_source_type = classification.warehouse_source_type if classification else None- row.competes_with = list(classification.competes_with) if classification else []+ row.alternative_to = list(classification.alternative_to) if classification else []def record_scan(params: RecordWizardScanInput) -> WizardScanResult:@@ -96,7 +96,7 @@ def record_scan(params: RecordWizardScanInput) -> WizardScanResult:# robust: the scan is already stored, so an analytics failure must not turn the request into a 500.# A lambda rather than functools.partial, because Django logs a robust callback's failure through# its __qualname__, which a partial does not have.- transaction.on_commit(lambda: _report_competitor_changes(scan, changes), robust=True)+ transaction.on_commit(lambda: _report_posthog_alternative_changes(scan, changes), robust=True)return WizardScanResult(id=scan.id, created=True)@@ -117,8 +117,8 @@ def _apply_scan(scanned_at: datetime = scan.scanned_atto_create: list[WizardDetectedTool] = []to_update: list[WizardDetectedTool] = []- sightings: list[_CompetitorSighting] = []- removals: list[_CompetitorRemoval] = []+ sightings: list[_PostHogAlternativeSighting] = []+ removals: list[_PostHogAlternativeRemoval] = []for kind, tool in tools.items():row = existing.get(kind)@@ -140,11 +140,11 @@ def _apply_scan(row.removed_in_scan = Nonerow.removed_at = None_classify(row)- if row.competes_with:+ if row.alternative_to:sightings.append(- _CompetitorSighting(+ _PostHogAlternativeSighting(kind=kind,- competes_with=tuple(row.competes_with),+ alternative_to=tuple(row.alternative_to),first_detection=kind not in existing,returned=returned,signal_sources=tuple(sorted({signal.source for signal in tool.signals})),@@ -156,11 +156,11 @@ def _apply_scan(row.removed_in_scan = scanrow.removed_at = scanned_atto_update.append(row)- if row.competes_with:+ if row.alternative_to:removals.append(- _CompetitorRemoval(+ _PostHogAlternativeRemoval(kind=kind,- competes_with=tuple(row.competes_with),+ alternative_to=tuple(row.alternative_to),))@@ -172,7 +172,7 @@ def _apply_scan(["signals","warehouse_source_type",- "competes_with",+ "alternative_to","last_seen_scan","last_seen_at","removed_in_scan",@@ -182,7 +182,7 @@ def _apply_scan(return _ScanChanges(sightings=tuple(sightings), removals=tuple(removals))-def _report_competitor_changes(scan: WizardScan, changes: _ScanChanges) -> None:+def _report_posthog_alternative_changes(scan: WizardScan, changes: _ScanChanges) -> None:if not changes.sightings and not changes.removals:returnteam = Team.objects.select_related("organization").get(id=scan.team_id)@@ -206,10 +206,10 @@ def _report_competitor_changes(scan: WizardScan, changes: _ScanChanges) -> None:for sighting in changes.sightings:report(- WIZARD_COMPETITOR_DETECTED_EVENT,+ WIZARD_POSTHOG_ALTERNATIVE_DETECTED_EVENT,{"kind": sighting.kind,- "competes_with": list(sighting.competes_with),+ "alternative_to": list(sighting.alternative_to),"first_detection": sighting.first_detection,"returned": sighting.returned,"signal_sources": list(sighting.signal_sources),@@ -217,10 +217,10 @@ def _report_competitor_changes(scan: WizardScan, changes: _ScanChanges) -> None:)for removal in changes.removals:report(- WIZARD_COMPETITOR_REMOVED_EVENT,+ WIZARD_POSTHOG_ALTERNATIVE_REMOVED_EVENT,{"kind": removal.kind,- "competes_with": list(removal.competes_with),+ "alternative_to": list(removal.alternative_to),},)diff --git a/products/wizard/backend/migrations/0011_rename_competes_with_to_alternative_to.py b/products/wizard/backend/migrations/0011_rename_competes_with_to_alternative_to.pynew file mode 100644index 000000000000..871c74e10654--- /dev/null+++ b/products/wizard/backend/migrations/0011_rename_competes_with_to_alternative_to.py@@ -0,0 +1,35 @@+# Generated by Django 5.2.18 on 2026-10-14 21:03++from django.db import migrations+++class Migration(migrations.Migration):+ dependencies = [+ ("wizard", "0010_wizardscan_wizarddetectedtool"),+ ]++ # A plain RenameField emits the same SQL, but the migration risk analyzer blocks every RenameField,+ # because pods on the previous release still query the old column name during a deploy. The+ # analyzer accepts a reviewed override only on RunSQL, so the column rename runs as raw SQL and+ # the state rename stays separate. The rename is safe here because the table held no rows when+ # this migration shipped, and only the unreleased wizard called the code that reads it.+ operations = [+ migrations.SeparateDatabaseAndState(+ state_operations=[+ migrations.RenameField(+ model_name="wizarddetectedtool",+ old_name="competes_with",+ new_name="alternative_to",+ ),+ ],+ database_operations=[+ migrations.RunSQL(+ sql="""+ -- migration-analyzer: safe reason=the table holds no rows and only the unreleased wizard reads it+ ALTER TABLE "wizard_wizarddetectedtool" RENAME COLUMN "competes_with" TO "alternative_to";+ """,+ reverse_sql='ALTER TABLE "wizard_wizarddetectedtool" RENAME COLUMN "alternative_to" TO "competes_with";',+ ),+ ],+ ),+ ]diff --git a/products/wizard/backend/migrations/max_migration.txt b/products/wizard/backend/migrations/max_migration.txtindex 49d792af0b0b..74f22d840a45 100644--- a/products/wizard/backend/migrations/max_migration.txt+++ b/products/wizard/backend/migrations/max_migration.txt@@ -1 +1 @@-0010_wizardscan_wizarddetectedtool+0011_rename_competes_with_to_alternative_todiff --git a/products/wizard/backend/models.py b/products/wizard/backend/models.pyindex 65bb41d30c79..3ab665eb3bca 100644--- a/products/wizard/backend/models.py+++ b/products/wizard/backend/models.py@@ -261,7 +261,7 @@ class WizardDetectedTool(UUIDModel, TeamScopedRootMixin):# Copied from the tool catalog when the row is written, so the row stays readable after the# catalog changes. Empty for a kind the catalog does not know.warehouse_source_type = models.CharField(max_length=128, null=True, blank=True)- competes_with = models.JSONField(default=list)+ alternative_to = models.JSONField(default=list)signals = models.JSONField(default=list)diff --git a/products/wizard/backend/observability/config.py b/products/wizard/backend/observability/config.pyindex b430c940bfa3..d2f1542c86af 100644--- a/products/wizard/backend/observability/config.py+++ b/products/wizard/backend/observability/config.py@@ -4,8 +4,8 @@ WIZARD_RUN_STAGE_ENTERED_EVENT = "wizard run stage entered"WIZARD_RUN_FINISHED_EVENT = "wizard run finished"WIZARD_WORKER_USAGE_RECORDED_EVENT = "wizard worker usage recorded"WIZARD_RUN_ARTIFACT_CREATED_EVENT = "wizard run artifact created"-WIZARD_COMPETITOR_DETECTED_EVENT = "wizard competitor detected"-WIZARD_COMPETITOR_REMOVED_EVENT = "wizard competitor removed"+WIZARD_POSTHOG_ALTERNATIVE_DETECTED_EVENT = "wizard posthog alternative detected"+WIZARD_POSTHOG_ALTERNATIVE_REMOVED_EVENT = "wizard posthog alternative removed"WIZARD_RUN_DURATION_BUCKETS = (30, 60, 120, 300, 600, 1200, 1800, 3600, 7200)WIZARD_WORKER_LIFETIME_BUCKETS = (30, 60, 120, 300, 600, 1200, 1800, 2700, 3600, 4500)diff --git a/products/wizard/backend/presentation/tool_catalog/serializers.py b/products/wizard/backend/presentation/tool_catalog/serializers.pyindex d811d85a4737..84079e774548 100644--- a/products/wizard/backend/presentation/tool_catalog/serializers.py+++ b/products/wizard/backend/presentation/tool_catalog/serializers.py@@ -36,8 +36,8 @@ class WizardCatalogToolSerializer(serializers.Serializer):allow_null=True,help_text="How the wizard sets up the source: in the terminal or in the app. Null for a tool with no warehouse source.",)- competes_with = serializers.ListField(- child=serializers.CharField(), help_text="PostHog products this tool competes with."+ alternative_to = serializers.ListField(+ child=serializers.CharField(), help_text="PostHog products this tool is an alternative to.")superseded_by = serializers.ListField(child=serializers.CharField(),diff --git a/products/wizard/backend/tests/scans/test_logic.py b/products/wizard/backend/tests/scans/test_logic.pyindex 857026a3382a..8e0878b24361 100644--- a/products/wizard/backend/tests/scans/test_logic.py+++ b/products/wizard/backend/tests/scans/test_logic.py@@ -61,9 +61,9 @@ def test_tracks_tools_across_scans(team: Team) -> None:assert tools["Amplitude"].removed_in_scan_id == second.idassert tools["Stripe"].removed_at is Noneassert tools["Stripe"].last_seen_scan_id == second.id- assert tools["Amplitude"].competes_with == ["product_analytics"]+ assert tools["Amplitude"].alternative_to == ["product_analytics"]assert tools["Stripe"].warehouse_source_type == "Stripe"- assert (tools["NotInTheCatalog"].warehouse_source_type, tools["NotInTheCatalog"].competes_with) == (None, [])+ assert (tools["NotInTheCatalog"].warehouse_source_type, tools["NotInTheCatalog"].alternative_to) == (None, [])third = _scan(team, "s3", 2, ["Stripe", "Amplitude"])@@ -135,7 +135,7 @@ def test_partial_scan_adds_what_it_saw_and_removes_nothing(team: Team) -> None:@pytest.mark.django_db-def test_reports_competitor_changes_once_per_scan(team: Team, django_capture_on_commit_callbacks) -> None:+def test_reports_posthog_alternative_changes_once_per_scan(team: Team, django_capture_on_commit_callbacks) -> None:scans = [("s1", 0, ["Amplitude", "Stripe"]),("s2", 1, []),@@ -158,17 +158,17 @@ def test_reports_competitor_changes_once_per_scan(team: Team, django_capture_on_for call in capture.call_args_list]assert events == [- ("wizard competitor detected", "Amplitude", True, False),- ("wizard competitor removed", "Amplitude", None, None),- ("wizard competitor detected", "Amplitude", False, True),- ("wizard competitor removed", "Amplitude", None, None),+ ("wizard posthog alternative detected", "Amplitude", True, False),+ ("wizard posthog alternative removed", "Amplitude", None, None),+ ("wizard posthog alternative detected", "Amplitude", False, True),+ ("wizard posthog alternative removed", "Amplitude", None, None),]first_properties = capture.call_args_list[0].kwargs["properties"]- assert (first_properties["competes_with"], first_properties["wizard_version"]) == (["product_analytics"], "2.0.0")+ assert (first_properties["alternative_to"], first_properties["wizard_version"]) == (["product_analytics"], "2.0.0")@pytest.mark.django_db-def test_failing_competitor_report_keeps_the_scan(team: Team, django_capture_on_commit_callbacks) -> None:+def test_failing_posthog_alternative_report_keeps_the_scan(team: Team, django_capture_on_commit_callbacks) -> None:with (patch("products.wizard.backend.logic.scans.report_user_or_team_action", side_effect=RuntimeError),django_capture_on_commit_callbacks(execute=True),@@ -180,7 +180,7 @@ def test_failing_competitor_report_keeps_the_scan(team: Team, django_capture_on_@pytest.mark.django_db-def test_competitor_events_belong_to_the_scanned_projects_organization(+def test_posthog_alternative_events_belong_to_the_scanned_projects_organization(team: Team, django_capture_on_commit_callbacks) -> None:other_organization = Organization.objects.create(name="Other organization")diff --git a/products/wizard/backend/tool_catalog/catalog.py b/products/wizard/backend/tool_catalog/catalog.pyindex e3ab2b7c68f8..2227405537b3 100644--- a/products/wizard/backend/tool_catalog/catalog.py+++ b/products/wizard/backend/tool_catalog/catalog.py@@ -13,7 +13,7 @@ from typing import Anyfrom products.warehouse_sources.backend.facade.codebase_detection import Detection, fields_require_uifrom products.warehouse_sources.backend.facade.source_management import SourceRegistry, load_all_sources_or_raise-from products.wizard.backend.tool_catalog.competitors import COMPETITORS_WITHOUT_SOURCE+from products.wizard.backend.tool_catalog.posthog_alternatives import POSTHOG_ALTERNATIVES_WITHOUT_SOURCEfrom products.wizard.backend.tool_catalog.types import Tool, ToolClassification# Bump when the JSON shape changes in a way an older wizard cannot read.@@ -36,7 +36,7 @@ def get_tool_catalog() -> tuple[Tool, ...]:]tools += [Tool(kind=kind, label=kind, warehouse_source_type=None, detection=detection, setup_requires_ui=None)- for kind, detection in COMPETITORS_WITHOUT_SOURCE.items()+ for kind, detection in POSTHOG_ALTERNATIVES_WITHOUT_SOURCE.items()]return tuple(sorted(tools, key=lambda tool: tool.kind))@@ -50,7 +50,7 @@ def build_catalog_document() -> dict[str, Any]:"wizard_setup_mode": Noneif tool.setup_requires_ui is Noneelse ("deep-link" if tool.setup_requires_ui else "in-cli"),- "competes_with": [product.value for product in tool.detection.competes_with],+ "alternative_to": [product.value for product in tool.detection.alternative_to],"superseded_by": list(tool.detection.superseded_by),"signals": {"env_key_patterns": list(tool.detection.env_key_patterns),@@ -90,7 +90,7 @@ def _classifications() -> dict[str, ToolClassification]:tools = _catalog_document()["tools"]return {tool["kind"]: ToolClassification(- warehouse_source_type=tool["warehouse_source_type"], competes_with=tuple(tool["competes_with"])+ warehouse_source_type=tool["warehouse_source_type"], alternative_to=tuple(tool["alternative_to"]))for tool in tools}diff --git a/products/wizard/backend/tool_catalog/competitors.py b/products/wizard/backend/tool_catalog/posthog_alternatives.pysimilarity index 90%rename from products/wizard/backend/tool_catalog/competitors.pyrename to products/wizard/backend/tool_catalog/posthog_alternatives.pyindex 80bc6f891509..d0d6cbe58f87 100644--- a/products/wizard/backend/tool_catalog/competitors.py+++ b/products/wizard/backend/tool_catalog/posthog_alternatives.py@@ -2,9 +2,9 @@ from posthog.schema_enums import ProductKeyfrom products.warehouse_sources.backend.facade.codebase_detection import Detection, detect-# Competitors with no released warehouse source. Every source declares its own `codebase_detection`,+# PostHog alternatives with no released warehouse source. Every source declares its own `codebase_detection`,# so only these live here. The wizard detects and reports them, and never offers them as a source.-COMPETITORS_WITHOUT_SOURCE: dict[str, Detection] = {+POSTHOG_ALTERNATIVES_WITHOUT_SOURCE: dict[str, Detection] = {"Heap": detect(script_hosts=("cdn.heapanalytics.com",@@ -60,7 +60,7 @@ COMPETITORS_WITHOUT_SOURCE: dict[str, Detection] = {"github.com/heap/heap-ios-sdk","github.com/heap/heap-swiftui-sdk",),- competes_with=(ProductKey.PRODUCT_ANALYTICS,),+ alternative_to=(ProductKey.PRODUCT_ANALYTICS,),),"Hotjar": detect(env=("^HOTJAR_",),@@ -75,6 +75,6 @@ COMPETITORS_WITHOUT_SOURCE: dict[str, Detection] = {"gatsby-plugin-hotjar","nuxt-module-hotjar",),- competes_with=(ProductKey.SESSION_REPLAY, ProductKey.HEATMAPS, ProductKey.SURVEYS),+ alternative_to=(ProductKey.SESSION_REPLAY, ProductKey.HEATMAPS, ProductKey.SURVEYS),),}diff --git a/products/wizard/backend/tool_catalog/types.py b/products/wizard/backend/tool_catalog/types.pyindex ce95973e3e1e..84773bbda386 100644--- a/products/wizard/backend/tool_catalog/types.py+++ b/products/wizard/backend/tool_catalog/types.py@@ -17,4 +17,4 @@ class Tool:@frozenclass ToolClassification:warehouse_source_type: str | None- competes_with: tuple[str, ...]+ alternative_to: tuple[str, ...]diff --git a/products/wizard/frontend/generated/api.schemas.ts b/products/wizard/frontend/generated/api.schemas.tsindex 11a67967d0d1..59002dc6355a 100644--- a/products/wizard/frontend/generated/api.schemas.ts+++ b/products/wizard/frontend/generated/api.schemas.ts@@ -733,8 +733,8 @@ export interface WizardCatalogToolApi {* * `in-cli` - In the terminal* * `deep-link` - In the app */wizard_setup_mode: WizardSetupModeEnumApi | null- /** PostHog products this tool competes with. */- competes_with: string[]+ /** PostHog products this tool is an alternative to. */+ alternative_to: string[]/** Kinds that reach the same data through a more specific source. When one of them also matches, the wizard drops this tool. */superseded_by: string[]/** How the wizard detects the tool in a codebase. */diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex d3f5502363de..6bba5566c5cb 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -114282,8 +114282,8 @@ export namespace Schemas {* * `in-cli` - In the terminal* * `deep-link` - In the app */wizard_setup_mode: WizardSetupModeEnum | null;- /** PostHog products this tool competes with. */- competes_with: string[];+ /** PostHog products this tool is an alternative to. */+ alternative_to: string[];/** Kinds that reach the same data through a more specific source. When one of them also matches, the wizard drops this tool. */superseded_by: string[];/** How the wizard detects the tool in a codebase. */