Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🏷️ update events format #864

Merged
merged 1 commit into from
May 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions packages/rum-core/src/rumEvent.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ export type RumActionEvent = CommonProperties & {
}
[k: string]: unknown
}
/**
* View properties
*/
readonly view?: {
/**
* Is the action starting in the foreground (focus in browser)
*/
readonly in_foreground?: boolean
[k: string]: unknown
}
[k: string]: unknown
}
/**
Expand All @@ -97,6 +107,10 @@ export type RumErrorEvent = CommonProperties & {
* Error properties
*/
readonly error: {
/**
* UUID of the error
*/
readonly id?: string
/**
* Error message
*/
Expand Down Expand Up @@ -179,6 +193,16 @@ export type RumErrorEvent = CommonProperties & {
readonly id: string
[k: string]: unknown
}
/**
* View properties
*/
readonly view?: {
/**
* Is the error starting in the foreground (focus in browser)
*/
readonly in_foreground?: boolean
[k: string]: unknown
}
[k: string]: unknown
}
/**
Expand All @@ -193,6 +217,10 @@ export type RumLongTaskEvent = CommonProperties & {
* Long Task properties
*/
readonly long_task: {
/**
* UUID of the long task
*/
readonly id?: string
/**
* Duration in ns of the long task
*/
Expand Down Expand Up @@ -523,6 +551,20 @@ export type RumViewEvent = CommonProperties & {
readonly count: number
[k: string]: unknown
}
/**
* List of the periods of time the user had the view in foreground (focused in the browser)
*/
readonly in_foreground_periods?: {
/**
* Duration in ns between start of the view and start of foreground period
*/
readonly start: number
/**
* Duration in ns of the view foreground period
*/
readonly duration: number
[k: string]: unknown
}[]
[k: string]: unknown
}
/**
Expand Down Expand Up @@ -666,5 +708,11 @@ export interface CommonProperties {
readonly format_version: number
[k: string]: unknown
}
/**
* User provided context
*/
context?: {
[k: string]: unknown
}
[k: string]: unknown
}