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.

feat(error-tracking): filter issue exceptions by session recording (#121666)

Aleksander Błaszkiewicz8c7cdbb27373
diff --git a/frontend/src/lib/components/TaxonomicFilter/menu/TaxonomicFilterMenu.tsx b/frontend/src/lib/components/TaxonomicFilter/menu/TaxonomicFilterMenu.tsx
index 844d59e0fcf4..53fc7023659c 100644
--- a/frontend/src/lib/components/TaxonomicFilter/menu/TaxonomicFilterMenu.tsx
+++ b/frontend/src/lib/components/TaxonomicFilter/menu/TaxonomicFilterMenu.tsx
@@ -133,6 +133,11 @@ export interface TaxonomicFilterMenuProps {
* filter icon arrives on the dropdown menu.
*/
defaultOpenState?: 'menu' | 'combobox'
+ /**
+ * Consumer rows appended to the dropdown menu, under a separator. Each row
+ * is a `DropdownMenu*` item, so a click closes the menu like a built-in row.
+ */
+ menuItems?: import('react').ReactNode
}
export interface TriggerState {
@@ -255,6 +260,7 @@ export function TaxonomicFilterMenu({
triggerAccessory,
triggerVariant = 'button',
defaultOpenState,
+ menuItems,
}: TaxonomicFilterMenuProps): JSX.Element {
const {
groups,
@@ -821,6 +827,12 @@ export function TaxonomicFilterMenu({
<IconChevronRight className="ml-auto size-3.5 text-tertiary" />
</DropdownMenuItem>
)}
+ {menuItems && (
+ <>
+ <DropdownMenuSeparator />
+ {menuItems}
+ </>
+ )}
</DropdownMenuContent>
</DropdownMenu>
)
diff --git a/frontend/src/queries/nodes/DataNode/dataNodeLogic.test.ts b/frontend/src/queries/nodes/DataNode/dataNodeLogic.test.ts
index 91b0fdb9c8bc..4b6b3b3b9bea 100644
--- a/frontend/src/queries/nodes/DataNode/dataNodeLogic.test.ts
+++ b/frontend/src/queries/nodes/DataNode/dataNodeLogic.test.ts
@@ -671,6 +671,42 @@ describe('dataNodeLogic', () => {
})
})
+ it('continues an ErrorTrackingIssueEventsQuery from the cursor of the latest page', async () => {
+ const source = setLatestVersionsOnQuery({ kind: NodeKind.EventsQuery, select: ['*', 'timestamp'] })
+ logic = dataNodeLogic({
+ key: testUniqueKey,
+ query: setLatestVersionsOnQuery({
+ kind: NodeKind.ErrorTrackingIssueEventsQuery,
+ issueId: 'issue',
+ source,
+ onlyWithRecording: true,
+ }),
+ })
+ mockedQuery.mockResolvedValueOnce({
+ results: [['first']],
+ hasMore: true,
+ nextCursor: 'cursor-1',
+ })
+ logic.mount()
+ await expectLogic(logic).delay(0)
+ await expectLogic(logic).toMatchValues({
+ nextQuery: partial({ source: { ...source, before: 'cursor-1' } }),
+ })
+
+ mockedQuery.mockResolvedValueOnce({
+ results: [['second']],
+ hasMore: true,
+ nextCursor: 'cursor-2',
+ })
+ logic.actions.loadNextData()
+ await expectLogic(logic).delay(0)
+
+ await expectLogic(logic).toMatchValues({
+ response: partial({ results: [['first'], ['second']] }),
+ nextQuery: partial({ source: { ...source, before: 'cursor-2' } }),
+ })
+ })
+
it('can load next data for SessionQuery', async () => {
logic = dataNodeLogic({
key: testUniqueKey,
diff --git a/frontend/src/queries/nodes/DataNode/dataNodeLogic.ts b/frontend/src/queries/nodes/DataNode/dataNodeLogic.ts
index 12a80ece564d..422c00d491fe 100644
--- a/frontend/src/queries/nodes/DataNode/dataNodeLogic.ts
+++ b/frontend/src/queries/nodes/DataNode/dataNodeLogic.ts
@@ -47,6 +47,8 @@ import {
DataNode,
DataVisualizationNode,
ErrorTrackingQuery,
+ ErrorTrackingIssueEventsQuery,
+ ErrorTrackingIssueEventsQueryResponse,
ErrorTrackingQueryResponse,
EventsQuery,
EventsQueryResponse,
@@ -79,6 +81,7 @@ import {
isAccountsQuery,
isAccountsTableQuery,
isActorsQuery,
+ isErrorTrackingIssueEventsQuery,
isErrorTrackingQuery,
isEventsQuery,
isGroupsQuery,
@@ -1327,6 +1330,7 @@ export const dataNodeLogic = kea<dataNodeLogicType>([
isTracesQuery(props.query) ||
isSessionQuery(props.query) ||
isErrorTrackingQuery(props.query) ||
+ isErrorTrackingIssueEventsQuery(props.query) ||
isSessionsQuery(props.query) ||
isMarketingAnalyticsTableQuery(props.query) ||
isAccountsQuery(props.query) ||
@@ -1369,6 +1373,12 @@ export const dataNodeLogic = kea<dataNodeLogicType>([
...queryResponse,
results: results,
hasMore: newResponse?.hasMore,
+ ...(isErrorTrackingIssueEventsQuery(props.query)
+ ? {
+ nextCursor: (newResponse as ErrorTrackingIssueEventsQueryResponse | null)
+ ?.nextCursor,
+ }
+ : {}),
}
} else if (isPersonsNode(props.query)) {
const newResponse =
@@ -1745,6 +1755,24 @@ export const dataNodeLogic = kea<dataNodeLogicType>([
}
const effectivePaginationLimit = maxPaginationLimit ?? LOAD_MORE_ROWS_LIMIT
+ // The page's source query is nested, so the server's cursor goes onto `source.before`.
+ if (isErrorTrackingIssueEventsQuery(query)) {
+ const issueEventsResponse = response as ErrorTrackingIssueEventsQueryResponse | null
+ if (
+ responseError ||
+ dataLoading ||
+ !issueEventsResponse?.hasMore ||
+ !issueEventsResponse.nextCursor ||
+ (maxPaginationRows !== undefined && issueEventsResponse.results.length >= maxPaginationRows)
+ ) {
+ return null
+ }
+ const nextIssueEventsQuery: ErrorTrackingIssueEventsQuery = {
+ ...query,
+ source: { ...query.source, before: issueEventsResponse.nextCursor },
+ }
+ return nextIssueEventsQuery
+ }
if (
(isEventsQuery(query) ||
isActorsQuery(query) ||
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index 02afe876829b..30141a61c8ce 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -1774,6 +1774,9 @@
{
"$ref": "#/definitions/ErrorTrackingIssueCorrelationQuery"
},
+ {
+ "$ref": "#/definitions/ErrorTrackingIssueEventsQuery"
+ },
{
"$ref": "#/definitions/LogsQuery"
},
@@ -8678,6 +8681,130 @@
],
"type": "object"
},
+ "CachedErrorTrackingIssueEventsQueryResponse": {
+ "additionalProperties": false,
+ "properties": {
+ "cache_key": {
+ "type": "string"
+ },
+ "cache_target_age": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "calculation_trigger": {
+ "description": "What triggered the calculation of the query, leave empty if user/immediate",
+ "type": "string"
+ },
+ "columns": {
+ "items": {},
+ "type": "array"
+ },
+ "error": {
+ "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
+ "type": "string"
+ },
+ "hasMore": {
+ "type": "boolean"
+ },
+ "hogql": {
+ "description": "Generated HogQL query.",
+ "type": "string"
+ },
+ "is_cached": {
+ "type": "boolean"
+ },
+ "last_refresh": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "nextCursor": {
+ "description": "Where the next page starts.",
+ "type": "string"
+ },
+ "next_allowed_client_refresh": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "query_metadata": {
+ "type": "object"
+ },
+ "query_scan": {
+ "$ref": "#/definitions/QueryScanSummary",
+ "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
+ },
+ "query_status": {
+ "$ref": "#/definitions/QueryStatus",
+ "description": "Query status indicates whether next to the provided data, a query is still running."
+ },
+ "resolved_compare_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The resolved previous/comparison period date range, when comparing against another period"
+ },
+ "resolved_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The date range used for the query"
+ },
+ "results": {
+ "items": {
+ "items": {},
+ "type": "array"
+ },
+ "type": "array"
+ },
+ "timezone": {
+ "type": "string"
+ },
+ "timings": {
+ "description": "Measured timings for different parts of the query generation process",
+ "items": {
+ "$ref": "#/definitions/QueryTiming"
+ },
+ "type": "array"
+ },
+ "types": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "used_data_warehouse_sources": {
+ "description": "Connector-synced data warehouse sources referenced by this query, if any.",
+ "items": {
+ "$ref": "#/definitions/DataWarehouseSourceUsage"
+ },
+ "type": "array"
+ },
+ "warnings": {
+ "description": "Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access.",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/DataWarehouseSyncWarning"
+ },
+ {
+ "$ref": "#/definitions/AccessControlFilterWarning"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "cache_key",
+ "columns",
+ "is_cached",
+ "last_refresh",
+ "next_allowed_client_refresh",
+ "results",
+ "timezone",
+ "types"
+ ],
+ "type": "object"
+ },
"CachedErrorTrackingQueryResponse": {
"additionalProperties": false,
"properties": {
@@ -23715,6 +23842,126 @@
"required": ["results"],
"type": "object"
},
+ "ErrorTrackingIssueEventsQuery": {
+ "additionalProperties": false,
+ "description": "The exceptions of one issue, optionally only the ones with a recording.",
+ "properties": {
+ "issueId": {
+ "type": "string"
+ },
+ "kind": {
+ "const": "ErrorTrackingIssueEventsQuery",
+ "type": "string"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "onlyWithRecording": {
+ "description": "Keep only the exceptions whose session has a recording the player can open.",
+ "type": "boolean"
+ },
+ "response": {
+ "$ref": "#/definitions/ErrorTrackingIssueEventsQueryResponse"
+ },
+ "source": {
+ "$ref": "#/definitions/EventsQuery",
+ "description": "The issue's exceptions list. It must order by `timestamp DESC`, the default, so that pages continue from a cursor."
+ },
+ "tags": {
+ "$ref": "#/definitions/QueryLogTags"
+ },
+ "version": {
+ "description": "version of the node, used for schema migrations",
+ "type": "number"
+ }
+ },
+ "required": ["issueId", "kind", "source"],
+ "type": "object"
+ },
+ "ErrorTrackingIssueEventsQueryResponse": {
+ "additionalProperties": false,
+ "properties": {
+ "columns": {
+ "items": {},
+ "type": "array"
+ },
+ "error": {
+ "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
+ "type": "string"
+ },
+ "hasMore": {
+ "type": "boolean"
+ },
+ "hogql": {
+ "description": "Generated HogQL query.",
+ "type": "string"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "nextCursor": {
+ "description": "Where the next page starts.",
+ "type": "string"
+ },
+ "query_status": {
+ "$ref": "#/definitions/QueryStatus",
+ "description": "Query status indicates whether next to the provided data, a query is still running."
+ },
+ "resolved_compare_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The resolved previous/comparison period date range, when comparing against another period"
+ },
+ "resolved_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The date range used for the query"
+ },
+ "results": {
+ "items": {
+ "items": {},
+ "type": "array"
+ },
+ "type": "array"
+ },
+ "timings": {
+ "description": "Measured timings for different parts of the query generation process",
+ "items": {
+ "$ref": "#/definitions/QueryTiming"
+ },
+ "type": "array"
+ },
+ "types": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "used_data_warehouse_sources": {
+ "description": "Connector-synced data warehouse sources referenced by this query, if any.",
+ "items": {
+ "$ref": "#/definitions/DataWarehouseSourceUsage"
+ },
+ "type": "array"
+ },
+ "warnings": {
+ "description": "Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access.",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/DataWarehouseSyncWarning"
+ },
+ {
+ "$ref": "#/definitions/AccessControlFilterWarning"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": ["columns", "results", "types"],
+ "type": "object"
+ },
"ErrorTrackingIssueFilter": {
"additionalProperties": false,
"properties": {
@@ -39857,6 +40104,7 @@
"ErrorTrackingBreakdownsQuery",
"ErrorTrackingReleasesQuery",
"ErrorTrackingIssueCorrelationQuery",
+ "ErrorTrackingIssueEventsQuery",
"LogsQuery",
"LogAttributesQuery",
"LogValuesQuery",
@@ -43211,6 +43459,89 @@
"required": ["results"],
"type": "object"
},
+ {
+ "additionalProperties": false,
+ "properties": {
+ "columns": {
+ "items": {},
+ "type": "array"
+ },
+ "error": {
+ "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
+ "type": "string"
+ },
+ "hasMore": {
+ "type": "boolean"
+ },
+ "hogql": {
+ "description": "Generated HogQL query.",
+ "type": "string"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "nextCursor": {
+ "description": "Where the next page starts.",
+ "type": "string"
+ },
+ "query_status": {
+ "$ref": "#/definitions/QueryStatus",
+ "description": "Query status indicates whether next to the provided data, a query is still running."
+ },
+ "resolved_compare_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The resolved previous/comparison period date range, when comparing against another period"
+ },
+ "resolved_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The date range used for the query"
+ },
+ "results": {
+ "items": {
+ "items": {},
+ "type": "array"
+ },
+ "type": "array"
+ },
+ "timings": {
+ "description": "Measured timings for different parts of the query generation process",
+ "items": {
+ "$ref": "#/definitions/QueryTiming"
+ },
+ "type": "array"
+ },
+ "types": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "used_data_warehouse_sources": {
+ "description": "Connector-synced data warehouse sources referenced by this query, if any.",
+ "items": {
+ "$ref": "#/definitions/DataWarehouseSourceUsage"
+ },
+ "type": "array"
+ },
+ "warnings": {
+ "description": "Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access.",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/DataWarehouseSyncWarning"
+ },
+ {
+ "$ref": "#/definitions/AccessControlFilterWarning"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": ["columns", "results", "types"],
+ "type": "object"
+ },
{
"additionalProperties": false,
"properties": {
@@ -50441,6 +50772,9 @@
{
"$ref": "#/definitions/ErrorTrackingIssueCorrelationQuery"
},
+ {
+ "$ref": "#/definitions/ErrorTrackingIssueEventsQuery"
+ },
{
"$ref": "#/definitions/ExperimentQuery"
},
diff --git a/frontend/src/queries/schema/schema-general.ts b/frontend/src/queries/schema/schema-general.ts
index 0ddb60d6e8b4..19b4f87fa498 100644
--- a/frontend/src/queries/schema/schema-general.ts
+++ b/frontend/src/queries/schema/schema-general.ts
@@ -108,6 +108,7 @@ export enum NodeKind {
ErrorTrackingBreakdownsQuery = 'ErrorTrackingBreakdownsQuery',
ErrorTrackingReleasesQuery = 'ErrorTrackingReleasesQuery',
ErrorTrackingIssueCorrelationQuery = 'ErrorTrackingIssueCorrelationQuery',
+ ErrorTrackingIssueEventsQuery = 'ErrorTrackingIssueEventsQuery',
LogsQuery = 'LogsQuery',
LogAttributesQuery = 'LogAttributesQuery',
LogValuesQuery = 'LogValuesQuery',
@@ -268,6 +269,7 @@ export type AnyDataNode =
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| LogsQuery
| LogAttributesQuery
| LogValuesQuery
@@ -339,6 +341,7 @@ export type QuerySchema =
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| ExperimentQuery
| ExperimentExposureQuery
| DocumentSimilarityQuery
@@ -4611,6 +4614,26 @@ export interface ErrorTrackingIssueCorrelationQueryResponse extends AnalyticsQue
export type CachedErrorTrackingIssueCorrelationQueryResponse =
CachedQueryResponse<ErrorTrackingIssueCorrelationQueryResponse>
+/** The exceptions of one issue, optionally only the ones with a recording. */
+export interface ErrorTrackingIssueEventsQuery extends DataNode<ErrorTrackingIssueEventsQueryResponse> {
+ kind: NodeKind.ErrorTrackingIssueEventsQuery
+ issueId: string
+ /** The issue's exceptions list. It must order by `timestamp DESC`, the default, so that pages continue from a cursor. */
+ source: EventsQuery
+ /** Keep only the exceptions whose session has a recording the player can open. */
+ onlyWithRecording?: boolean
+}
+
+export interface ErrorTrackingIssueEventsQueryResponse extends AnalyticsQueryResponseBase {
+ results: any[][]
+ columns: any[]
+ types: string[]
+ hasMore?: boolean
+ /** Where the next page starts. */
+ nextCursor?: string
+}
+export type CachedErrorTrackingIssueEventsQueryResponse = CachedQueryResponse<ErrorTrackingIssueEventsQueryResponse>
+
export interface ErrorTrackingIssueFilteringToolOutput extends Pick<
ErrorTrackingQuery,
'orderBy' | 'orderDirection' | 'status' | 'searchQuery'
diff --git a/frontend/src/queries/utils.ts b/frontend/src/queries/utils.ts
index cabe18caf7bb..c83820b48390 100644
--- a/frontend/src/queries/utils.ts
+++ b/frontend/src/queries/utils.ts
@@ -25,6 +25,7 @@ import {
EndpointsUsageTableQuery,
EndpointsUsageTrendsQuery,
ErrorTrackingIssueCorrelationQuery,
+ ErrorTrackingIssueEventsQuery,
ErrorTrackingQuery,
EventsNode,
EventsQuery,
@@ -342,6 +343,12 @@ export function isErrorTrackingIssueCorrelationQuery(
return node?.kind === NodeKind.ErrorTrackingIssueCorrelationQuery
}
+export function isErrorTrackingIssueEventsQuery(
+ node?: Record<string, any> | null
+): node is ErrorTrackingIssueEventsQuery {
+ return node?.kind === NodeKind.ErrorTrackingIssueEventsQuery
+}
+
export function containsHogQLQuery(node?: Record<string, any> | null): boolean {
if (!node) {
return false
diff --git a/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx b/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
index 23c3d39677fa..e08a7dce58e6 100644
--- a/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
+++ b/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
@@ -363,6 +363,12 @@ export const QUERY_TYPES_METADATA: Record<NodeKind, InsightTypeMetadata> = {
icon: IconCorrelationAnalysis,
inMenu: false,
},
+ [NodeKind.ErrorTrackingIssueEventsQuery]: {
+ name: 'Error Tracking Issue Exceptions',
+ description: "List an issue's exceptions, optionally only the ones with a session recording.",
+ icon: IconWarning,
+ inMenu: false,
+ },
[NodeKind.ErrorTrackingSimilarIssuesQuery]: {
name: 'Error Tracking Similar Issues',
description: 'Explore issues similar to the selected one.',
diff --git a/posthog/api/query.py b/posthog/api/query.py
index e8c96044d358..2dc1cc661666 100644
--- a/posthog/api/query.py
+++ b/posthog/api/query.py
@@ -213,6 +213,7 @@ _QUERY_KIND_SCOPES: dict[str, list[str]] = {
"AccountsTableQuery": ["query:read", "account:read"],
"ErrorTrackingFingerprintProjectionQuery": ["query:read", "error_tracking:read"],
"ErrorTrackingReleasesQuery": ["query:read", "error_tracking:read"],
+ "ErrorTrackingIssueEventsQuery": ["query:read", "error_tracking:read"],
"MetricsQuery": ["metrics:read"],
"MetricsHistogramQuery": ["metrics:read"],
# Both scopes listed: this result replaces the view's default query:read
diff --git a/posthog/clickhouse/query_tagging.py b/posthog/clickhouse/query_tagging.py
index db630bbcec6a..95ba2ce3e619 100644
--- a/posthog/clickhouse/query_tagging.py
+++ b/posthog/clickhouse/query_tagging.py
@@ -235,6 +235,7 @@ def kind_fallback_tags(kind: NodeKind) -> FallbackTags | None:
| NodeKind.ERROR_TRACKING_FINGERPRINT_PROJECTION_QUERY
| NodeKind.ERROR_TRACKING_BREAKDOWNS_QUERY
| NodeKind.ERROR_TRACKING_RELEASES_QUERY
+ | NodeKind.ERROR_TRACKING_ISSUE_EVENTS_QUERY
):
return {"product": Product.ERROR_TRACKING}
case NodeKind.LOGS_QUERY | NodeKind.LOG_ATTRIBUTES_QUERY | NodeKind.LOG_VALUES_QUERY:
diff --git a/posthog/hogql_queries/query_runner.py b/posthog/hogql_queries/query_runner.py
index 47851347a8e9..fa7acfbb80cb 100644
--- a/posthog/hogql_queries/query_runner.py
+++ b/posthog/hogql_queries/query_runner.py
@@ -1215,6 +1215,18 @@ def get_query_runner(
user=user,
)
+ if kind == "ErrorTrackingIssueEventsQuery":
+ from products.error_tracking.backend.facade.queries import ErrorTrackingIssueEventsQueryRunner
+
+ return ErrorTrackingIssueEventsQueryRunner(
+ query=query,
+ team=team,
+ timings=timings,
+ modifiers=modifiers,
+ limit_context=limit_context,
+ user=user,
+ )
+
if kind == "ErrorTrackingSimilarIssuesQuery":
from products.error_tracking.backend.facade.queries import ErrorTrackingSimilarIssuesQueryRunner
diff --git a/posthog/schema.py b/posthog/schema.py
index dfe40a6b5929..33e7f9de4986 100644
--- a/posthog/schema.py
+++ b/posthog/schema.py
@@ -3008,7 +3008,7 @@ class QueryResponseAlternative7(BaseModel):
stdout: str | None = None
-class QueryResponseAlternative77(BaseModel):
+class QueryResponseAlternative78(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -7541,7 +7541,7 @@ class QueryResponseAlternative10(BaseModel):
)
-class QueryResponseAlternative19(BaseModel):
+class QueryResponseAlternative20(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -7570,7 +7570,7 @@ class QueryResponseAlternative19(BaseModel):
)
-class QueryResponseAlternative30(BaseModel):
+class QueryResponseAlternative31(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -7579,7 +7579,7 @@ class QueryResponseAlternative30(BaseModel):
status: ExternalQueryStatus
-class QueryResponseAlternative84(BaseModel):
+class QueryResponseAlternative85(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -12426,6 +12426,72 @@ class CachedErrorTrackingFingerprintProjectionQueryResponse(BaseModel):
)
+class CachedErrorTrackingIssueEventsQueryResponse(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ cache_key: str
+ cache_target_age: AwareDatetime | None = None
+ calculation_trigger: str | None = Field(
+ default=None,
+ description=("What triggered the calculation of the query, leave empty if user/immediate"),
+ )
+ columns: list
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ hasMore: bool | None = None
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ is_cached: bool
+ last_refresh: AwareDatetime
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ nextCursor: str | None = Field(default=None, description="Where the next page starts.")
+ next_allowed_client_refresh: AwareDatetime
+ query_metadata: dict[str, Any] | None = None
+ query_scan: QueryScanSummary | None = Field(
+ default=None,
+ description=("The rows and time of the run that produced these results, with its analysis once it is stored."),
+ )
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list[list]
+ timezone: str
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
+ )
+ types: list[str]
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ default=None,
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
+ ),
+ )
+
+
class CachedErrorTrackingReleasesQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -18533,6 +18599,57 @@ class ErrorTrackingIssue(BaseModel):
status: ErrorTrackingIssueStatus
+class ErrorTrackingIssueEventsQueryResponse(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ columns: list
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ hasMore: bool | None = None
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ nextCursor: str | None = Field(default=None, description="Where the next page starts.")
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list[list]
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
+ )
+ types: list[str]
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ default=None,
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
+ ),
+ )
+
+
class ErrorTrackingQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -21716,7 +21833,58 @@ class QueryResponseAlternative16(BaseModel):
)
-class QueryResponseAlternative20(BaseModel):
+class QueryResponseAlternative18(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ columns: list
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ hasMore: bool | None = None
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ nextCursor: str | None = Field(default=None, description="Where the next page starts.")
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list[list]
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
+ )
+ types: list[str]
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ default=None,
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
+ ),
+ )
+
+
+class QueryResponseAlternative21(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21766,7 +21934,7 @@ class QueryResponseAlternative20(BaseModel):
)
-class QueryResponseAlternative21(BaseModel):
+class QueryResponseAlternative22(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21835,7 +22003,7 @@ class QueryResponseAlternative21(BaseModel):
)
-class QueryResponseAlternative22(BaseModel):
+class QueryResponseAlternative23(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21907,7 +22075,7 @@ class QueryResponseAlternative22(BaseModel):
)
-class QueryResponseAlternative23(BaseModel):
+class QueryResponseAlternative24(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21960,7 +22128,7 @@ class QueryResponseAlternative23(BaseModel):
)
-class QueryResponseAlternative24(BaseModel):
+class QueryResponseAlternative25(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22012,7 +22180,7 @@ class QueryResponseAlternative24(BaseModel):
)
-class QueryResponseAlternative26(BaseModel):
+class QueryResponseAlternative27(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22063,7 +22231,7 @@ class QueryResponseAlternative26(BaseModel):
)
-class QueryResponseAlternative27(BaseModel):
+class QueryResponseAlternative28(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22135,7 +22303,7 @@ class QueryResponseAlternative27(BaseModel):
)
-class QueryResponseAlternative28(BaseModel):
+class QueryResponseAlternative29(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22201,7 +22369,7 @@ class QueryResponseAlternative28(BaseModel):
)
-class QueryResponseAlternative29(BaseModel):
+class QueryResponseAlternative30(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22251,7 +22419,7 @@ class QueryResponseAlternative29(BaseModel):
)
-class QueryResponseAlternative31(BaseModel):
+class QueryResponseAlternative32(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22300,7 +22468,7 @@ class QueryResponseAlternative31(BaseModel):
)
-class QueryResponseAlternative32(BaseModel):
+class QueryResponseAlternative33(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22365,7 +22533,7 @@ class QueryResponseAlternative32(BaseModel):
)
-class QueryResponseAlternative33(BaseModel):
+class QueryResponseAlternative34(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22425,7 +22593,7 @@ class QueryResponseAlternative33(BaseModel):
)
-class QueryResponseAlternative34(BaseModel):
+class QueryResponseAlternative35(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22495,7 +22663,7 @@ class QueryResponseAlternative34(BaseModel):
)
-class QueryResponseAlternative35(BaseModel):
+class QueryResponseAlternative36(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22559,7 +22727,7 @@ class QueryResponseAlternative35(BaseModel):
)
-class QueryResponseAlternative36(BaseModel):
+class QueryResponseAlternative37(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22629,7 +22797,7 @@ class QueryResponseAlternative36(BaseModel):
)
-class QueryResponseAlternative37(BaseModel):
+class QueryResponseAlternative38(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22680,7 +22848,7 @@ class QueryResponseAlternative37(BaseModel):
)
-class QueryResponseAlternative38(BaseModel):
+class QueryResponseAlternative39(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22733,7 +22901,7 @@ class QueryResponseAlternative38(BaseModel):
)
-class QueryResponseAlternative39(BaseModel):
+class QueryResponseAlternative40(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22786,7 +22954,7 @@ class QueryResponseAlternative39(BaseModel):
)
-class QueryResponseAlternative40(BaseModel):
+class QueryResponseAlternative41(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22839,7 +23007,7 @@ class QueryResponseAlternative40(BaseModel):
)
-class QueryResponseAlternative42(BaseModel):
+class QueryResponseAlternative43(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22908,7 +23076,7 @@ class QueryResponseAlternative42(BaseModel):
)
-class QueryResponseAlternative43(BaseModel):
+class QueryResponseAlternative44(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22980,7 +23148,7 @@ class QueryResponseAlternative43(BaseModel):
)
-class QueryResponseAlternative44(BaseModel):
+class QueryResponseAlternative45(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23033,7 +23201,7 @@ class QueryResponseAlternative44(BaseModel):
)
-class QueryResponseAlternative45(BaseModel):
+class QueryResponseAlternative46(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23085,7 +23253,7 @@ class QueryResponseAlternative45(BaseModel):
)
-class QueryResponseAlternative46(BaseModel):
+class QueryResponseAlternative47(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23157,7 +23325,7 @@ class QueryResponseAlternative46(BaseModel):
)
-class QueryResponseAlternative47(BaseModel):
+class QueryResponseAlternative48(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23223,7 +23391,7 @@ class QueryResponseAlternative47(BaseModel):
)
-class QueryResponseAlternative48(BaseModel):
+class QueryResponseAlternative49(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23275,7 +23443,7 @@ class QueryResponseAlternative48(BaseModel):
)
-class QueryResponseAlternative49(BaseModel):
+class QueryResponseAlternative50(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23327,7 +23495,7 @@ class QueryResponseAlternative49(BaseModel):
)
-class QueryResponseAlternative50(BaseModel):
+class QueryResponseAlternative51(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23392,7 +23560,7 @@ class QueryResponseAlternative50(BaseModel):
)
-class QueryResponseAlternative51(BaseModel):
+class QueryResponseAlternative52(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23452,7 +23620,7 @@ class QueryResponseAlternative51(BaseModel):
)
-class QueryResponseAlternative52(BaseModel):
+class QueryResponseAlternative53(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23503,7 +23671,7 @@ class QueryResponseAlternative52(BaseModel):
)
-class QueryResponseAlternative54(BaseModel):
+class QueryResponseAlternative55(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23554,7 +23722,7 @@ class QueryResponseAlternative54(BaseModel):
)
-class QueryResponseAlternative56(BaseModel):
+class QueryResponseAlternative57(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23606,7 +23774,7 @@ class QueryResponseAlternative56(BaseModel):
)
-class QueryResponseAlternative57(BaseModel):
+class QueryResponseAlternative58(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23663,7 +23831,7 @@ class QueryResponseAlternative57(BaseModel):
)
-class QueryResponseAlternative58(BaseModel):
+class QueryResponseAlternative59(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23718,7 +23886,7 @@ class QueryResponseAlternative58(BaseModel):
)
-class QueryResponseAlternative59(BaseModel):
+class QueryResponseAlternative60(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23767,7 +23935,7 @@ class QueryResponseAlternative59(BaseModel):
)
-class QueryResponseAlternative60(BaseModel):
+class QueryResponseAlternative61(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23821,7 +23989,7 @@ class QueryResponseAlternative60(BaseModel):
)
-class QueryResponseAlternative61(BaseModel):
+class QueryResponseAlternative62(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23868,7 +24036,7 @@ class QueryResponseAlternative61(BaseModel):
)
-class QueryResponseAlternative62(BaseModel):
+class QueryResponseAlternative63(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23915,7 +24083,7 @@ class QueryResponseAlternative62(BaseModel):
)
-class QueryResponseAlternative63(BaseModel):
+class QueryResponseAlternative64(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23962,7 +24130,7 @@ class QueryResponseAlternative63(BaseModel):
)
-class QueryResponseAlternative64(BaseModel):
+class QueryResponseAlternative65(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24009,7 +24177,7 @@ class QueryResponseAlternative64(BaseModel):
)
-class QueryResponseAlternative67(BaseModel):
+class QueryResponseAlternative68(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24061,7 +24229,7 @@ class QueryResponseAlternative67(BaseModel):
)
-class QueryResponseAlternative68(BaseModel):
+class QueryResponseAlternative69(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24113,7 +24281,7 @@ class QueryResponseAlternative68(BaseModel):
)
-class QueryResponseAlternative69(BaseModel):
+class QueryResponseAlternative70(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24161,7 +24329,7 @@ class QueryResponseAlternative69(BaseModel):
)
-class QueryResponseAlternative70(BaseModel):
+class QueryResponseAlternative71(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24208,7 +24376,7 @@ class QueryResponseAlternative70(BaseModel):
)
-class QueryResponseAlternative71(BaseModel):
+class QueryResponseAlternative72(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24255,7 +24423,7 @@ class QueryResponseAlternative71(BaseModel):
)
-class QueryResponseAlternative72(BaseModel):
+class QueryResponseAlternative73(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24308,7 +24476,7 @@ class QueryResponseAlternative72(BaseModel):
)
-class QueryResponseAlternative73(BaseModel):
+class QueryResponseAlternative74(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24359,7 +24527,7 @@ class QueryResponseAlternative73(BaseModel):
)
-class QueryResponseAlternative74(BaseModel):
+class QueryResponseAlternative75(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24410,7 +24578,7 @@ class QueryResponseAlternative74(BaseModel):
)
-class QueryResponseAlternative75(BaseModel):
+class QueryResponseAlternative76(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24461,7 +24629,7 @@ class QueryResponseAlternative75(BaseModel):
)
-class QueryResponseAlternative76(BaseModel):
+class QueryResponseAlternative77(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24512,7 +24680,7 @@ class QueryResponseAlternative76(BaseModel):
)
-class QueryResponseAlternative78(BaseModel):
+class QueryResponseAlternative79(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24562,7 +24730,7 @@ class QueryResponseAlternative78(BaseModel):
)
-class QueryResponseAlternative79(BaseModel):
+class QueryResponseAlternative80(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24612,7 +24780,7 @@ class QueryResponseAlternative79(BaseModel):
)
-class QueryResponseAlternative80(BaseModel):
+class QueryResponseAlternative81(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24659,7 +24827,7 @@ class QueryResponseAlternative80(BaseModel):
)
-class QueryResponseAlternative81(BaseModel):
+class QueryResponseAlternative82(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24710,7 +24878,7 @@ class QueryResponseAlternative81(BaseModel):
)
-class QueryResponseAlternative85(BaseModel):
+class QueryResponseAlternative86(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24757,7 +24925,7 @@ class QueryResponseAlternative85(BaseModel):
)
-class QueryResponseAlternative86(BaseModel):
+class QueryResponseAlternative87(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24804,7 +24972,7 @@ class QueryResponseAlternative86(BaseModel):
)
-class QueryResponseAlternative87(BaseModel):
+class QueryResponseAlternative88(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24861,7 +25029,7 @@ class QueryResponseAlternative87(BaseModel):
)
-class QueryResponseAlternative88(BaseModel):
+class QueryResponseAlternative89(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24916,7 +25084,7 @@ class QueryResponseAlternative88(BaseModel):
)
-class QueryResponseAlternative89(BaseModel):
+class QueryResponseAlternative90(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24963,7 +25131,7 @@ class QueryResponseAlternative89(BaseModel):
)
-class QueryResponseAlternative90(BaseModel):
+class QueryResponseAlternative91(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25015,7 +25183,7 @@ class QueryResponseAlternative90(BaseModel):
)
-class QueryResponseAlternative91(BaseModel):
+class QueryResponseAlternative92(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25062,7 +25230,7 @@ class QueryResponseAlternative91(BaseModel):
)
-class QueryResponseAlternative92(BaseModel):
+class QueryResponseAlternative93(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25109,7 +25277,7 @@ class QueryResponseAlternative92(BaseModel):
)
-class QueryResponseAlternative93(BaseModel):
+class QueryResponseAlternative94(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25156,7 +25324,7 @@ class QueryResponseAlternative93(BaseModel):
)
-class QueryResponseAlternative94(BaseModel):
+class QueryResponseAlternative95(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25203,7 +25371,7 @@ class QueryResponseAlternative94(BaseModel):
)
-class QueryResponseAlternative95(BaseModel):
+class QueryResponseAlternative96(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25254,7 +25422,7 @@ class QueryResponseAlternative95(BaseModel):
)
-class QueryResponseAlternative96(BaseModel):
+class QueryResponseAlternative97(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25301,7 +25469,7 @@ class QueryResponseAlternative96(BaseModel):
)
-class QueryResponseAlternative97(BaseModel):
+class QueryResponseAlternative98(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25348,7 +25516,7 @@ class QueryResponseAlternative97(BaseModel):
)
-class QueryResponseAlternative98(BaseModel):
+class QueryResponseAlternative99(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25395,7 +25563,7 @@ class QueryResponseAlternative98(BaseModel):
)
-class QueryResponseAlternative99(BaseModel):
+class QueryResponseAlternative100(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25442,7 +25610,7 @@ class QueryResponseAlternative99(BaseModel):
)
-class QueryResponseAlternative100(BaseModel):
+class QueryResponseAlternative101(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25492,7 +25660,7 @@ class QueryResponseAlternative100(BaseModel):
)
-class QueryResponseAlternative101(BaseModel):
+class QueryResponseAlternative102(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25539,7 +25707,7 @@ class QueryResponseAlternative101(BaseModel):
)
-class QueryResponseAlternative102(BaseModel):
+class QueryResponseAlternative103(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25601,7 +25769,7 @@ class QueryResponseAlternative102(BaseModel):
)
-class QueryResponseAlternative103(BaseModel):
+class QueryResponseAlternative104(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25648,7 +25816,7 @@ class QueryResponseAlternative103(BaseModel):
)
-class QueryResponseAlternative104(BaseModel):
+class QueryResponseAlternative105(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25695,7 +25863,7 @@ class QueryResponseAlternative104(BaseModel):
)
-class QueryResponseAlternative105(BaseModel):
+class QueryResponseAlternative106(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25742,7 +25910,7 @@ class QueryResponseAlternative105(BaseModel):
)
-class QueryResponseAlternative106(BaseModel):
+class QueryResponseAlternative107(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25789,7 +25957,7 @@ class QueryResponseAlternative106(BaseModel):
)
-class QueryResponseAlternative107(BaseModel):
+class QueryResponseAlternative108(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25836,7 +26004,7 @@ class QueryResponseAlternative107(BaseModel):
)
-class QueryResponseAlternative108(BaseModel):
+class QueryResponseAlternative109(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25883,7 +26051,7 @@ class QueryResponseAlternative108(BaseModel):
)
-class QueryResponseAlternative109(BaseModel):
+class QueryResponseAlternative110(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25930,7 +26098,7 @@ class QueryResponseAlternative109(BaseModel):
)
-class QueryResponseAlternative110(BaseModel):
+class QueryResponseAlternative111(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25978,7 +26146,7 @@ class QueryResponseAlternative110(BaseModel):
)
-class QueryResponseAlternative111(BaseModel):
+class QueryResponseAlternative112(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -29997,7 +30165,7 @@ class QueryResponseAlternative17(BaseModel):
)
-class QueryResponseAlternative41(BaseModel):
+class QueryResponseAlternative42(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -30054,7 +30222,7 @@ class QueryResponseAlternative41(BaseModel):
)
-class QueryResponseAlternative53(BaseModel):
+class QueryResponseAlternative54(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -32367,7 +32535,7 @@ class PathsV2ActorsQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class QueryResponseAlternative66(BaseModel):
+class QueryResponseAlternative67(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -32687,7 +32855,7 @@ class FunnelsQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class QueryResponseAlternative18(BaseModel):
+class QueryResponseAlternative19(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -32750,7 +32918,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative22
| QueryResponseAlternative23
| QueryResponseAlternative24
- | QueryResponseAlternative26
+ | QueryResponseAlternative25
| QueryResponseAlternative27
| QueryResponseAlternative28
| QueryResponseAlternative29
@@ -32762,8 +32930,8 @@ class QueryResponseAlternative(
| QueryResponseAlternative35
| QueryResponseAlternative36
| QueryResponseAlternative37
- | Any
| QueryResponseAlternative38
+ | Any
| QueryResponseAlternative39
| QueryResponseAlternative40
| QueryResponseAlternative41
@@ -32780,7 +32948,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative52
| QueryResponseAlternative53
| QueryResponseAlternative54
- | QueryResponseAlternative56
+ | QueryResponseAlternative55
| QueryResponseAlternative57
| QueryResponseAlternative58
| QueryResponseAlternative59
@@ -32789,7 +32957,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative62
| QueryResponseAlternative63
| QueryResponseAlternative64
- | QueryResponseAlternative66
+ | QueryResponseAlternative65
| QueryResponseAlternative67
| QueryResponseAlternative68
| QueryResponseAlternative69
@@ -32805,7 +32973,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative79
| QueryResponseAlternative80
| QueryResponseAlternative81
- | QueryResponseAlternative84
+ | QueryResponseAlternative82
| QueryResponseAlternative85
| QueryResponseAlternative86
| QueryResponseAlternative87
@@ -32833,6 +33001,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative109
| QueryResponseAlternative110
| QueryResponseAlternative111
+ | QueryResponseAlternative112
]
):
root: (
@@ -32861,7 +33030,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative22
| QueryResponseAlternative23
| QueryResponseAlternative24
- | QueryResponseAlternative26
+ | QueryResponseAlternative25
| QueryResponseAlternative27
| QueryResponseAlternative28
| QueryResponseAlternative29
@@ -32873,8 +33042,8 @@ class QueryResponseAlternative(
| QueryResponseAlternative35
| QueryResponseAlternative36
| QueryResponseAlternative37
- | Any
| QueryResponseAlternative38
+ | Any
| QueryResponseAlternative39
| QueryResponseAlternative40
| QueryResponseAlternative41
@@ -32891,7 +33060,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative52
| QueryResponseAlternative53
| QueryResponseAlternative54
- | QueryResponseAlternative56
+ | QueryResponseAlternative55
| QueryResponseAlternative57
| QueryResponseAlternative58
| QueryResponseAlternative59
@@ -32900,7 +33069,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative62
| QueryResponseAlternative63
| QueryResponseAlternative64
- | QueryResponseAlternative66
+ | QueryResponseAlternative65
| QueryResponseAlternative67
| QueryResponseAlternative68
| QueryResponseAlternative69
@@ -32916,7 +33085,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative79
| QueryResponseAlternative80
| QueryResponseAlternative81
- | QueryResponseAlternative84
+ | QueryResponseAlternative82
| QueryResponseAlternative85
| QueryResponseAlternative86
| QueryResponseAlternative87
@@ -32944,6 +33113,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative109
| QueryResponseAlternative110
| QueryResponseAlternative111
+ | QueryResponseAlternative112
)
@@ -33608,6 +33778,29 @@ class HasPropertiesNode(RootModel[EventsNode | EventsQuery | PersonsNode]):
root: EventsNode | EventsQuery | PersonsNode
+class ErrorTrackingIssueEventsQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ issueId: str
+ kind: Literal["ErrorTrackingIssueEventsQuery"] = "ErrorTrackingIssueEventsQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ onlyWithRecording: bool | None = Field(
+ default=None,
+ description=("Keep only the exceptions whose session has a recording the player can open."),
+ )
+ response: ErrorTrackingIssueEventsQueryResponse | None = None
+ source: EventsQuery = Field(
+ ...,
+ description=(
+ "The issue's exceptions list. It must order by `timestamp DESC`, the"
+ " default, so that pages continue from a cursor."
+ ),
+ )
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
class DataTableNode(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -33839,6 +34032,7 @@ class HogQLAutocomplete(BaseModel):
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| LogsQuery
| LogAttributesQuery
| LogValuesQuery
@@ -33974,6 +34168,7 @@ class HogQLMetadata(BaseModel):
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| LogsQuery
| LogAttributesQuery
| LogValuesQuery
@@ -34085,6 +34280,7 @@ class MaxInsightContext(BaseModel):
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| ExperimentQuery
| ExperimentExposureQuery
| DocumentSimilarityQuery
@@ -34228,6 +34424,7 @@ class QueryRequest(BaseModel):
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| ExperimentQuery
| ExperimentExposureQuery
| DocumentSimilarityQuery
@@ -34364,6 +34561,7 @@ class QuerySchemaRoot(
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| ExperimentQuery
| ExperimentExposureQuery
| DocumentSimilarityQuery
@@ -34470,6 +34668,7 @@ class QuerySchemaRoot(
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| ExperimentQuery
| ExperimentExposureQuery
| DocumentSimilarityQuery
@@ -34581,6 +34780,7 @@ class QueryUpgradeRequest(BaseModel):
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| ExperimentQuery
| ExperimentExposureQuery
| DocumentSimilarityQuery
@@ -34692,6 +34892,7 @@ class QueryUpgradeResponse(BaseModel):
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| ExperimentQuery
| ExperimentExposureQuery
| DocumentSimilarityQuery
@@ -34848,6 +35049,7 @@ class VisualizationArtifactContent(BaseModel):
| ErrorTrackingBreakdownsQuery
| ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
+ | ErrorTrackingIssueEventsQuery
| ExperimentQuery
| ExperimentExposureQuery
| DocumentSimilarityQuery
diff --git a/posthog/schema_enums.py b/posthog/schema_enums.py
index 793131eb5865..ce4d50b6868a 100644
--- a/posthog/schema_enums.py
+++ b/posthog/schema_enums.py
@@ -2376,6 +2376,7 @@ class NodeKind(StrEnum):
ERROR_TRACKING_BREAKDOWNS_QUERY = "ErrorTrackingBreakdownsQuery"
ERROR_TRACKING_RELEASES_QUERY = "ErrorTrackingReleasesQuery"
ERROR_TRACKING_ISSUE_CORRELATION_QUERY = "ErrorTrackingIssueCorrelationQuery"
+ ERROR_TRACKING_ISSUE_EVENTS_QUERY = "ErrorTrackingIssueEventsQuery"
LOGS_QUERY = "LogsQuery"
LOG_ATTRIBUTES_QUERY = "LogAttributesQuery"
LOG_VALUES_QUERY = "LogValuesQuery"
diff --git a/products/error_tracking/backend/facade/queries.py b/products/error_tracking/backend/facade/queries.py
index 91ad408a12bb..6f6204a1228e 100644
--- a/products/error_tracking/backend/facade/queries.py
+++ b/products/error_tracking/backend/facade/queries.py
@@ -23,6 +23,9 @@ from products.error_tracking.backend.hogql_queries.error_tracking_fingerprint_pr
from products.error_tracking.backend.hogql_queries.error_tracking_issue_correlation_query_runner import (
ErrorTrackingIssueCorrelationQueryRunner,
)
+from products.error_tracking.backend.hogql_queries.error_tracking_issue_events_query_runner import (
+ ErrorTrackingIssueEventsQueryRunner,
+)
from products.error_tracking.backend.hogql_queries.error_tracking_query_runner import ErrorTrackingQueryRunner
from products.error_tracking.backend.hogql_queries.error_tracking_releases_query_runner import (
ErrorTrackingReleasesQueryRunner,
@@ -35,6 +38,7 @@ __all__ = [
"ErrorTrackingBreakdownsQueryRunner",
"ErrorTrackingFingerprintProjectionQueryRunner",
"ErrorTrackingIssueCorrelationQueryRunner",
+ "ErrorTrackingIssueEventsQueryRunner",
"ErrorTrackingQueryRunner",
"ErrorTrackingReleasesQueryRunner",
"ErrorTrackingSimilarIssuesQueryRunner",
diff --git a/products/error_tracking/backend/hogql_queries/error_tracking_issue_events_query_runner.py b/products/error_tracking/backend/hogql_queries/error_tracking_issue_events_query_runner.py
new file mode 100644
index 000000000000..cb84c677ac8b
--- /dev/null
+++ b/products/error_tracking/backend/hogql_queries/error_tracking_issue_events_query_runner.py
@@ -0,0 +1,108 @@
+from datetime import UTC, datetime, timedelta
+
+from posthog.schema import (
+ CachedErrorTrackingIssueEventsQueryResponse,
+ ErrorTrackingIssueEventsQuery,
+ ErrorTrackingIssueEventsQueryResponse,
+ EventsQuery,
+)
+
+from posthog.hogql import ast
+from posthog.hogql.escape_sql import escape_hogql_string
+
+from posthog.hogql_queries.events_query_runner import EventsQueryRunner, split_pagination_cursor
+from posthog.hogql_queries.query_runner import AnalyticsQueryRunner
+from posthog.models import Team
+from posthog.utils import relative_date_parse
+
+from products.error_tracking.backend.hogql_queries.access import ErrorTrackingQueryRunnerAccessMixin
+from products.error_tracking.backend.hogql_queries.error_tracking_query_runner_utils import validate_uuid_param
+
+
+def _datetime_literal(value: datetime) -> str:
+ # Microseconds matter: a page cursor can fall between two exceptions in the same second.
+ return f"toDateTime64({escape_hogql_string(value.astimezone(UTC).strftime('%Y-%m-%d %H:%M:%S.%f'))}, 6, 'UTC')"
+
+
+def recording_condition(issue_id: str, source: EventsQuery, team: Team) -> str:
+ """A HogQL condition that keeps the exceptions whose session has a recording the player can open.
+
+ It applies the checks of `SessionReplayEvents.batch_exists`, which the Recording tab uses: a deleted
+ recording or one past its retention does not count. It also needs snapshot data, which rows such as
+ deletion markers do not carry. The subquery reads only the sessions of the issue's exceptions in the
+ list's time range, so its set stays small for large teams.
+ """
+ now = datetime.now(UTC)
+ # The same defaults EventsQueryRunner applies to an unset range. `before` can be a page cursor.
+ after = source.after or "-24h"
+ before = split_pagination_cursor(source.before)[0] if source.before else None
+ date_to = relative_date_parse(before, team.timezone_info) if before else now + timedelta(seconds=5)
+ date_from = None if after == "all" else relative_date_parse(split_pagination_cursor(after)[0], team.timezone_info)
+ # A recording can start up to a day before the exception it contains.
+ recording_from = f"AND min_first_timestamp >= {_datetime_literal(date_from)} - INTERVAL 1 DAY" if date_from else ""
+ events_from = f"AND timestamp >= {_datetime_literal(date_from)}" if date_from else ""
+ # Recording rows are read up to now, not up to the end of the page. A deletion writes its own row, stamped
+ # with the time of the deletion, and a recording can start after the exception in the same session.
+ return f"""$session_id IN (
+ SELECT session_id FROM raw_session_replay_events
+ WHERE min_first_timestamp <= {_datetime_literal(now)} {recording_from}
+ AND session_id IN (
+ SELECT DISTINCT $session_id FROM events
+ WHERE event = '$exception'
+ AND issue_id = toUUID({escape_hogql_string(issue_id)})
+ AND notEmpty($session_id)
+ AND timestamp <= {_datetime_literal(date_to)} {events_from}
+ )
+ GROUP BY session_id
+ HAVING max(is_deleted) = 0
+ AND sum(size) > 0
+ AND dateTrunc('day', min(min_first_timestamp)) + toIntervalDay(coalesce(max(retention_period_days), 30)) >= {_datetime_literal(now)}
+ )"""
+
+
+class ErrorTrackingIssueEventsQueryRunner(
+ ErrorTrackingQueryRunnerAccessMixin, AnalyticsQueryRunner[ErrorTrackingIssueEventsQueryResponse]
+):
+ query: ErrorTrackingIssueEventsQuery
+ cached_response: CachedErrorTrackingIssueEventsQueryResponse
+
+ def to_query(self) -> ast.SelectQuery | ast.SelectSetQuery:
+ return self._events_runner().to_query()
+
+ def _events_runner(self) -> EventsQueryRunner:
+ issue_id = validate_uuid_param(self.query.issueId, "issueId")
+ source = self.query.source.model_copy(deep=True)
+ if self.query.onlyWithRecording:
+ source.where = [*(source.where or []), recording_condition(issue_id, source, self.team)]
+ return EventsQueryRunner(
+ query=source,
+ team=self.team,
+ timings=self.timings,
+ modifiers=self.modifiers,
+ limit_context=self.limit_context,
+ user=self.user,
+ )
+
+ def _calculate(self) -> ErrorTrackingIssueEventsQueryResponse:
+ response = self._events_runner().calculate()
+ if self.query.onlyWithRecording and "*" in self.query.source.select:
+ self._mark_recordings(response.results, self.query.source.select.index("*"))
+ return ErrorTrackingIssueEventsQueryResponse(
+ results=response.results,
+ columns=response.columns or [],
+ types=response.types or [],
+ hasMore=response.hasMore,
+ nextCursor=response.nextCursor,
+ hogql=response.hogql,
+ timings=self.timings.to_list(),
+ modifiers=response.modifiers or self.modifiers,
+ )
+
+ @staticmethod
+ def _mark_recordings(results: list[list], star_index: int) -> None:
+ # Every row passed the recording condition. The events runner's own `$has_recording` check reads replay
+ # rows only up to the page's cursor, so it misses a recording that starts later in the session.
+ for row in results:
+ event = row[star_index]
+ if isinstance(event, dict) and isinstance(event.get("properties"), dict):
+ event["properties"]["$has_recording"] = True
diff --git a/products/error_tracking/backend/hogql_queries/test/test_error_tracking_issue_events_query_runner.py b/products/error_tracking/backend/hogql_queries/test/test_error_tracking_issue_events_query_runner.py
new file mode 100644
index 000000000000..6ea7e360cff8
--- /dev/null
+++ b/products/error_tracking/backend/hogql_queries/test/test_error_tracking_issue_events_query_runner.py
@@ -0,0 +1,131 @@
+from datetime import UTC, datetime, timedelta
+
+import time_machine
+from posthog.test.base import APIBaseTest, ClickhouseTestMixin, _create_event, flush_persons_and_events
+
+from posthog.schema import ErrorTrackingIssueEventsQuery, EventsQuery
+
+from posthog.models.utils import uuid7
+from posthog.session_recordings.queries.test.session_replay_sql import produce_replay_summary
+
+from products.error_tracking.backend.hogql_queries.error_tracking_issue_events_query_runner import (
+ ErrorTrackingIssueEventsQueryRunner,
+)
+from products.error_tracking.backend.models import (
+ ErrorTrackingIssue,
+ ErrorTrackingIssueFingerprintV2,
+ sync_issues_to_clickhouse,
+)
+
+NOW = datetime(2026, 10, 20, 12, 0, tzinfo=UTC)
+ISSUE_ID = "01936e7f-d7ff-7314-b2d4-7627981e34f0"
+FINGERPRINT = "linked_data_fingerprint"
+
+
+@time_machine.travel(NOW, tick=False)
+class TestErrorTrackingIssueEventsQueryRunner(ClickhouseTestMixin, APIBaseTest):
+ def setUp(self) -> None:
+ super().setUp()
+ issue = ErrorTrackingIssue.objects.create(id=ISSUE_ID, team=self.team)
+ ErrorTrackingIssueFingerprintV2.objects.create(team=self.team, issue=issue, fingerprint=FINGERPRINT)
+ sync_issues_to_clickhouse(issue_ids=[issue.id], team_id=self.team.pk)
+
+ def _exception(self, ago: timedelta, *, session_id: str) -> str:
+ event_uuid = str(uuid7())
+ _create_event(
+ event_uuid=event_uuid,
+ distinct_id="user",
+ event="$exception",
+ team=self.team,
+ timestamp=NOW - ago,
+ properties={
+ "$exception_issue_id": ISSUE_ID,
+ "$exception_fingerprint": FINGERPRINT,
+ "$session_id": session_id,
+ },
+ )
+ return event_uuid
+
+ def _recording(self, session_id: str, hours_ago: float) -> None:
+ produce_replay_summary(
+ team_id=self.team.pk,
+ session_id=session_id,
+ distinct_id="user",
+ first_timestamp=NOW - timedelta(hours=hours_ago, minutes=5),
+ last_timestamp=NOW - timedelta(hours=hours_ago) + timedelta(minutes=5),
+ size=1024,
+ ensure_analytics_event_in_session=False,
+ )
+
+ def _metadata_without_snapshots(self, session_id: str, hours_ago: float) -> None:
+ produce_replay_summary(
+ team_id=self.team.pk,
+ session_id=session_id,
+ distinct_id="user",
+ first_timestamp=NOW - timedelta(hours=hours_ago),
+ last_timestamp=NOW - timedelta(hours=hours_ago),
+ size=0,
+ ensure_analytics_event_in_session=False,
+ )
+
+ def _deletion_marker(self, session_id: str) -> None:
+ produce_replay_summary(
+ team_id=self.team.pk,
+ session_id=session_id,
+ distinct_id="user",
+ first_timestamp=NOW,
+ last_timestamp=NOW,
+ first_url=None,
+ size=0,
+ is_deleted=True,
+ ensure_analytics_event_in_session=False,
+ )
+
+ def test_recording_filter_pages_through_exceptions_with_a_playable_recording(self) -> None:
+ sessions = [str(uuid7()) for _ in range(7)]
+ # The first two exceptions fall in the same second, so the first page's cursor sits between them.
+ moments = [
+ timedelta(hours=1, milliseconds=-700),
+ timedelta(hours=1, milliseconds=-300),
+ *(timedelta(hours=hours) for hours in range(2, 7)),
+ ]
+ exceptions = [self._exception(ago, session_id=session) for ago, session in zip(moments, sessions)]
+ self._recording(sessions[0], hours_ago=1)
+ self._recording(sessions[1], hours_ago=1)
+ # A deletion writes its own row, stamped later than the recording, like a production deletion.
+ self._recording(sessions[2], hours_ago=2)
+ self._deletion_marker(sessions[2])
+ self._recording(sessions[4], hours_ago=4)
+ # The recording starts after the exception, later in the same session.
+ self._recording(sessions[5], hours_ago=2.5)
+ self._metadata_without_snapshots(sessions[6], hours_ago=6)
+ flush_persons_and_events()
+
+ seen: list[str] = []
+ recording_flags: list[bool] = []
+ source = EventsQuery(
+ kind="EventsQuery",
+ event="$exception",
+ select=["*", "timestamp"],
+ where=[f"issue_id = toUUID('{ISSUE_ID}')"],
+ after="-7d",
+ limit=1,
+ )
+ for _ in range(8):
+ response = ErrorTrackingIssueEventsQueryRunner(
+ team=self.team,
+ query=ErrorTrackingIssueEventsQuery(
+ kind="ErrorTrackingIssueEventsQuery",
+ issueId=ISSUE_ID,
+ source=source,
+ onlyWithRecording=True,
+ ),
+ ).calculate()
+ seen += [str(row[0]["uuid"]) for row in response.results]
+ recording_flags += [row[0]["properties"]["$has_recording"] for row in response.results]
+ if not response.hasMore:
+ break
+ source = source.model_copy(update={"before": response.nextCursor})
+
+ assert seen == [exceptions[0], exceptions[1], exceptions[4], exceptions[5]]
+ assert recording_flags == [True] * len(seen)
diff --git a/products/error_tracking/frontend/ErrorTracking.stories.tsx b/products/error_tracking/frontend/ErrorTracking.stories.tsx
index a06356c7ca02..d8e64db3f9d6 100644
--- a/products/error_tracking/frontend/ErrorTracking.stories.tsx
+++ b/products/error_tracking/frontend/ErrorTracking.stories.tsx
@@ -394,6 +394,15 @@ const STORY_ISSUE: ErrorTrackingRelationalIssue = {
},
],
}
+
+type StoryQueryBody<Q> = { query?: Q & { source?: Q } }
+
+// The issue page wraps its exceptions list in an ErrorTrackingIssueEventsQuery, and that query
+// answers in the shape of its source EventsQuery, so the mocks answer for the source.
+function storyQuery<Q extends { kind?: string }>(body: StoryQueryBody<Q>): Q | undefined {
+ return body.query?.kind === NodeKind.ErrorTrackingIssueEventsQuery ? body.query.source : body.query
+}
+
const STORY_SUMMARY_RESPONSE: ErrorTrackingQueryResponse = {
...errorTrackingQueryResponse,
results: [
@@ -517,32 +526,32 @@ const meta: Meta = {
},
post: {
'/api/environments/:team_id/query/:kind/': async ({ request }) => {
- const body = (await request.json()) as {
- query?: {
+ const query = storyQuery(
+ (await request.json()) as StoryQueryBody<{
kind?: string
issueId?: string
select?: string[]
where?: string[]
maxReleases?: number
query?: string
- }
- }
- if (body.query?.kind === NodeKind.ErrorTrackingBreakdownsQuery) {
+ }>
+ )
+ if (query?.kind === NodeKind.ErrorTrackingBreakdownsQuery) {
return [200, STORY_BREAKDOWNS_RESPONSE]
}
- if (body.query?.kind === NodeKind.EventsQuery) {
- if (body.query.where?.some((w: string) => w.includes('$exception_fingerprint'))) {
+ if (query?.kind === NodeKind.EventsQuery) {
+ if (query.where?.some((w: string) => w.includes('$exception_fingerprint'))) {
return [200, STORY_FINGERPRINT_EVENT_RESPONSE]
}
- return body.query.select?.includes('properties.$exception_list')
+ return query.select?.includes('properties.$exception_list')
? [200, STORY_TIMELINE_RESPONSE]
: [200, STORY_EVENTS_RESPONSE]
}
- if (body.query?.kind === NodeKind.ErrorTrackingReleasesQuery) {
- return [200, storyReleasesResponse(body.query.maxReleases ?? 5)]
+ if (query?.kind === NodeKind.ErrorTrackingReleasesQuery) {
+ return [200, storyReleasesResponse(query.maxReleases ?? 5)]
}
- if (body.query?.kind === NodeKind.HogQLQuery) {
- return body.query.query?.includes('$exception_fingerprint')
+ if (query?.kind === NodeKind.HogQLQuery) {
+ return query.query?.includes('$exception_fingerprint')
? [200, STORY_FINGERPRINT_SAMPLES_RESPONSE]
: [200, { results: [] }]
}
@@ -1066,18 +1075,18 @@ export const GroupPageBreakdownLoading: Story = {
mswDecorator({
post: {
'/api/environments/:team_id/query/:kind/': async ({ request }) => {
- const body = (await request.json()) as { query?: { kind?: string; select?: string[] } }
- if (body.query?.kind === NodeKind.ErrorTrackingBreakdownsQuery) {
+ const query = storyQuery(
+ (await request.json()) as StoryQueryBody<{ kind?: string; select?: string[] }>
+ )
+ if (query?.kind === NodeKind.ErrorTrackingBreakdownsQuery) {
return new Promise<never>(() => {})
}
- if (body.query?.kind === NodeKind.EventsQuery) {
- return body.query.select?.includes('properties.$exception_list')
+ if (query?.kind === NodeKind.EventsQuery) {
+ return query.select?.includes('properties.$exception_list')
? [200, STORY_TIMELINE_RESPONSE]
: [200, STORY_EVENTS_RESPONSE]
}
- return body.query?.kind === NodeKind.HogQLQuery
- ? [200, { results: [] }]
- : [200, STORY_SUMMARY_RESPONSE]
+ return query?.kind === NodeKind.HogQLQuery ? [200, { results: [] }] : [200, STORY_SUMMARY_RESPONSE]
},
},
}),
@@ -1103,26 +1112,25 @@ export const GroupPageBreakdownModalLoading: Story = {
mswDecorator({
post: {
'/api/environments/:team_id/query/:kind/': async ({ request }) => {
- const body = (await request.json()) as {
- query?: { kind?: string; select?: string[]; maxValuesPerProperty?: number }
- }
- if (
- body.query?.kind === NodeKind.ErrorTrackingBreakdownsQuery &&
- body.query.maxValuesPerProperty === 100
- ) {
+ const query = storyQuery(
+ (await request.json()) as StoryQueryBody<{
+ kind?: string
+ select?: string[]
+ maxValuesPerProperty?: number
+ }>
+ )
+ if (query?.kind === NodeKind.ErrorTrackingBreakdownsQuery && query.maxValuesPerProperty === 100) {
return new Promise<never>(() => {})
}
- if (body.query?.kind === NodeKind.ErrorTrackingBreakdownsQuery) {
+ if (query?.kind === NodeKind.ErrorTrackingBreakdownsQuery) {
return [200, STORY_BREAKDOWNS_RESPONSE]
}
- if (body.query?.kind === NodeKind.EventsQuery) {
- return body.query.select?.includes('properties.$exception_list')
+ if (query?.kind === NodeKind.EventsQuery) {
+ return query.select?.includes('properties.$exception_list')
? [200, STORY_TIMELINE_RESPONSE]
: [200, STORY_EVENTS_RESPONSE]
}
- return body.query?.kind === NodeKind.HogQLQuery
- ? [200, { results: [] }]
- : [200, STORY_SUMMARY_RESPONSE]
+ return query?.kind === NodeKind.HogQLQuery ? [200, { results: [] }] : [200, STORY_SUMMARY_RESPONSE]
},
},
}),
@@ -1139,18 +1147,18 @@ export const GroupPageEmptyWithFilter: Story = {
mswDecorator({
post: {
'/api/environments/:team_id/query/:kind/': async ({ request }) => {
- const body = (await request.json()) as { query?: { kind?: string; select?: string[] } }
- if (body.query?.kind === NodeKind.ErrorTrackingBreakdownsQuery) {
+ const query = storyQuery(
+ (await request.json()) as StoryQueryBody<{ kind?: string; select?: string[] }>
+ )
+ if (query?.kind === NodeKind.ErrorTrackingBreakdownsQuery) {
return [200, STORY_BREAKDOWNS_RESPONSE]
}
- if (body.query?.kind === NodeKind.EventsQuery) {
- return body.query.select?.includes('properties.$exception_list')
+ if (query?.kind === NodeKind.EventsQuery) {
+ return query.select?.includes('properties.$exception_list')
? [200, STORY_TIMELINE_RESPONSE]
: [200, STORY_EMPTY_EVENTS_RESPONSE]
}
- return body.query?.kind === NodeKind.HogQLQuery
- ? [200, { results: [] }]
- : [200, STORY_SUMMARY_RESPONSE]
+ return query?.kind === NodeKind.HogQLQuery ? [200, { results: [] }] : [200, STORY_SUMMARY_RESPONSE]
},
},
}),
diff --git a/products/error_tracking/frontend/components/EventsTable/eventsSourceLogic.ts b/products/error_tracking/frontend/components/EventsTable/eventsSourceLogic.ts
index f717b5bd77cd..fcbe914f21d4 100644
--- a/products/error_tracking/frontend/components/EventsTable/eventsSourceLogic.ts
+++ b/products/error_tracking/frontend/components/EventsTable/eventsSourceLogic.ts
@@ -1,12 +1,12 @@
import { ErrorEventType } from 'lib/components/Errors/types'
-import { EventsQuery } from '~/queries/schema/schema-general'
+import { ErrorTrackingIssueEventsQuery, EventsQuery } from '~/queries/schema/schema-general'
import { createDataSourceLogic } from '../DataSourceTable'
export interface EventsSourceProps {
queryKey: string
- query: EventsQuery
+ query: EventsQuery | ErrorTrackingIssueEventsQuery
}
type EventsQueryPerson = ErrorEventType['person'] & { distinct_id: string }
diff --git a/products/error_tracking/frontend/components/ExceptionCard/ExceptionCard.tsx b/products/error_tracking/frontend/components/ExceptionCard/ExceptionCard.tsx
index 69a4e3260330..3b9198808746 100644
--- a/products/error_tracking/frontend/components/ExceptionCard/ExceptionCard.tsx
+++ b/products/error_tracking/frontend/components/ExceptionCard/ExceptionCard.tsx
@@ -37,6 +37,7 @@ export interface ExceptionCardProps extends ExceptionCardContentProps {
event?: ErrorEventType
loading: boolean
logicKey?: string
+ onShowOnlyWithRecording?: () => void
}
export function ExceptionCard({
@@ -45,9 +46,13 @@ export function ExceptionCard({
event,
loading,
logicKey,
+ onShowOnlyWithRecording,
...contentProps
}: ExceptionCardProps): JSX.Element {
- const cardLogicProps = useMemo(() => ({ issueId, loading, logicKey }), [issueId, loading, logicKey])
+ const cardLogicProps = useMemo(
+ () => ({ issueId, loading, logicKey, onShowOnlyWithRecording }),
+ [issueId, loading, logicKey, onShowOnlyWithRecording]
+ )
const eventProps = useMemo<ErrorPropertiesLogicProps>(
() => ({
diff --git a/products/error_tracking/frontend/components/ExceptionCard/Tabs/RecordingEmptyState.tsx b/products/error_tracking/frontend/components/ExceptionCard/Tabs/RecordingEmptyState.tsx
new file mode 100644
index 000000000000..11a2cd34d75c
--- /dev/null
+++ b/products/error_tracking/frontend/components/ExceptionCard/Tabs/RecordingEmptyState.tsx
@@ -0,0 +1,42 @@
+import { useValues } from 'kea'
+import type { ReactNode } from 'react'
+
+import { IconFilter } from '@posthog/icons'
+
+import { Button, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle } from 'lib/ui/quill'
+
+import { exceptionCardLogic } from '../exceptionCardLogic'
+
+export interface RecordingEmptyStateProps {
+ title: string
+ description?: ReactNode
+ children?: ReactNode
+}
+
+export function RecordingEmptyState({ title, description, children }: RecordingEmptyStateProps): JSX.Element {
+ const { onShowOnlyWithRecording } = useValues(exceptionCardLogic)
+
+ return (
+ <Empty className="h-full p-4">
+ <EmptyHeader>
+ <EmptyTitle>{title}</EmptyTitle>
+ {description && <EmptyDescription>{description}</EmptyDescription>}
+ </EmptyHeader>
+ {(onShowOnlyWithRecording || children) && (
+ <EmptyContent>
+ {onShowOnlyWithRecording && (
+ <Button
+ variant="primary"
+ onClick={onShowOnlyWithRecording}
+ data-attr="error-tracking-show-only-with-recording"
+ >
+ <IconFilter />
+ Show only exceptions with a recording
+ </Button>
+ )}
+ {children}
+ </EmptyContent>
+ )}
+ </Empty>
+ )
+}
diff --git a/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/SessionRecordingTab.test.tsx b/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/SessionRecordingTab.test.tsx
index 67fc8bd955f6..cf160c204c45 100644
--- a/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/SessionRecordingTab.test.tsx
+++ b/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/SessionRecordingTab.test.tsx
@@ -6,6 +6,7 @@ import { ErrorEventProperties } from 'lib/components/Errors/types'
import { initKeaTests } from '~/test/init'
+import { exceptionCardLogic } from '../../exceptionCardLogic'
import { SessionRecordingContent } from './SessionRecordingTab'
const SESSION_ID = '0199aaaa-bbbb-cccc-dddd-eeeeffff0000'
@@ -55,8 +56,10 @@ function renderTab(recordingStatus?: string): HTMLElement {
const { container } = render(
<Provider>
- <BindLogic logic={errorPropertiesLogic} props={{ id: 'exception-uuid', properties }}>
- <SessionRecordingContent />
+ <BindLogic logic={exceptionCardLogic} props={{ issueId: 'issue-id', loading: false }}>
+ <BindLogic logic={errorPropertiesLogic} props={{ id: 'exception-uuid', properties }}>
+ <SessionRecordingContent />
+ </BindLogic>
</BindLogic>
</Provider>
)
@@ -84,7 +87,7 @@ describe('SessionRecordingContent', () => {
mockRecordingExists.value = false
const container = renderTab(undefined)
- expect(container.textContent).toContain('No recording for this event')
+ expect(container.textContent).toContain('No recording for this exception')
expect(playerIn(container)).toBeNull()
})
diff --git a/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/SessionRecordingTab.tsx b/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/SessionRecordingTab.tsx
index db7d8f3e8e2f..32d2a358b96c 100644
--- a/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/SessionRecordingTab.tsx
+++ b/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/SessionRecordingTab.tsx
@@ -13,6 +13,7 @@ import { SessionRecordingPlayer } from 'scenes/session-recordings/player/Session
import { SessionRecordingPlayerMode } from 'scenes/session-recordings/player/sessionRecordingPlayerLogic'
import { urls } from 'scenes/urls'
+import { RecordingEmptyState } from '../RecordingEmptyState'
import { SubHeader } from '../SubHeader'
import { sessionTabLogic } from './sessionTabLogic'
@@ -42,10 +43,12 @@ export function SessionRecordingContent(): JSX.Element {
getRecordingExists(sessionId) === false ? recordingDisabledReason(sessionId, recordingStatus, false) : null
if (noRecordingReason) {
+ // A plain-string reason only says "no recording", which the title already says.
return (
- <div className="flex h-full w-full items-center justify-center p-4">
- <p className="max-w-md text-center text-secondary">{noRecordingReason}</p>
- </div>
+ <RecordingEmptyState
+ title="No recording for this exception"
+ description={typeof noRecordingReason === 'string' ? undefined : noRecordingReason}
+ />
)
}
diff --git a/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/index.tsx b/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/index.tsx
index 0f3366d8fd90..084f157152f6 100644
--- a/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/index.tsx
+++ b/products/error_tracking/frontend/components/ExceptionCard/Tabs/SessionTab/index.tsx
@@ -2,6 +2,7 @@ import { BindLogic, useActions, useValues } from 'kea'
import { useCallback, useEffect, useMemo, useRef } from 'react'
import { P, match } from 'ts-pattern'
+import { IconExternal } from '@posthog/icons'
import { LemonBanner, Link } from '@posthog/lemon-ui'
import { EmptyMessage } from 'lib/components/EmptyMessage/EmptyMessage'
@@ -23,9 +24,11 @@ import {
import { ConsoleLogLoader, consoleLogRenderer } from 'lib/components/SessionTimeline/timeline/items/logs'
import { pageRenderer } from 'lib/components/SessionTimeline/timeline/items/page'
import { Dayjs, dayjs } from 'lib/dayjs'
-import { TabsContent } from 'lib/ui/quill'
+import { LinkPrimitive } from 'lib/lemon-ui/Link'
+import { Button, TabsContent } from 'lib/ui/quill'
import { exceptionCardLogic } from '../../exceptionCardLogic'
+import { RecordingEmptyState } from '../RecordingEmptyState'
import { TabSpinner } from '../TabSpinner'
import { SessionRecordingTab } from './SessionRecordingTab'
import { sessionTabLogic } from './sessionTabLogic'
@@ -56,7 +59,7 @@ export function SessionTab({ timestamp, eventMarkerColor }: SessionTabProps): JS
<NoSessionStepsView timestamp={timestamp} eventMarkerColor={eventMarkerColor} />
</TabsContent>
<TabsContent value="recording" className="min-h-0 min-w-0 flex-1 overflow-hidden">
- <NoSessionIdFound />
+ <NoSessionRecording />
</TabsContent>
</>
))
@@ -175,6 +178,28 @@ export function NoSessionIdFound(): JSX.Element {
)
}
+function NoSessionRecording(): JSX.Element {
+ return (
+ <RecordingEmptyState
+ title="No session found"
+ description="There is no $session_id associated with this exception, so it has no recording. If it was captured from a server SDK, you can forward the session ID."
+ >
+ <Button
+ variant="outline"
+ render={
+ <LinkPrimitive
+ to="https://posthog.com/docs/data/sessions#server-sdks-and-sessions"
+ target="_blank"
+ />
+ }
+ >
+ Learn how to forward session IDs
+ <IconExternal />
+ </Button>
+ </RecordingEmptyState>
+ )
+}
+
function buildSessionCollector({
sessionId,
timestamp,
diff --git a/products/error_tracking/frontend/components/ExceptionCard/exceptionCardLogic.ts b/products/error_tracking/frontend/components/ExceptionCard/exceptionCardLogic.ts
index 7ecdc1afd666..34b8ac421b50 100644
--- a/products/error_tracking/frontend/components/ExceptionCard/exceptionCardLogic.ts
+++ b/products/error_tracking/frontend/components/ExceptionCard/exceptionCardLogic.ts
@@ -6,6 +6,7 @@ export type ExceptionCardLogicProps = {
issueId: string
loading: boolean
logicKey?: string
+ onShowOnlyWithRecording?: () => void
}
export type ExceptionCardTab = 'stack_trace' | 'properties' | 'timeline' | 'recording' | 'logs'
@@ -19,6 +20,7 @@ export interface exceptionCardLogicValues {
issueId: string
loading: boolean
logsScope: ExceptionLogsScope
+ onShowOnlyWithRecording: (() => void) | null
propertyNameFilter: string
showJSONProperties: boolean
}
@@ -52,6 +54,7 @@ export interface exceptionCardLogicMeta {
__keaTypeGenInternalSelectorTypes: {
issueId: (issueId: string) => string
loading: (loading: boolean) => boolean
+ onShowOnlyWithRecording: (arg: any) => (() => void) | null
}
}
@@ -123,6 +126,10 @@ export const exceptionCardLogic = kea<exceptionCardLogicType>([
selectors({
issueId: [(_, p) => [p.issueId], (issueId: string) => issueId],
loading: [(_, p) => [p.loading], (loading: boolean) => loading],
+ onShowOnlyWithRecording: [
+ () => [(_, props) => props.onShowOnlyWithRecording],
+ (onShowOnlyWithRecording: (() => void) | undefined): (() => void) | null => onShowOnlyWithRecording ?? null,
+ ],
}),
listeners(({ props }) => ({
diff --git a/products/error_tracking/frontend/components/IssueFilters/FilterGroup.tsx b/products/error_tracking/frontend/components/IssueFilters/FilterGroup.tsx
index 15363b9d6966..e2beebe16557 100644
--- a/products/error_tracking/frontend/components/IssueFilters/FilterGroup.tsx
+++ b/products/error_tracking/frontend/components/IssueFilters/FilterGroup.tsx
@@ -26,12 +26,17 @@ export const FilterGroup = ({
activeFiltersInline = false,
iconOnly = false,
renderControls,
+ menuItems,
+ leadingFilters,
}: {
taxonomicGroupTypes?: TaxonomicFilterGroupType[]
excludeFilterTypes?: PropertyFilterType[]
activeFiltersInline?: boolean
iconOnly?: boolean
renderControls?: (controls: { filterPicker: ReactNode; activeFilters: ReactNode }) => ReactNode
+ // Extra rows for the filter button's menu. With them, the button opens that menu, not the search.
+ menuItems?: ReactNode
+ leadingFilters?: ReactNode
} = {}): JSX.Element => {
const { filterAddedFromPreview, filterGroup } = useValues(issueFiltersLogic)
const { setFilterGroup } = useActions(issueFiltersLogic)
@@ -55,6 +60,8 @@ export const FilterGroup = ({
iconOnly={iconOnly}
filterAddedFromPreview={filterAddedFromPreview}
renderControls={renderControls}
+ menuItems={menuItems}
+ leadingFilters={leadingFilters}
/>
</UniversalFilters>
)
@@ -67,6 +74,8 @@ const FilterControls = ({
iconOnly = false,
filterAddedFromPreview = 0,
renderControls,
+ menuItems,
+ leadingFilters,
}: {
taxonomicGroupTypes?: TaxonomicFilterGroupType[]
nested?: boolean
@@ -74,6 +83,8 @@ const FilterControls = ({
iconOnly?: boolean
filterAddedFromPreview?: number
renderControls?: (controls: { filterPicker: ReactNode; activeFilters: ReactNode }) => ReactNode
+ menuItems?: ReactNode
+ leadingFilters?: ReactNode
}): JSX.Element => {
const filterRow = (
<div className={`relative flex shrink-0 items-center ${activeFiltersInline ? 'gap-2' : 'gap-1'}`}>
@@ -98,13 +109,18 @@ const FilterControls = ({
{renderControls({
filterPicker: (
<div className="relative flex shrink-0 items-center">
- <FilterPicker taxonomicGroupTypes={taxonomicGroupTypes} iconOnly={iconOnly} />
+ <FilterPicker
+ taxonomicGroupTypes={taxonomicGroupTypes}
+ iconOnly={iconOnly}
+ menuItems={menuItems}
+ />
</div>
),
activeFilters: (
<UniversalFilterGroup
taxonomicGroupTypes={taxonomicGroupTypes}
filterAddedFromPreview={filterAddedFromPreview}
+ leadingFilters={leadingFilters}
prefix={<FilterOperatorToggle />}
className="flex w-full flex-wrap items-center gap-1"
dataAttr="error-tracking-active-filters"
@@ -149,9 +165,11 @@ const FilterControls = ({
const FilterPicker = ({
taxonomicGroupTypes,
iconOnly,
+ menuItems,
}: {
taxonomicGroupTypes: TaxonomicFilterGroupType[]
iconOnly: boolean
+ menuItems?: ReactNode
}): JSX.Element => {
const { addGroupFilter } = useActions(universalFiltersLogic)
const [openRequest, setOpenRequest] = useState(0)
@@ -169,6 +187,7 @@ const FilterPicker = ({
key={openRequest}
defaultOpen={openRequest > 0}
defaultOpenState="combobox"
+ menuItems={menuItems}
trigger={({ open }) => (
<Button
variant={iconOnly ? 'default' : 'outline'}
@@ -177,7 +196,7 @@ const FilterPicker = ({
title={iconOnly ? 'Add filter' : undefined}
aria-expanded={open}
onClick={() => {
- if (!open) {
+ if (!open && !menuItems) {
setOpenRequest((request) => request + 1)
}
}}
@@ -239,12 +258,14 @@ const UniversalFilterGroup = ({
className,
dataAttr,
prefix,
+ leadingFilters,
filterAddedFromPreview = 0,
}: {
taxonomicGroupTypes?: TaxonomicFilterGroupType[]
className?: string
dataAttr?: string
prefix?: ReactNode
+ leadingFilters?: ReactNode
filterAddedFromPreview?: number
}): JSX.Element | null => {
const { filterGroup } = useValues(universalFiltersLogic)
@@ -253,7 +274,7 @@ const UniversalFilterGroup = ({
useOnMountEffect(() => setAllowInitiallyOpen(true))
- if (filterGroup.values.length === 0) {
+ if (filterGroup.values.length === 0 && !leadingFilters) {
return null
}
@@ -280,11 +301,13 @@ const UniversalFilterGroup = ({
return className ? (
<div className={className} data-attr={dataAttr}>
+ {leadingFilters}
{prefix}
{values}
</div>
) : (
<>
+ {leadingFilters}
{prefix}
{values}
</>
diff --git a/products/error_tracking/frontend/queries.ts b/products/error_tracking/frontend/queries.ts
index 79dca95a3081..e8df84cc87d9 100644
--- a/products/error_tracking/frontend/queries.ts
+++ b/products/error_tracking/frontend/queries.ts
@@ -6,6 +6,7 @@ import {
DocumentSimilarityQuery,
ErrorTrackingBreakdownsQuery,
ErrorTrackingIssueCorrelationQuery,
+ ErrorTrackingIssueEventsQuery,
ErrorTrackingPendingFingerprintIssueStateUpdate,
ErrorTrackingQuery,
ErrorTrackingQueryIssueSeverity,
@@ -232,6 +233,24 @@ export const errorTrackingIssueEventsQuery = ({
return eventsQuery
}
+export const errorTrackingIssueEventsListQuery = ({
+ issueId,
+ source,
+ onlyWithRecording,
+}: {
+ issueId: string
+ source: EventsQuery
+ onlyWithRecording: boolean
+}): ErrorTrackingIssueEventsQuery => {
+ return setLatestVersionsOnQuery<ErrorTrackingIssueEventsQuery>({
+ kind: NodeKind.ErrorTrackingIssueEventsQuery,
+ issueId,
+ source,
+ onlyWithRecording,
+ tags: { productKey: ProductKey.ERROR_TRACKING },
+ })
+}
+
export const errorTrackingIssueCorrelationQuery = ({
events,
}: {
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene.tsx
index cf20c1399d3e..99bee93c4cfd 100644
--- a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene.tsx
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene.tsx
@@ -59,6 +59,7 @@ import { ErrorTrackingIssueSceneLogicProps, errorTrackingIssueSceneLogic } from
import { IssueEmailMenu } from './IssueEmailMenu'
import { IssueEmailMenuItems } from './IssueEmailMenuItems'
import { IssueEventsPanel } from './IssueEventsPanel'
+import { issueRecordingFilterLogic } from './issueRecordingFilterLogic'
import { IssueSummary } from './IssueSummary'
import { LinkedReports } from './LinkedReports'
import { ErrorTrackingIssueScenePanel } from './ScenePanel'
@@ -329,10 +330,12 @@ const RightHandColumn = ({
isOpen: boolean
onClose: () => void
}): JSX.Element | null => {
- const { issue, issueLoading, selectedEvent, initialEvent, initialEventLoading, summary } =
+ const { issue, issueId, issueLoading, selectedEvent, initialEvent, initialEventLoading, summary } =
useValues(errorTrackingIssueSceneLogic)
+ const { setOnlyWithRecording } = useActions(issueRecordingFilterLogic({ issueId }))
const tagRenderer = useErrorTagRenderer()
const detailEvent = selectedEvent ?? initialEvent
+ const showOnlyWithRecording = useCallback(() => setOnlyWithRecording(true), [setOnlyWithRecording])
if (isMobile && !isOpen) {
return null
@@ -361,6 +364,7 @@ const RightHandColumn = ({
issueName={issue?.name ?? null}
loading={issueLoading || initialEventLoading}
event={detailEvent ?? undefined}
+ onShowOnlyWithRecording={showOnlyWithRecording}
eventMarkerColor={
detailEvent
? getEventMarkerColor(detailEvent.uuid, summary?.first_event_uuid, summary?.last_event_uuid)
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsPanel.test.ts b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsPanel.test.ts
index 837662101740..d6c52f405d39 100644
--- a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsPanel.test.ts
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsPanel.test.ts
@@ -40,6 +40,21 @@ describe('getListSelection', () => {
expect(getListSelection(events, linkedEvent, true, false)).toBe(linkedEvent)
})
+ it.each([
+ { hasRecording: true, expected: 'kept' },
+ { hasRecording: undefined, expected: 'replaced' },
+ ])(
+ 'with the recording filter on, a selection missing from the loaded page is $expected when its recording flag is $hasRecording',
+ ({ hasRecording, expected }) => {
+ const linkedEvent = {
+ uuid: 'missing',
+ properties: { $has_recording: hasRecording } as ErrorEventType['properties'],
+ } as ErrorEventType
+ const selection = getListSelection(events, linkedEvent, true, false, true)
+ expect(selection).toBe(expected === 'kept' ? linkedEvent : events[0])
+ }
+ )
+
it('closes the selection for an empty list', () => {
expect(getListSelection([], events[0], false, false)).toBeNull()
})
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsPanel.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsPanel.tsx
index 8cd6c673e3b0..04ab9f20b0e7 100644
--- a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsPanel.tsx
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsPanel.tsx
@@ -12,6 +12,7 @@ import { issueFiltersLogic } from '../../components/IssueFilters/issueFiltersLog
import { errorTrackingIssueSceneLogic } from './errorTrackingIssueSceneLogic'
import { IssueEventsEmptyState } from './IssueEventsEmptyState'
import { IssueEventsToolbar } from './IssueEventsToolbar'
+import { issueRecordingFilterLogic } from './issueRecordingFilterLogic'
export function IssueEventsPanel(): JSX.Element {
const { issueFingerprintsLoading } = useValues(errorTrackingIssueSceneLogic)
@@ -28,33 +29,45 @@ export function IssueEventsPanel(): JSX.Element {
}
function LoadedIssueEventsPanel(): JSX.Element {
- const { eventsQuery, eventsQueryKey, selectedEvent, summary } = useValues(errorTrackingIssueSceneLogic)
+ const { issueEventsQuery, issueEventsQueryKey, selectedEvent, summary, issueId } =
+ useValues(errorTrackingIssueSceneLogic)
const { selectEvent, setMobileDetailOpen } = useActions(errorTrackingIssueSceneLogic)
+ const { onlyWithRecording } = useValues(issueRecordingFilterLogic({ issueId }))
+ const { setOnlyWithRecording } = useActions(issueRecordingFilterLogic({ issueId }))
const { dateRange } = useValues(issueFiltersLogic)
const { hasActiveFilters } = useValues(issueFilterPreviewLogic)
const { clearNonDateFilters } = useActions(issueFilterPreviewLogic)
const { setDateRange } = useActions(issueFiltersLogic)
- const dataSource = eventsSourceLogic({ query: eventsQuery, queryKey: eventsQueryKey })
+ const dataSource = eventsSourceLogic({ query: issueEventsQuery, queryKey: issueEventsQueryKey })
const { items, itemsLoading, canLoadNextData } = useValues(dataSource)
const { loadData, loadNextData } = useActions(dataSource)
const nextDateRange = getNextErrorTrackingDateRange(dateRange)
- const previousEventsQueryKey = useRef(eventsQueryKey)
+ const previousEventsQueryKey = useRef(issueEventsQueryKey)
useEffect(() => {
if (itemsLoading) {
return
}
- const queryChanged = previousEventsQueryKey.current !== eventsQueryKey
- previousEventsQueryKey.current = eventsQueryKey
- const nextSelection = getListSelection(items, selectedEvent, canLoadNextData, queryChanged)
+ const queryChanged = previousEventsQueryKey.current !== issueEventsQueryKey
+ previousEventsQueryKey.current = issueEventsQueryKey
+ const nextSelection = getListSelection(items, selectedEvent, canLoadNextData, queryChanged, onlyWithRecording)
if (nextSelection !== selectedEvent) {
selectEvent(nextSelection)
}
if (!nextSelection) {
setMobileDetailOpen(false)
}
- }, [items, itemsLoading, canLoadNextData, eventsQueryKey, selectEvent, selectedEvent, setMobileDetailOpen])
+ }, [
+ items,
+ itemsLoading,
+ canLoadNextData,
+ issueEventsQueryKey,
+ onlyWithRecording,
+ selectEvent,
+ selectedEvent,
+ setMobileDetailOpen,
+ ])
return (
<IssueEventsLayout
@@ -69,14 +82,17 @@ function LoadedIssueEventsPanel(): JSX.Element {
{!itemsLoading && items.length === 0 ? (
<IssueEventsEmptyState
nextDateRangeLabel={nextDateRange?.label ?? null}
- hasActiveFilters={hasActiveFilters}
+ hasActiveFilters={hasActiveFilters || onlyWithRecording}
loading={itemsLoading}
onIncreaseDateRange={() => {
if (nextDateRange) {
setDateRange(nextDateRange.dateRange)
}
}}
- onClearFilters={clearNonDateFilters}
+ onClearFilters={() => {
+ clearNonDateFilters()
+ setOnlyWithRecording(false)
+ }}
/>
) : (
<EventsTable
@@ -98,15 +114,19 @@ export function getListSelection(
items: ErrorEventType[],
selectedEvent: ErrorEventType | null,
canLoadMore: boolean,
- queryChanged: boolean
+ queryChanged: boolean,
+ onlyWithRecording: boolean = false
): ErrorEventType | null {
const matchedEvent = selectedEvent ? items.find((item) => item.uuid === selectedEvent.uuid) : undefined
if (matchedEvent) {
return matchedEvent
}
// A later page of the same query may hold a timestamp-linked exception older than the first
- // 100 rows. A new query cannot make that claim, so filter changes reconcile immediately.
- if (selectedEvent && canLoadMore && !queryChanged) {
+ // 100 rows. A new query cannot make that claim, so filter changes reconcile immediately. With the
+ // recording filter on, only an exception known to have a recording can be on a later page: the
+ // exception the URL links to loads without the filter, so it can have none.
+ const canBeOnLaterPage = !onlyWithRecording || selectedEvent?.properties.$has_recording === true
+ if (selectedEvent && canLoadMore && !queryChanged && canBeOnLaterPage) {
return selectedEvent
}
return items[0] ?? null
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsToolbar.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsToolbar.tsx
index 3a12df68d29b..40518d207d18 100644
--- a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsToolbar.tsx
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/IssueEventsToolbar.tsx
@@ -1,8 +1,14 @@
+import { useValues } from 'kea'
+
import { IconRefresh } from '@posthog/icons'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'lib/ui/quill'
import { ErrorFilters } from '../../components/IssueFilters'
+import { errorTrackingIssueSceneLogic } from './errorTrackingIssueSceneLogic'
+import { issueRecordingFilterLogic } from './issueRecordingFilterLogic'
+import { RecordingFilterMenuItem } from './RecordingFilterMenuItem'
+import { RecordingFilterPill } from './RecordingFilterPill'
interface IssueEventsToolbarProps {
loading: boolean
@@ -10,11 +16,16 @@ interface IssueEventsToolbarProps {
}
export function IssueEventsToolbar({ loading, onReload }: IssueEventsToolbarProps): JSX.Element {
+ const { issueId } = useValues(errorTrackingIssueSceneLogic)
+ const { onlyWithRecording } = useValues(issueRecordingFilterLogic({ issueId }))
+
return (
<div className="sticky top-0 z-10 shrink-0 border-y border-primary bg-surface-primary">
<ErrorFilters.Root className="w-full">
<ErrorFilters.FilterGroup
iconOnly
+ menuItems={<RecordingFilterMenuItem />}
+ leadingFilters={onlyWithRecording ? <RecordingFilterPill /> : undefined}
renderControls={({ filterPicker, activeFilters }) => (
<div className="flex w-full flex-col gap-2 p-2">
<div className="flex w-full min-w-0 flex-wrap items-center gap-2">
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/RecordingFilterMenuItem.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/RecordingFilterMenuItem.tsx
new file mode 100644
index 000000000000..faeab2232549
--- /dev/null
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/RecordingFilterMenuItem.tsx
@@ -0,0 +1,30 @@
+import { useActions, useValues } from 'kea'
+
+import { IconRewindPlay } from '@posthog/icons'
+
+import { DropdownMenuCheckboxItem, DropdownMenuGroup, DropdownMenuLabel } from 'lib/ui/quill'
+
+import { errorTrackingIssueSceneLogic } from './errorTrackingIssueSceneLogic'
+import { issueRecordingFilterLogic } from './issueRecordingFilterLogic'
+import { RECORDING_FILTER_LABEL } from './recordingFilterLabel'
+
+export function RecordingFilterMenuItem(): JSX.Element {
+ const { issueId } = useValues(errorTrackingIssueSceneLogic)
+ const { onlyWithRecording } = useValues(issueRecordingFilterLogic({ issueId }))
+ const { setOnlyWithRecording } = useActions(issueRecordingFilterLogic({ issueId }))
+
+ return (
+ <DropdownMenuGroup>
+ <DropdownMenuLabel>Session replay</DropdownMenuLabel>
+ <DropdownMenuCheckboxItem
+ checked={onlyWithRecording}
+ closeOnClick
+ onCheckedChange={(checked) => setOnlyWithRecording(checked)}
+ data-attr="error-tracking-issue-filter-with-recording"
+ >
+ <IconRewindPlay />
+ {RECORDING_FILTER_LABEL}
+ </DropdownMenuCheckboxItem>
+ </DropdownMenuGroup>
+ )
+}
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/RecordingFilterPill.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/RecordingFilterPill.tsx
new file mode 100644
index 000000000000..90af6c1e98e5
--- /dev/null
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/RecordingFilterPill.tsx
@@ -0,0 +1,37 @@
+import { useActions, useValues } from 'kea'
+
+import { IconRewindPlay, IconX } from '@posthog/icons'
+import { LemonButton } from '@posthog/lemon-ui'
+
+import 'lib/components/UniversalFilters/UniversalFilterButton.scss'
+
+import { errorTrackingIssueSceneLogic } from './errorTrackingIssueSceneLogic'
+import { issueRecordingFilterLogic } from './issueRecordingFilterLogic'
+import { RECORDING_FILTER_LABEL } from './recordingFilterLabel'
+
+// Uses the property filter pill's markup and styles, so it sits in the same row as those pills and looks like one.
+export function RecordingFilterPill(): JSX.Element {
+ const { issueId } = useValues(errorTrackingIssueSceneLogic)
+ const { setOnlyWithRecording } = useActions(issueRecordingFilterLogic({ issueId }))
+
+ return (
+ <div
+ className="UniversalFilterButton UniversalFilterButton--closeable inline-flex items-center"
+ data-attr="error-tracking-issue-filter-pill-recording"
+ >
+ <div className="flex flex-1 items-center gap-1 truncate">
+ <IconRewindPlay />
+ <span className="UniversalFilterButton-content flex flex-1 items-center truncate">
+ {RECORDING_FILTER_LABEL}
+ </span>
+ </div>
+ <LemonButton
+ size="xsmall"
+ icon={<IconX className="h-3 w-3" />}
+ onClick={() => setOnlyWithRecording(false)}
+ aria-label={`Remove filter: ${RECORDING_FILTER_LABEL}`}
+ className="p-0.5"
+ />
+ </div>
+ )
+}
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.test.ts b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.test.ts
index 2537e32c77b9..80ed3645be28 100644
--- a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.test.ts
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.test.ts
@@ -1,14 +1,18 @@
+import { router } from 'kea-router'
import { expectLogic } from 'kea-test-utils'
import { ErrorTrackingFingerprint } from 'lib/components/Errors/types'
import type { ErrorEventType } from 'lib/components/Errors/types'
+import { urls } from 'scenes/urls'
import { useMocks } from '~/mocks/jest'
import type { ErrorTrackingRelationalIssue } from '~/queries/schema/schema-general'
import { initKeaTests } from '~/test/init'
+import { eventsSourceLogic } from '../../components/EventsTable/eventsSourceLogic'
import { issueActionsLogic } from '../../components/IssueActions/issueActionsLogic'
import { errorTrackingIssueSceneLogic, toErrorTrackingIssueSummary } from './errorTrackingIssueSceneLogic'
+import { issueRecordingFilterLogic } from './issueRecordingFilterLogic'
import { linkedReportsLogic } from './linkedReportsLogic'
const VALID_ISSUE_ID = '01890a1b-2c3d-4e4f-8a9b-0c1d2e3f4a5b'
@@ -147,19 +151,42 @@ describe('errorTrackingIssueSceneLogic', () => {
expect(loadIssue).toHaveBeenCalledTimes(1)
})
- it('reloads only the issue that was split and does not reload merged issues', async () => {
+ it('reloads only the issue that was split, with both of its exception lists', async () => {
+ // The issue page lists the issue events query, and the notebook widget lists the plain events query.
+ const lists = [
+ eventsSourceLogic({ query: logic.values.issueEventsQuery, queryKey: logic.values.issueEventsQueryKey }),
+ eventsSourceLogic({ query: logic.values.eventsQuery, queryKey: logic.values.eventsQueryKey }),
+ ]
+ lists.forEach((list) => list.mount())
await expectLogic(logic).toFinishAllListeners()
const loadIssue = jest.spyOn(logic.actions, 'loadIssue')
+ const listReloads = lists.map((list) => jest.spyOn(list.actions, 'loadData'))
logic.actions.splitIssueSuccess('another-issue', [])
issueActionsLogic().actions.mutationSuccess('mergeIssues', VALID_ISSUE_ID)
await expectLogic(logic).toFinishAllListeners()
expect(loadIssue).not.toHaveBeenCalled()
+ listReloads.forEach((listReload) => expect(listReload).not.toHaveBeenCalled())
await expectLogic(logic, () => {
logic.actions.splitIssueSuccess(VALID_ISSUE_ID, [])
}).toDispatchActions(['loadIssue'])
expect(loadIssue).toHaveBeenCalledTimes(1)
+ listReloads.forEach((listReload) => expect(listReload).toHaveBeenCalledWith('force_blocking'))
+ lists.forEach((list) => list.unmount())
+ })
+
+ it('keeps the recording filter in the URL', () => {
+ const recordingFilter = issueRecordingFilterLogic({ issueId: VALID_ISSUE_ID })
+
+ router.actions.push(urls.errorTrackingIssue(VALID_ISSUE_ID), { onlyWithRecording: true })
+ expect(recordingFilter.values.onlyWithRecording).toBe(true)
+
+ recordingFilter.actions.setOnlyWithRecording(false)
+ expect(router.values.searchParams).not.toHaveProperty('onlyWithRecording')
+
+ recordingFilter.actions.setOnlyWithRecording(true)
+ expect(router.values.searchParams).toMatchObject({ onlyWithRecording: true })
})
it('keeps stable first and last event IDs in the issue summary', () => {
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.ts b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.ts
index 88349c489e6f..a41b7c270a5c 100644
--- a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.ts
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.ts
@@ -49,6 +49,7 @@ import type {
ErrorTrackingExternalReference,
ErrorTrackingIssueAssignee,
ErrorTrackingIssueCohort,
+ ErrorTrackingIssueEventsQuery,
EventsQuery,
} from '../../../../../frontend/src/queries/schema/schema-general'
import type { ErrorTrackingQueryIssueSeverity } from '../../../../../frontend/src/queries/schema/schema-general'
@@ -63,9 +64,14 @@ import {
} from '../../components/IssueFilters/issueFiltersLogic'
import { errorTrackingExternalReferencesLinkIssueCreate } from '../../generated/api'
import { ErrorTrackingExternalReferenceLinkApiExternalContext } from '../../generated/api.schemas'
-import { errorTrackingIssueEventsQuery, errorTrackingIssueQuery } from '../../queries'
-import { syncSearchParams } from '../../utils'
+import {
+ errorTrackingIssueEventsQuery,
+ errorTrackingIssueEventsListQuery,
+ errorTrackingIssueQuery,
+} from '../../queries'
+import { syncSearchParams, updateSearchParams } from '../../utils'
import { ERROR_TRACKING_DETAILS_RESOLUTION, dateRangeToIsoBounds } from '../../utils'
+import { issueRecordingFilterLogic } from './issueRecordingFilterLogic'
import { linkedReportsLogic } from './linkedReportsLogic'
import { issueAffectedBroadcastLogic } from './ScenePanel/issueAffectedBroadcastLogic'
@@ -83,6 +89,7 @@ export interface errorTrackingIssueSceneLogicValues {
filterGroup: UniversalFiltersGroup // issueFiltersLogic
filterTestAccounts: boolean // issueFiltersLogic
searchQuery: string // issueFiltersLogic
+ onlyWithRecording: boolean // issueRecordingFilterLogic
linkedReports: SignalReportApi[] // linkedReportsLogic
linkedReportsLoading: boolean // linkedReportsLogic
aggregations: ErrorTrackingIssueAggregations | undefined
@@ -94,6 +101,8 @@ export interface errorTrackingIssueSceneLogicValues {
initialEventLoading: boolean
initialEventTimestamp: string | null
issue: ErrorTrackingRelationalIssue | null
+ issueEventsQuery: ErrorTrackingIssueEventsQuery
+ issueEventsQueryKey: string
issueFingerprints: ErrorTrackingFingerprint[]
issueFingerprintsLoading: boolean
issueId: string
@@ -185,6 +194,9 @@ export interface errorTrackingIssueSceneLogicActions {
setSearchQuery: (searchQuery: string) => {
searchQuery: string
} // issueFiltersLogic
+ setOnlyWithRecording: (onlyWithRecording: boolean) => {
+ onlyWithRecording: boolean
+ } // issueRecordingFilterLogic
loadLinkedReports: () => any // linkedReportsLogic
createExternalReference: (
integrationId: IntegrationType['id'],
@@ -644,6 +656,12 @@ export interface errorTrackingIssueSceneLogicMeta {
dateRange: DateRange
) => EventsQuery
eventsQueryKey: (eventsQuery: EventsQuery) => string
+ issueEventsQuery: (
+ issueId: string,
+ eventsQuery: EventsQuery,
+ onlyWithRecording: boolean
+ ) => ErrorTrackingIssueEventsQuery
+ issueEventsQueryKey: (issueEventsQuery: ErrorTrackingIssueEventsQuery) => string
maxContext: (issue: ErrorTrackingRelationalIssue | null, issueId: string) => MaxContextInput[]
}
}
@@ -673,6 +691,8 @@ export const errorTrackingIssueSceneLogic = kea<errorTrackingIssueSceneLogicType
['dateRange', 'filterTestAccounts', 'filterGroup', 'searchQuery'],
linkedReportsLogic({ issueId: props.id }),
['linkedReports', 'linkedReportsLoading'],
+ issueRecordingFilterLogic({ issueId: props.id }),
+ ['onlyWithRecording'],
],
actions: [
issueFiltersLogic({ logicKey: ERROR_TRACKING_ISSUE_SCENE_LOGIC_KEY }),
@@ -689,6 +709,8 @@ export const errorTrackingIssueSceneLogic = kea<errorTrackingIssueSceneLogicType
],
linkedReportsLogic({ issueId: props.id }),
['loadLinkedReports'],
+ issueRecordingFilterLogic({ issueId: props.id }),
+ ['setOnlyWithRecording'],
],
})),
@@ -1021,6 +1043,18 @@ export const errorTrackingIssueSceneLogic = kea<errorTrackingIssueSceneLogicType
(eventsQuery: import('~/queries/schema').EventsQuery): string => JSON.stringify(eventsQuery),
],
+ issueEventsQuery: [
+ (s) => [s.issueId, s.eventsQuery, s.onlyWithRecording],
+ (issueId: string, eventsQuery: EventsQuery, onlyWithRecording: boolean): ErrorTrackingIssueEventsQuery =>
+ errorTrackingIssueEventsListQuery({ issueId, source: eventsQuery, onlyWithRecording }),
+ { resultEqualityCheck: objectsEqual },
+ ],
+
+ issueEventsQueryKey: [
+ (s) => [s.issueEventsQuery],
+ (issueEventsQuery: ErrorTrackingIssueEventsQuery): string => JSON.stringify(issueEventsQuery),
+ ],
+
maxContext: [
(s) => [s.issue, s.issueId],
(issue: ErrorTrackingRelationalIssue | null, issueId: string): MaxContextInput[] => {
@@ -1083,9 +1117,13 @@ export const errorTrackingIssueSceneLogic = kea<errorTrackingIssueSceneLogicType
actions.loadSummary()
actions.loadIssueFingerprints()
actions.loadSpikeEvents()
- eventsSourceLogic
- .findMounted({ query: values.eventsQuery, queryKey: values.eventsQueryKey })
- ?.actions.loadData('force_blocking')
+ // The issue page lists the issue events query, and the notebook widget lists the plain events query.
+ for (const source of [
+ { query: values.issueEventsQuery, queryKey: values.issueEventsQueryKey },
+ { query: values.eventsQuery, queryKey: values.eventsQueryKey },
+ ]) {
+ eventsSourceLogic.findMounted(source)?.actions.loadData('force_blocking')
+ }
}
},
selectEvent: ({ event }) => {
@@ -1138,6 +1176,10 @@ export const errorTrackingIssueSceneLogic = kea<errorTrackingIssueSceneLogicType
actions.setListDateRange(params.dateRange ?? DEFAULT_DATE_RANGE)
}
triggerFilterActions(params, values, actions)
+ const onlyWithRecording = [true, 'true'].includes(params.onlyWithRecording)
+ if (onlyWithRecording !== values.onlyWithRecording) {
+ actions.setOnlyWithRecording(onlyWithRecording)
+ }
},
}
}),
@@ -1146,6 +1188,7 @@ export const errorTrackingIssueSceneLogic = kea<errorTrackingIssueSceneLogicType
const buildURL = (): ReturnType<typeof syncSearchParams> =>
syncSearchParams(router, (params: Params) => {
updateFilterSearchParams(params, values)
+ updateSearchParams(params, 'onlyWithRecording', values.onlyWithRecording, false)
delete params.tab
return params
})
@@ -1155,6 +1198,7 @@ export const errorTrackingIssueSceneLogic = kea<errorTrackingIssueSceneLogicType
setFilterGroup: buildURL,
setSearchQuery: buildURL,
setFilterTestAccounts: buildURL,
+ setOnlyWithRecording: buildURL,
}
}),
])
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/issueRecordingFilterLogic.ts b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/issueRecordingFilterLogic.ts
new file mode 100644
index 000000000000..5cd143fdaf09
--- /dev/null
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/issueRecordingFilterLogic.ts
@@ -0,0 +1,55 @@
+import { MakeLogicType, actions, kea, key, path, props, reducers } from 'kea'
+
+export interface IssueRecordingFilterLogicProps {
+ issueId: string
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface issueRecordingFilterLogicValues {
+ onlyWithRecording: boolean
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface issueRecordingFilterLogicActions {
+ setOnlyWithRecording: (onlyWithRecording: boolean) => {
+ onlyWithRecording: boolean
+ }
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface issueRecordingFilterLogicMeta {
+ key: string
+}
+
+export type issueRecordingFilterLogicType = MakeLogicType<
+ issueRecordingFilterLogicValues,
+ issueRecordingFilterLogicActions,
+ IssueRecordingFilterLogicProps,
+ issueRecordingFilterLogicMeta
+>
+
+export const issueRecordingFilterLogic = kea<issueRecordingFilterLogicType>([
+ path((key) => [
+ 'products',
+ 'error_tracking',
+ 'scenes',
+ 'ErrorTrackingIssueScene',
+ 'issueRecordingFilterLogic',
+ key,
+ ]),
+ props({} as IssueRecordingFilterLogicProps),
+ key((props) => props.issueId),
+
+ actions({
+ setOnlyWithRecording: (onlyWithRecording: boolean) => ({ onlyWithRecording }),
+ }),
+
+ reducers({
+ onlyWithRecording: [
+ false,
+ {
+ setOnlyWithRecording: (_, { onlyWithRecording }) => onlyWithRecording,
+ },
+ ],
+ }),
+])
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/recordingFilterLabel.ts b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/recordingFilterLabel.ts
new file mode 100644
index 000000000000..3ed8ffd08c16
--- /dev/null
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/recordingFilterLabel.ts
@@ -0,0 +1 @@
+export const RECORDING_FILTER_LABEL = 'Only with a recording'
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index dccabd514dba..5f9f9bb190ff 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -43013,6 +43013,48 @@ export namespace Schemas {
summary_status: IssueSummaryStatusEnum;
}
+ export interface ErrorTrackingIssueEventsQueryResponse {
+ columns: unknown[];
+ /** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
+ error?: string | null;
+ hasMore?: boolean | null;
+ /** Generated HogQL query. */
+ hogql?: string | null;
+ /** Modifiers used when performing the query */
+ modifiers?: HogQLQueryModifiers | null;
+ /** Where the next page starts. */
+ nextCursor?: string | null;
+ /** Query status indicates whether next to the provided data, a query is still running. */
+ query_status?: QueryStatus | null;
+ /** The resolved previous/comparison period date range, when comparing against another period */
+ resolved_compare_date_range?: ResolvedDateRangeResponse | null;
+ /** The date range used for the query */
+ resolved_date_range?: ResolvedDateRangeResponse | null;
+ results: unknown[][];
+ /** Measured timings for different parts of the query generation process */
+ timings?: QueryTiming[] | null;
+ types: string[];
+ /** Connector-synced data warehouse sources referenced by this query, if any. */
+ used_data_warehouse_sources?: DataWarehouseSourceUsage[] | null;
+ /** Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access. */
+ warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
+ }
+
+ export interface ErrorTrackingIssueEventsQuery {
+ issueId: string;
+ kind?: 'ErrorTrackingIssueEventsQuery';
+ /** Modifiers used when performing the query */
+ modifiers?: HogQLQueryModifiers | null;
+ /** Keep only the exceptions whose session has a recording the player can open. */
+ onlyWithRecording?: boolean | null;
+ response?: ErrorTrackingIssueEventsQueryResponse | null;
+ /** The issue's exceptions list. It must order by `timestamp DESC`, the default, so that pages continue from a cursor. */
+ source: EventsQuery;
+ tags?: QueryLogTags | null;
+ /** version of the node, used for schema migrations */
+ version?: number | null;
+ }
+
/**
* * `exact` - exact
* * `is_not` - is_not
@@ -62579,7 +62621,7 @@ export namespace Schemas {
query: string;
response?: HogQLMetadataResponse | null;
/** Query within which "expr" and "template" are validated. Defaults to "select * from events" */
- sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | MarketingAnalyticsRetentionQuery | MarketingAnalyticsSearchQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebPageDirectoryQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | MetricsHistogramQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPModelBreakdownQuery | MCPProtocolVersionBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | MCPMissingCapabilitiesQuery | null;
+ sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | MarketingAnalyticsRetentionQuery | MarketingAnalyticsSearchQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebPageDirectoryQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ErrorTrackingIssueEventsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | MetricsHistogramQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPModelBreakdownQuery | MCPProtocolVersionBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | MCPMissingCapabilitiesQuery | null;
tags?: QueryLogTags | null;
/** Variables to be subsituted into the query */
variables?: HogQLMetadataVariables;
@@ -62605,7 +62647,7 @@ export namespace Schemas {
query: string;
response?: HogQLAutocompleteResponse | null;
/** Query in whose context to validate. */
- sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | MarketingAnalyticsRetentionQuery | MarketingAnalyticsSearchQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebPageDirectoryQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | MetricsHistogramQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPModelBreakdownQuery | MCPProtocolVersionBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | MCPMissingCapabilitiesQuery | null;
+ sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | MarketingAnalyticsRetentionQuery | MarketingAnalyticsSearchQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebPageDirectoryQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ErrorTrackingIssueEventsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | MetricsHistogramQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPModelBreakdownQuery | MCPProtocolVersionBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | MCPMissingCapabilitiesQuery | null;
/** Start position of the editor word */
startPosition: number;
tags?: QueryLogTags | null;
@@ -97684,7 +97726,7 @@ export namespace Schemas {
* ```
*
* For more details on HogQL queries, see the [PostHog HogQL documentation](/docs/hogql#api-access). */
- query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebPageDirectoryQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | MarketingAnalyticsRetentionQuery | MarketingAnalyticsSearchQuery | DataVisualizationNode | BIVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | MetricsHistogramQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPModelBreakdownQuery | MCPProtocolVersionBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | MCPMissingCapabilitiesQuery | PropertyValuesQuery;
+ query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ErrorTrackingIssueEventsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebPageDirectoryQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | MarketingAnalyticsRetentionQuery | MarketingAnalyticsSearchQuery | DataVisualizationNode | BIVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | MetricsHistogramQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPModelBreakdownQuery | MCPProtocolVersionBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | MCPMissingCapabilitiesQuery | PropertyValuesQuery;
/** Whether results should be calculated sync or async, and how much to rely on the cache:
* - `'blocking'` - calculate synchronously (returning only when the query is done), UNLESS there are very fresh results in the cache
* - `'async'` - kick off background calculation (returning immediately with a query status), UNLESS there are very fresh results in the cache
@@ -98103,26 +98145,53 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative18CredibleIntervals = {[key: string]: number[]} | null;
+ export interface QueryResponseAlternative18 {
+ columns: unknown[];
+ /** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
+ error?: string | null;
+ hasMore?: boolean | null;
+ /** Generated HogQL query. */
+ hogql?: string | null;
+ /** Modifiers used when performing the query */
+ modifiers?: HogQLQueryModifiers | null;
+ /** Where the next page starts. */
+ nextCursor?: string | null;
+ /** Query status indicates whether next to the provided data, a query is still running. */
+ query_status?: QueryStatus | null;
+ /** The resolved previous/comparison period date range, when comparing against another period */
+ resolved_compare_date_range?: ResolvedDateRangeResponse | null;
+ /** The date range used for the query */
+ resolved_date_range?: ResolvedDateRangeResponse | null;
+ results: unknown[][];
+ /** Measured timings for different parts of the query generation process */
+ timings?: QueryTiming[] | null;
+ types: string[];
+ /** Connector-synced data warehouse sources referenced by this query, if any. */
+ used_data_warehouse_sources?: DataWarehouseSourceUsage[] | null;
+ /** Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access. */
+ warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
+ }
+
+ export type QueryResponseAlternative19CredibleIntervals = {[key: string]: number[]} | null;
- export type QueryResponseAlternative18Insight = { [key: string]: unknown }[] | null;
+ export type QueryResponseAlternative19Insight = { [key: string]: unknown }[] | null;
- export type QueryResponseAlternative18Probability = {[key: string]: number} | null;
+ export type QueryResponseAlternative19Probability = {[key: string]: number} | null;
- export interface QueryResponseAlternative18 {
+ export interface QueryResponseAlternative19 {
baseline?: ExperimentStatsBaseValidated | null;
/** Results grouped by breakdown value. When present, baseline and variant_results contain aggregated data. */
breakdown_results?: ExperimentBreakdownResult[] | null;
clickhouse_sql?: string | null;
- credible_intervals?: QueryResponseAlternative18CredibleIntervals;
+ credible_intervals?: QueryResponseAlternative19CredibleIntervals;
hogql?: string | null;
- insight?: QueryResponseAlternative18Insight;
+ insight?: QueryResponseAlternative19Insight;
/** Whether exposures were served from the precomputation system */
is_precomputed?: boolean | null;
kind?: 'ExperimentQuery';
metric?: ExperimentMeanMetric | ExperimentFunnelMetric | ExperimentRatioMetric | ExperimentRetentionMetric | null;
p_value?: number | null;
- probability?: QueryResponseAlternative18Probability;
+ probability?: QueryResponseAlternative19Probability;
significance_code?: ExperimentSignificanceCode | null;
significant?: boolean | null;
stats_version?: number | null;
@@ -98132,9 +98201,9 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export type QueryResponseAlternative19TotalExposures = {[key: string]: number};
+ export type QueryResponseAlternative20TotalExposures = {[key: string]: number};
- export interface QueryResponseAlternative19 {
+ export interface QueryResponseAlternative20 {
bias_risk?: BiasRisk | null;
date_range: DateRange;
/** The result of each check behind `health_findings`, so that a check that did not run is not read as passed. */
@@ -98144,12 +98213,12 @@ export namespace Schemas {
kind?: 'ExperimentExposureQuery';
sample_ratio_mismatch?: SampleRatioMismatch | null;
timeseries: ExperimentExposureTimeSeries[];
- total_exposures: QueryResponseAlternative19TotalExposures;
+ total_exposures: QueryResponseAlternative20TotalExposures;
/** Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics. */
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative20 {
+ export interface QueryResponseAlternative21 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -98174,7 +98243,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative21 {
+ export interface QueryResponseAlternative22 {
dateFrom?: string | null;
dateTo?: string | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -98206,7 +98275,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative22 {
+ export interface QueryResponseAlternative23 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98241,7 +98310,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative23 {
+ export interface QueryResponseAlternative24 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98269,7 +98338,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative24 {
+ export interface QueryResponseAlternative25 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98296,7 +98365,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative26 {
+ export interface QueryResponseAlternative27 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -98322,7 +98391,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative27 {
+ export interface QueryResponseAlternative28 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98357,7 +98426,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative28 {
+ export interface QueryResponseAlternative29 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -98390,7 +98459,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative29 {
+ export interface QueryResponseAlternative30 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -98415,15 +98484,15 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative30Data = { [key: string]: unknown };
+ export type QueryResponseAlternative31Data = { [key: string]: unknown };
- export interface QueryResponseAlternative30 {
- data: QueryResponseAlternative30Data;
+ export interface QueryResponseAlternative31 {
+ data: QueryResponseAlternative31Data;
error?: ExternalQueryError | null;
status: ExternalQueryStatus;
}
- export interface QueryResponseAlternative31 {
+ export interface QueryResponseAlternative32 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -98447,7 +98516,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative32 {
+ export interface QueryResponseAlternative33 {
columns?: unknown[] | null;
/** ISO timestamp of the oldest precompute window backing this result — surfaced as "data as of X". */
dataComputedAt?: string | null;
@@ -98479,9 +98548,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative33Results = {[key: string]: MarketingAnalyticsItem};
+ export type QueryResponseAlternative34Results = {[key: string]: MarketingAnalyticsItem};
- export interface QueryResponseAlternative33 {
+ export interface QueryResponseAlternative34 {
/** ISO timestamp of the oldest precompute window backing this result — surfaced as "data as of X". */
dataComputedAt?: string | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -98498,7 +98567,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative33Results;
+ results: QueryResponseAlternative34Results;
samplingRate?: SamplingRate | null;
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
@@ -98508,7 +98577,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative34 {
+ export interface QueryResponseAlternative35 {
/** Whether this result counted a repeat converter's every conversion, after resolving the query's null against the goal's math. The rate columns are a true share only when this is false, so the table reads it to label them. */
allowsMultipleConversionsPerVisitor: boolean;
/** The team's configured attribution window, for the tooltips. */
@@ -98545,7 +98614,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative35 {
+ export interface QueryResponseAlternative36 {
/** Conversions with at least one in-window touchpoint. The share denominator — deliberately unfiltered by min/maxTouchpoints so shares stay comparable across filter values. */
attributedConversions: number;
/** The attribution window actually used, for the tooltips. */
@@ -98578,7 +98647,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative36 {
+ export interface QueryResponseAlternative37 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -98613,7 +98682,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative37 {
+ export interface QueryResponseAlternative38 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -98639,7 +98708,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative38 {
+ export interface QueryResponseAlternative39 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98668,7 +98737,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative39 {
+ export interface QueryResponseAlternative40 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98696,7 +98765,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative40 {
+ export interface QueryResponseAlternative41 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98724,7 +98793,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative41 {
+ export interface QueryResponseAlternative42 {
/** Executed ClickHouse query */
clickhouse?: string | null;
/** Display formats for directly selected virtual properties, aligned with columns. */
@@ -98763,7 +98832,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative42 {
+ export interface QueryResponseAlternative43 {
dateFrom?: string | null;
dateTo?: string | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -98795,7 +98864,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative43 {
+ export interface QueryResponseAlternative44 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98830,7 +98899,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative44 {
+ export interface QueryResponseAlternative45 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98858,7 +98927,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative45 {
+ export interface QueryResponseAlternative46 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98885,7 +98954,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative46 {
+ export interface QueryResponseAlternative47 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98920,7 +98989,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative47 {
+ export interface QueryResponseAlternative48 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -98953,7 +99022,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative48 {
+ export interface QueryResponseAlternative49 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -98980,7 +99049,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative49 {
+ export interface QueryResponseAlternative50 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99007,7 +99076,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative50 {
+ export interface QueryResponseAlternative51 {
columns?: unknown[] | null;
/** ISO timestamp of the oldest precompute window backing this result — surfaced as "data as of X". */
dataComputedAt?: string | null;
@@ -99039,9 +99108,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative51Results = {[key: string]: MarketingAnalyticsItem};
+ export type QueryResponseAlternative52Results = {[key: string]: MarketingAnalyticsItem};
- export interface QueryResponseAlternative51 {
+ export interface QueryResponseAlternative52 {
/** ISO timestamp of the oldest precompute window backing this result — surfaced as "data as of X". */
dataComputedAt?: string | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -99058,7 +99127,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative51Results;
+ results: QueryResponseAlternative52Results;
samplingRate?: SamplingRate | null;
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
@@ -99068,7 +99137,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative52 {
+ export interface QueryResponseAlternative53 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99094,7 +99163,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative53 {
+ export interface QueryResponseAlternative54 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99120,7 +99189,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative54 {
+ export interface QueryResponseAlternative55 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99146,7 +99215,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative56 {
+ export interface QueryResponseAlternative57 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99173,7 +99242,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative57 {
+ export interface QueryResponseAlternative58 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99203,7 +99272,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative58 {
+ export interface QueryResponseAlternative59 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore: boolean;
@@ -99231,9 +99300,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative59ResultsItem = { [key: string]: unknown };
+ export type QueryResponseAlternative60ResultsItem = { [key: string]: unknown };
- export interface QueryResponseAlternative59 {
+ export interface QueryResponseAlternative60 {
boxplot_data?: BoxPlotDatum[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99249,7 +99318,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative59ResultsItem[];
+ results: QueryResponseAlternative60ResultsItem[];
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
/** Connector-synced data warehouse sources referenced by this query, if any. */
@@ -99258,7 +99327,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative60 {
+ export interface QueryResponseAlternative61 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99282,7 +99351,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative61 {
+ export interface QueryResponseAlternative62 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99304,7 +99373,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative62 {
+ export interface QueryResponseAlternative63 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99326,7 +99395,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative63 {
+ export interface QueryResponseAlternative64 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99348,9 +99417,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative64ResultsItem = { [key: string]: unknown };
+ export type QueryResponseAlternative65ResultsItem = { [key: string]: unknown };
- export interface QueryResponseAlternative64 {
+ export interface QueryResponseAlternative65 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99363,7 +99432,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative64ResultsItem[];
+ results: QueryResponseAlternative65ResultsItem[];
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
/** Connector-synced data warehouse sources referenced by this query, if any. */
@@ -99372,14 +99441,14 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative66Tables = {[key: string]: DatabaseSchemaPostHogTable | DatabaseSchemaSystemTable | DatabaseSchemaDataWarehouseTable | DatabaseSchemaViewTable | DatabaseSchemaManagedViewTable | DatabaseSchemaBatchExportTable | DatabaseSchemaMaterializedViewTable | DatabaseSchemaEndpointTable};
+ export type QueryResponseAlternative67Tables = {[key: string]: DatabaseSchemaPostHogTable | DatabaseSchemaSystemTable | DatabaseSchemaDataWarehouseTable | DatabaseSchemaViewTable | DatabaseSchemaManagedViewTable | DatabaseSchemaBatchExportTable | DatabaseSchemaMaterializedViewTable | DatabaseSchemaEndpointTable};
- export interface QueryResponseAlternative66 {
+ export interface QueryResponseAlternative67 {
joins: DataWarehouseViewLink[];
- tables: QueryResponseAlternative66Tables;
+ tables: QueryResponseAlternative67Tables;
}
- export interface QueryResponseAlternative67 {
+ export interface QueryResponseAlternative68 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
has_next: boolean;
@@ -99404,7 +99473,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative68 {
+ export interface QueryResponseAlternative69 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99432,7 +99501,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative69 {
+ export interface QueryResponseAlternative70 {
count: number;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99455,7 +99524,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative70 {
+ export interface QueryResponseAlternative71 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99477,7 +99546,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative71 {
+ export interface QueryResponseAlternative72 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99499,7 +99568,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative72 {
+ export interface QueryResponseAlternative73 {
/** Upper bound per row (y axis), ascending. */
bounds: number[];
/** Observation count per cell: counts[row][column], row = bound, column = time. */
@@ -99527,7 +99596,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative73 {
+ export interface QueryResponseAlternative74 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -99554,7 +99623,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative74 {
+ export interface QueryResponseAlternative75 {
/** Result rows for the comparison period when `compareFilter.compare` is true. */
compare?: AggregatedSpanRow[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -99578,7 +99647,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative75 {
+ export interface QueryResponseAlternative76 {
/** Result rows for the comparison period when `compareFilter.compare` is true. */
compare?: SpanTreeNode[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -99602,7 +99671,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative76 {
+ export interface QueryResponseAlternative77 {
/** Result rows for the comparison period when `compareFilter.compare` is true. */
compare?: AttributeBreakdownRow[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -99626,13 +99695,13 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative77 {
+ export interface QueryResponseAlternative78 {
questions: string[];
/** Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics. */
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative78 {
+ export interface QueryResponseAlternative79 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -99657,7 +99726,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative79 {
+ export interface QueryResponseAlternative80 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -99682,7 +99751,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative80 {
+ export interface QueryResponseAlternative81 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99704,7 +99773,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative81 {
+ export interface QueryResponseAlternative82 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99730,7 +99799,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative84 {
+ export interface QueryResponseAlternative85 {
/** Timestamp of the newer trace */
newerTimestamp?: string | null;
/** ID of the newer trace (chronologically after current) */
@@ -99745,7 +99814,7 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative85 {
+ export interface QueryResponseAlternative86 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99767,7 +99836,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative86 {
+ export interface QueryResponseAlternative87 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99789,7 +99858,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative87 {
+ export interface QueryResponseAlternative88 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99819,7 +99888,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative88 {
+ export interface QueryResponseAlternative89 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore: boolean;
@@ -99847,7 +99916,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative89 {
+ export interface QueryResponseAlternative90 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99869,7 +99938,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative90 {
+ export interface QueryResponseAlternative91 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -99896,9 +99965,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative91ResultsItem = { [key: string]: unknown };
+ export type QueryResponseAlternative92ResultsItem = { [key: string]: unknown };
- export interface QueryResponseAlternative91 {
+ export interface QueryResponseAlternative92 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99911,7 +99980,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative91ResultsItem[];
+ results: QueryResponseAlternative92ResultsItem[];
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
/** Connector-synced data warehouse sources referenced by this query, if any. */
@@ -99920,7 +99989,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative92 {
+ export interface QueryResponseAlternative93 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99942,7 +100011,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative93 {
+ export interface QueryResponseAlternative94 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99964,7 +100033,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative94 {
+ export interface QueryResponseAlternative95 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -99986,7 +100055,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative95 {
+ export interface QueryResponseAlternative96 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Whether another page of individual model identifiers is available. */
@@ -100010,7 +100079,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative96 {
+ export interface QueryResponseAlternative97 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100032,7 +100101,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative97 {
+ export interface QueryResponseAlternative98 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100054,7 +100123,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative98 {
+ export interface QueryResponseAlternative99 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100076,7 +100145,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative99 {
+ export interface QueryResponseAlternative100 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100098,7 +100167,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative100 {
+ export interface QueryResponseAlternative101 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100121,7 +100190,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative101 {
+ export interface QueryResponseAlternative102 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100143,7 +100212,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative102 {
+ export interface QueryResponseAlternative103 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100171,7 +100240,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative103 {
+ export interface QueryResponseAlternative104 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100193,7 +100262,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative104 {
+ export interface QueryResponseAlternative105 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100215,7 +100284,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative105 {
+ export interface QueryResponseAlternative106 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100237,7 +100306,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative106 {
+ export interface QueryResponseAlternative107 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100259,7 +100328,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative107 {
+ export interface QueryResponseAlternative108 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100281,7 +100350,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative108 {
+ export interface QueryResponseAlternative109 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100303,7 +100372,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative109 {
+ export interface QueryResponseAlternative110 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100325,7 +100394,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative110 {
+ export interface QueryResponseAlternative111 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Whether more reports exist past this page. */
@@ -100349,7 +100418,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative111 {
+ export interface QueryResponseAlternative112 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -100371,7 +100440,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative = { [key: string]: unknown } | QueryResponseAlternative1 | QueryResponseAlternative2 | QueryResponseAlternative3 | QueryResponseAlternative4 | QueryResponseAlternative5 | QueryResponseAlternative6 | QueryResponseAlternative7 | QueryResponseAlternative8 | QueryResponseAlternative9 | QueryResponseAlternative10 | QueryResponseAlternative11 | QueryResponseAlternative12 | QueryResponseAlternative13 | QueryResponseAlternative14 | QueryResponseAlternative15 | QueryResponseAlternative16 | QueryResponseAlternative17 | QueryResponseAlternative18 | QueryResponseAlternative19 | QueryResponseAlternative20 | QueryResponseAlternative21 | QueryResponseAlternative22 | QueryResponseAlternative23 | QueryResponseAlternative24 | QueryResponseAlternative26 | QueryResponseAlternative27 | QueryResponseAlternative28 | QueryResponseAlternative29 | QueryResponseAlternative30 | QueryResponseAlternative31 | QueryResponseAlternative32 | QueryResponseAlternative33 | QueryResponseAlternative34 | QueryResponseAlternative35 | QueryResponseAlternative36 | QueryResponseAlternative37 | unknown | QueryResponseAlternative38 | QueryResponseAlternative39 | QueryResponseAlternative40 | QueryResponseAlternative41 | QueryResponseAlternative42 | QueryResponseAlternative43 | QueryResponseAlternative44 | QueryResponseAlternative45 | QueryResponseAlternative46 | QueryResponseAlternative47 | QueryResponseAlternative48 | QueryResponseAlternative49 | QueryResponseAlternative50 | QueryResponseAlternative51 | QueryResponseAlternative52 | QueryResponseAlternative53 | QueryResponseAlternative54 | QueryResponseAlternative56 | QueryResponseAlternative57 | QueryResponseAlternative58 | QueryResponseAlternative59 | QueryResponseAlternative60 | QueryResponseAlternative61 | QueryResponseAlternative62 | QueryResponseAlternative63 | QueryResponseAlternative64 | QueryResponseAlternative66 | QueryResponseAlternative67 | QueryResponseAlternative68 | QueryResponseAlternative69 | QueryResponseAlternative70 | QueryResponseAlternative71 | QueryResponseAlternative72 | QueryResponseAlternative73 | QueryResponseAlternative74 | QueryResponseAlternative75 | QueryResponseAlternative76 | QueryResponseAlternative77 | QueryResponseAlternative78 | QueryResponseAlternative79 | QueryResponseAlternative80 | QueryResponseAlternative81 | QueryResponseAlternative84 | QueryResponseAlternative85 | QueryResponseAlternative86 | QueryResponseAlternative87 | QueryResponseAlternative88 | QueryResponseAlternative89 | QueryResponseAlternative90 | QueryResponseAlternative91 | QueryResponseAlternative92 | QueryResponseAlternative93 | QueryResponseAlternative94 | QueryResponseAlternative95 | QueryResponseAlternative96 | QueryResponseAlternative97 | QueryResponseAlternative98 | QueryResponseAlternative99 | QueryResponseAlternative100 | QueryResponseAlternative101 | QueryResponseAlternative102 | QueryResponseAlternative103 | QueryResponseAlternative104 | QueryResponseAlternative105 | QueryResponseAlternative106 | QueryResponseAlternative107 | QueryResponseAlternative108 | QueryResponseAlternative109 | QueryResponseAlternative110 | QueryResponseAlternative111;
+ export type QueryResponseAlternative = { [key: string]: unknown } | QueryResponseAlternative1 | QueryResponseAlternative2 | QueryResponseAlternative3 | QueryResponseAlternative4 | QueryResponseAlternative5 | QueryResponseAlternative6 | QueryResponseAlternative7 | QueryResponseAlternative8 | QueryResponseAlternative9 | QueryResponseAlternative10 | QueryResponseAlternative11 | QueryResponseAlternative12 | QueryResponseAlternative13 | QueryResponseAlternative14 | QueryResponseAlternative15 | QueryResponseAlternative16 | QueryResponseAlternative17 | QueryResponseAlternative18 | QueryResponseAlternative19 | QueryResponseAlternative20 | QueryResponseAlternative21 | QueryResponseAlternative22 | QueryResponseAlternative23 | QueryResponseAlternative24 | QueryResponseAlternative25 | QueryResponseAlternative27 | QueryResponseAlternative28 | QueryResponseAlternative29 | QueryResponseAlternative30 | QueryResponseAlternative31 | QueryResponseAlternative32 | QueryResponseAlternative33 | QueryResponseAlternative34 | QueryResponseAlternative35 | QueryResponseAlternative36 | QueryResponseAlternative37 | QueryResponseAlternative38 | unknown | QueryResponseAlternative39 | QueryResponseAlternative40 | QueryResponseAlternative41 | QueryResponseAlternative42 | QueryResponseAlternative43 | QueryResponseAlternative44 | QueryResponseAlternative45 | QueryResponseAlternative46 | QueryResponseAlternative47 | QueryResponseAlternative48 | QueryResponseAlternative49 | QueryResponseAlternative50 | QueryResponseAlternative51 | QueryResponseAlternative52 | QueryResponseAlternative53 | QueryResponseAlternative54 | QueryResponseAlternative55 | QueryResponseAlternative57 | QueryResponseAlternative58 | QueryResponseAlternative59 | QueryResponseAlternative60 | QueryResponseAlternative61 | QueryResponseAlternative62 | QueryResponseAlternative63 | QueryResponseAlternative64 | QueryResponseAlternative65 | QueryResponseAlternative67 | QueryResponseAlternative68 | QueryResponseAlternative69 | QueryResponseAlternative70 | QueryResponseAlternative71 | QueryResponseAlternative72 | QueryResponseAlternative73 | QueryResponseAlternative74 | QueryResponseAlternative75 | QueryResponseAlternative76 | QueryResponseAlternative77 | QueryResponseAlternative78 | QueryResponseAlternative79 | QueryResponseAlternative80 | QueryResponseAlternative81 | QueryResponseAlternative82 | QueryResponseAlternative85 | QueryResponseAlternative86 | QueryResponseAlternative87 | QueryResponseAlternative88 | QueryResponseAlternative89 | QueryResponseAlternative90 | QueryResponseAlternative91 | QueryResponseAlternative92 | QueryResponseAlternative93 | QueryResponseAlternative94 | QueryResponseAlternative95 | QueryResponseAlternative96 | QueryResponseAlternative97 | QueryResponseAlternative98 | QueryResponseAlternative99 | QueryResponseAlternative100 | QueryResponseAlternative101 | QueryResponseAlternative102 | QueryResponseAlternative103 | QueryResponseAlternative104 | QueryResponseAlternative105 | QueryResponseAlternative106 | QueryResponseAlternative107 | QueryResponseAlternative108 | QueryResponseAlternative109 | QueryResponseAlternative110 | QueryResponseAlternative111 | QueryResponseAlternative112;
export interface QueryScanResponse {
analysis?: QueryScanAnalysis | null;
@@ -100382,11 +100451,11 @@ export namespace Schemas {
}
export interface QueryUpgradeRequest {
- query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebPageDirectoryQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | MarketingAnalyticsRetentionQuery | MarketingAnalyticsSearchQuery | DataVisualizationNode | BIVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | MetricsHistogramQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPModelBreakdownQuery | MCPProtocolVersionBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | MCPMissingCapabilitiesQuery | PropertyValuesQuery;
+ query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ErrorTrackingIssueEventsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebPageDirectoryQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | MarketingAnalyticsRetentionQuery | MarketingAnalyticsSearchQuery | DataVisualizationNode | BIVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | MetricsHistogramQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPModelBreakdownQuery | MCPProtocolVersionBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | MCPMissingCapabilitiesQuery | PropertyValuesQuery;
}
export interface QueryUpgradeResponse {
- query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebPageDirectoryQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | MarketingAnalyticsRetentionQuery | MarketingAnalyticsSearchQuery | DataVisualizationNode | BIVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | MetricsHistogramQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPModelBreakdownQuery | MCPProtocolVersionBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | MCPMissingCapabilitiesQuery | PropertyValuesQuery;
+ query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ErrorTrackingIssueEventsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebPageDirectoryQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | MarketingAnalyticsRetentionQuery | MarketingAnalyticsSearchQuery | DataVisualizationNode | BIVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | MetricsHistogramQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPModelBreakdownQuery | MCPProtocolVersionBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | MCPMissingCapabilitiesQuery | PropertyValuesQuery;
}
export interface QuotaResourceLimit {