Skip to content

Commit

Permalink
use v2 format for replica application overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaudan committed Nov 23, 2020
1 parent 22d291b commit cdf9af0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/rum/src/transport/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ function makeRumBatch(configuration: Configuration, lifeCycle: LifeCycle): RumBa
}

function withReplicaApplicationId(message: Context) {
const applicationIdOverwrite = configuration.isEnabled('v2_format')
? { application: { id: replica!.applicationId } }
: { application_id: replica!.applicationId }
return combine(message, applicationIdOverwrite)
return combine(message, { application: { id: replica!.applicationId } })
}

let stopped = false
Expand Down

0 comments on commit cdf9af0

Please sign in to comment.