Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(replay): use configured session id keys for backend logs (#121211)

Jon McCallum2237b17e6402
diff --git a/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogsLogic.ts b/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogsLogic.ts
index 1a00476a2aaa..76f57469f9af 100644
--- a/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogsLogic.ts
+++ b/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogsLogic.ts
@@ -7,7 +7,7 @@ import { Dayjs } from 'lib/dayjs'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { LogMessage, LogsQuery } from '~/queries/schema/schema-general'
-import { FilterLogicalOperator, PropertyFilterType, PropertyOperator } from '~/types'
+import { FilterLogicalOperator } from '~/types'
import type { FeatureFlagsSet } from '../../../../lib/logic/featureFlagLogic'
import { sessionRecordingDataCoordinatorLogic } from '../sessionRecordingDataCoordinatorLogic'
@@ -26,22 +26,8 @@ export function buildSessionLogsQuery(
date_from: start.toISOString(),
date_to: end.toISOString(),
},
- filterGroup: {
- type: FilterLogicalOperator.And,
- values: [
- {
- type: FilterLogicalOperator.And,
- values: [
- {
- key: 'session_id',
- value: sessionId,
- operator: PropertyOperator.Exact,
- type: PropertyFilterType.LogAttribute,
- },
- ],
- },
- ],
- },
+ filterGroup: { type: FilterLogicalOperator.And, values: [] },
+ sessionId,
severityLevels: [],
serviceNames: [],
orderBy: 'earliest',