Skip to content

Commit

Permalink
fix: embedded recordings to use blob replay (#17548)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored and daibhin committed Sep 21, 2023
1 parent bd35dcd commit d89c6df
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { createSegments, mapSnapshotsToWindowId } from './utils/segmenter'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { FEATURE_FLAGS } from 'lib/constants'
import posthog from 'posthog-js'
import { getCurrentExporterData } from '~/exporter/exporterViewLogic'

const IS_TEST_MODE = process.env.NODE_ENV === 'test'
const BUFFER_MS = 60000 // +- before and after start and end of a recording to query for.
Expand Down Expand Up @@ -208,7 +209,9 @@ export const sessionRecordingDataLogic = kea<sessionRecordingDataLogicType>([
return
}
if (!values.sessionPlayerSnapshotData?.snapshots) {
if (values.featureFlags[FEATURE_FLAGS.SESSION_RECORDING_BLOB_REPLAY]) {
// if `getCurrentExporterData` has a value then we're embedded/exported
// so, we always want to use blob replay
if (values.featureFlags[FEATURE_FLAGS.SESSION_RECORDING_BLOB_REPLAY] || getCurrentExporterData()) {
actions.loadRecordingSnapshotsV2()
} else {
actions.loadRecordingSnapshotsV1()
Expand Down

0 comments on commit d89c6df

Please sign in to comment.