Skip to content

Commit

Permalink
Update RUM Schema
Browse files Browse the repository at this point in the history
Adds support for flutter error source (RUMM-1900)
  • Loading branch information
fuzzybinary committed Jan 11, 2022
1 parent 79c63be commit d2172ad
Show file tree
Hide file tree
Showing 7 changed files with 297 additions and 4 deletions.
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 Down Expand Up @@ -271,10 +273,12 @@ 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
Expand Down Expand Up @@ -333,12 +337,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 Down
Loading

0 comments on commit d2172ad

Please sign in to comment.