Skip to content

: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.

fix(billing): hide unsupported replay observation usage filter (#66242)

Pawel Cebulaa2bb049afeb3
diff --git a/ee/hogai/tools/read_billing_tool/tool.py b/ee/hogai/tools/read_billing_tool/tool.py
index 348304d14537..35fceb11ca1d 100644
--- a/ee/hogai/tools/read_billing_tool/tool.py
+++ b/ee/hogai/tools/read_billing_tool/tool.py
@@ -17,13 +17,13 @@ from ee.hogai.utils.types import AssistantState
from .prompts import BILLING_CONTEXT_PROMPT, BILLING_CONTEXT_UNAVAILABLE_PROMPT
# sync with frontend/src/scenes/billing/constants.ts
+# Values are sent to the `billing` repo as `usage_types`; keep in sync with accepted types in `billing/types/usage.py`.
USAGE_TYPES = [
{"label": "Events", "value": "event_count_in_period"},
{"label": "Identified events", "value": "enhanced_persons_event_count_in_period"},
{"label": "Group analytics", "value": "group_analytics"},
{"label": "Recordings", "value": "recording_count_in_period"},
{"label": "Mobile recordings", "value": "mobile_recording_count_in_period"},
- {"label": "Recording observations", "value": "recording_observations_count_in_period"},
{"label": "Feature flag requests", "value": "billable_feature_flag_requests_count_in_period"},
{"label": "Exceptions", "value": "exceptions_captured_in_period"},
{"label": "Survey responses", "value": "survey_responses_count_in_period"},
diff --git a/frontend/src/scenes/billing/constants.ts b/frontend/src/scenes/billing/constants.ts
index 657c384a772c..1f58e814e97f 100644
--- a/frontend/src/scenes/billing/constants.ts
+++ b/frontend/src/scenes/billing/constants.ts
@@ -1,11 +1,11 @@
// sync with ee/hogai/tools/read_billing_tool/tool.py
+// Values are sent to the `billing` repo as `usage_types`; keep in sync with accepted types in `billing/types/usage.py`.
export const USAGE_TYPES = [
{ label: 'Events', value: 'event_count_in_period' },
{ label: 'Identified events', value: 'enhanced_persons_event_count_in_period' },
{ label: 'Group analytics', value: 'group_analytics' },
{ label: 'Recordings', value: 'recording_count_in_period' },
{ label: 'Mobile recordings', value: 'mobile_recording_count_in_period' },
- { label: 'Recording observations', value: 'recording_observations_count_in_period' },
{ label: 'Feature flag requests', value: 'billable_feature_flag_requests_count_in_period' },
{ label: 'Exceptions', value: 'exceptions_captured_in_period' },
{ label: 'Survey responses', value: 'survey_responses_count_in_period' },