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

📈[RUMF-1432] Collect trackResources and trackLongTasks configs #1814

Merged
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
4 changes: 4 additions & 0 deletions packages/core/src/domain/configuration/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export interface InitConfiguration {
sampleRate?: number | undefined
telemetrySampleRate?: number | undefined
silentMultipleInit?: boolean | undefined
trackResources?: boolean | undefined
trackLongTasks?: boolean | undefined

// transport options
proxyUrl?: string | undefined
Expand Down Expand Up @@ -165,5 +167,7 @@ export function serializeConfiguration(configuration: InitConfiguration): Partia
use_proxy: configuration.proxyUrl !== undefined ? !!configuration.proxyUrl : undefined,
silent_multiple_init: configuration.silentMultipleInit,
track_session_across_subdomains: configuration.trackSessionAcrossSubdomains,
track_resources: configuration.trackResources,
track_long_task: configuration.trackLongTasks,
}
}
60 changes: 58 additions & 2 deletions packages/core/src/domain/telemetry/telemetryEvent.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
* Whether sessions across subdomains for the same site are tracked
*/
track_session_across_subdomains?: boolean
/**
* Whether resources are tracked
*/
track_resources?: boolean
/**
* Whether long tasks are tracked
*/
track_long_task?: boolean
/**
* Whether a secure cross-site session cookie is used
*/
Expand Down Expand Up @@ -198,9 +206,57 @@ export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
*/
mobile_vitals_update_period?: number
/**
* Whether native crashes are tracked
* Whether error monitoring & crash reporting is enabled for the source platform
*/
track_errors?: boolean
/**
* Whether automatic collection of network requests is enabled
*/
track_network_requests?: boolean
/**
* Whether tracing features are enabled
*/
use_tracing?: boolean
/**
* Whether native views are tracked (for cross platform SDKs)
*/
track_native_views?: boolean
/**
* Whether native error monitoring & crash reporting is enabled (for cross platform SDKs)
*/
track_native_errors?: boolean
/**
* Whether long task tracking is performed automatically
*/
track_native_long_tasks?: boolean
/**
* Whether long task tracking is performed automatically for cross platform SDKs
*/
track_cross_platform_long_tasks?: boolean
/**
* Whether the cross-platform SDK was initialized on top of a pre-existing native SDK instance
*/
use_attach_to_existing?: boolean
/**
* Whether the client has provided a list of first party hosts
*/
use_first_party_hosts?: boolean
/**
* The type of initialization the SDK used, in case multiple are supported
*/
initialization_type?: string
/**
* Whether Flutter build and raster time tracking is enabled
*/
track_flutter_performance?: boolean
/**
* The window duration for batches sent by the SDK (in milliseconds)
*/
batch_size?: number
/**
* The upload frequency of batches (in milliseconds)
*/
track_native_crashes?: boolean
batch_upload_frequency?: number
[k: string]: unknown
}
[k: string]: unknown
Expand Down
7 changes: 7 additions & 0 deletions packages/rum/src/types/sessionReplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,14 @@ export interface ElementNode {
tagName: string
attributes: Attributes
childNodes: SerializedNodeWithId[]
/**
* Is this node a SVG instead of a HTML
*/
isSVG?: true
/**
* Is this node a host of a shadow root
*/
isShadowHost?: true
}
/**
* Schema of an Attributes type.
Expand Down