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

RUMM-1900/1904 Update RUM Schema #715

Merged
merged 2 commits into from
Jan 14, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,12 @@ internal struct CrashReportingWithRUMIntegration: CrashReportingIntegration {

let rumError = RUMErrorEvent(
dd: .init(
browserSdkVersion: nil,
session: .init(plan: .plan1)
),
action: nil,
application: .init(id: lastRUMView.application.id),
ciTest: nil,
connectivity: lastRUMView.connectivity,
context: nil,
date: crashDate.timeIntervalSince1970.toInt64Milliseconds,
Expand All @@ -250,6 +252,7 @@ internal struct CrashReportingWithRUMIntegration: CrashReportingIntegration {
id: lastRUMView.session.id,
type: .user
),
source: .ios,
synthetics: nil,
usr: lastRUMView.usr,
view: .init(
Expand All @@ -271,15 +274,18 @@ internal struct CrashReportingWithRUMIntegration: CrashReportingIntegration {
let original = rumViewEvent.model
let rumView = RUMViewEvent(
dd: .init(
browserSdkVersion: nil,
documentVersion: original.dd.documentVersion + 1,
session: .init(plan: .plan1)
),
application: original.application,
ciTest: nil,
connectivity: original.connectivity,
context: original.context,
date: crashDate.timeIntervalSince1970.toInt64Milliseconds - 1, // -1ms to put the crash after view in RUM session
service: original.service,
session: original.session,
source: .ios,
synthetics: nil,
usr: original.usr,
view: .init(
Expand Down Expand Up @@ -333,12 +339,14 @@ internal struct CrashReportingWithRUMIntegration: CrashReportingIntegration {

let rumView = RUMViewEvent(
dd: .init(
browserSdkVersion: nil,
documentVersion: 1,
session: .init(plan: .plan1)
),
application: .init(
id: rumConfiguration.applicationID
),
ciTest: nil,
connectivity: RUMConnectivity(
networkInfo: crashContext.lastNetworkConnectionInfo,
carrierInfo: crashContext.lastCarrierInfo
Expand All @@ -351,6 +359,7 @@ internal struct CrashReportingWithRUMIntegration: CrashReportingIntegration {
id: sessionUUID.toRUMDataFormat,
type: .user
),
source: .ios,
synthetics: nil,
usr: crashContext.lastUserInfo.flatMap { RUMUser(userInfo: $0) },
view: .init(
Expand Down
Loading