Skip to content

Commit

Permalink
feat: add property
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Nov 29, 2024
1 parent 1b57ea9 commit 04db518
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/replay/sessionrecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export class SessionRecording {
* defaults to buffering mode until a decide response is received
* once a decide response is received status can be disabled, active or sampled
*/
private get status(): SessionRecordingStatus {
get status(): SessionRecordingStatus {
if (!this.receivedDecide) {
return 'buffering'
}
Expand Down
4 changes: 4 additions & 0 deletions src/posthog-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,10 @@ export class PostHog {
properties['$window_id'] = windowId
}

if (this.sessionRecording) {
properties['$recording_status'] = this.sessionRecording.status
}

if (this.requestRouter.region === RequestRouterRegion.CUSTOM) {
properties['$lib_custom_api_host'] = this.config.api_host
}
Expand Down

0 comments on commit 04db518

Please sign in to comment.