Skip to content

Commit

Permalink
move the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Oct 18, 2023
1 parent d38e1ea commit 461233b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/extensions/sessionrecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ const ACTIVE_SOURCES = [
IncrementalSource.Drag,
]

/**
* Session recording starts in buffering mode while waiting for decide response
* Once the response is received it might be disabled (false), enabled (active) or sampled (sampled)
* When sampled that means a sample rate is set and the last time the session id was rotated
* the sample rate determined this session should be sent to the server.
*/
type SessionRecordingStatus = false | 'sampled' | 'active' | 'buffering'

export class SessionRecording {
Expand All @@ -77,12 +83,6 @@ export class SessionRecording {
}

private instance: PostHog
/**
* Session recording starts in buffering mode while waiting for decide response
* Once the response is received it might be disabled (false), enabled (active) or sampled (sampled)
* When sampled that means a sample rate is set and the last time the session id rotated
* the sample rate determined this session should be sent to the server.
*/
private _emit: SessionRecordingStatus
private _endpoint: string
private windowId: string | null
Expand Down

0 comments on commit 461233b

Please sign in to comment.