Skip to content

Commit

Permalink
sync rum-events-format
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-lebeau committed Aug 12, 2024
1 parent 8735d4b commit afe5c7e
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 7 deletions.
13 changes: 12 additions & 1 deletion packages/core/src/domain/telemetry/telemetryEvent.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
* Whether the session replay start is handled manually
*/
start_session_replay_recording_manually?: boolean
/**
* Whether Session Replay should automatically start a recording when enabled
*/
start_recording_immediately?: boolean
/**
* Whether a proxy is used
*/
Expand Down Expand Up @@ -476,6 +480,13 @@ export type TelemetryBrowserFeaturesUsage =
feature: 'start-duration-vital'
[k: string]: unknown
}
| {
/**
* stopDurationVital API
*/
feature: 'stop-duration-vital'
[k: string]: unknown
}
| {
/**
* addDurationVital API
Expand Down Expand Up @@ -513,7 +524,7 @@ export interface CommonTelemetryProperties {
/**
* The source of this event
*/
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'unity'
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'unity' | 'kotlin-multiplatform'
/**
* The version of the SDK generating the telemetry event
*/
Expand Down
102 changes: 97 additions & 5 deletions packages/rum-core/src/rumEvent.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export type RumErrorEvent = CommonProperties &
/**
* The specific category of the error. It provides a high-level grouping for different types of errors.
*/
readonly category?: 'ANR' | 'App Hang' | 'Exception'
readonly category?: 'ANR' | 'App Hang' | 'Exception' | 'Watchdog Termination' | 'Memory Warning'
/**
* Whether the error has been handled manually in the source code or not
*/
Expand Down Expand Up @@ -444,17 +444,93 @@ export type RumLongTaskEvent = CommonProperties &
*/
readonly long_task: {
/**
* UUID of the long task
* UUID of the long task or long animation frame
*/
readonly id?: string
/**
* Duration in ns of the long task
* Type of the event: long task or long animation frame
*/
readonly entry_type?: 'long-task' | 'long-animation-frame'
/**
* Duration in ns of the long task or long animation frame
*/
readonly duration: number
/**
* Duration in ns for which the animation frame was being blocked
*/
readonly blocking_duration?: number
/**
* Start time of the rendering cycle, which includes requestAnimationFrame callbacks, style and layout calculation, resize observer and intersection observer callbacks
*/
readonly render_start?: number
/**
* Start time of the time period spent in style and layout calculations
*/
readonly style_and_layout_start?: number
/**
* Start time of of the first UI event (mouse/keyboard and so on) to be handled during the course of this frame
*/
readonly first_ui_event_timestamp?: number
/**
* Whether this long task is considered a frozen frame
*/
readonly is_frozen_frame?: boolean
/**
* A list of long scripts that were executed over the course of the long frame
*/
readonly scripts?: {
/**
* Duration in ns between startTime and when the subsequent microtask queue has finished processing
*/
readonly duration?: number
/**
* Duration in ns of the total time spent in 'pausing' synchronous operations (alert, synchronous XHR)
*/
readonly pause_duration?: number
/**
* Duration in ns of the the total time spent processing forced layout and style inside this function
*/
readonly forced_style_and_layout_duration?: number
/**
* Time the entry function was invoked
*/
readonly start_time?: number
/**
* Time after compilation
*/
readonly execution_start?: number
/**
* The script resource name where available (or empty if not found)
*/
readonly source_url?: string
/**
* The script function name where available (or empty if not found)
*/
readonly source_function_name?: string
/**
* The script character position where available (or -1 if not found)
*/
readonly source_char_position?: number
/**
* Information about the invoker of the script
*/
readonly invoker?: string
/**
* Type of the invoker of the script
*/
readonly invoker_type?:
| 'user-callback'
| 'event-listener'
| 'resolve-promise'
| 'reject-promise'
| 'classic-script'
| 'module-script'
/**
* The container (the top-level document, or an <iframe>) the long animation frame occurred in
*/
readonly window_attribution?: string
[k: string]: unknown
}[]
[k: string]: unknown
}
/**
Expand Down Expand Up @@ -1166,7 +1242,15 @@ export interface CommonProperties {
/**
* The source of this event
*/
readonly source?: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity'
readonly source?:
| 'android'
| 'ios'
| 'browser'
| 'flutter'
| 'react-native'
| 'roku'
| 'unity'
| 'kotlin-multiplatform'
/**
* View properties
*/
Expand Down Expand Up @@ -1423,7 +1507,15 @@ export interface ViewContainerSchema {
/**
* Source of the parent view
*/
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity'
readonly source:
| 'android'
| 'ios'
| 'browser'
| 'flutter'
| 'react-native'
| 'roku'
| 'unity'
| 'kotlin-multiplatform'
[k: string]: unknown
}
[k: string]: unknown
Expand Down

0 comments on commit afe5c7e

Please sign in to comment.