Skip to content

Commit

Permalink
πŸ’₯ always use alternative domains for RUM (#944)
Browse files Browse the repository at this point in the history
* πŸ’₯ Remove useAlternateIntakeDomains option from RUM

* πŸ‘Œ Set useAlternateIntakeDomains to true for RUM
  • Loading branch information
amortemousque committed Jul 21, 2021
1 parent f084e8b commit 6fd361c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/rum-core/src/boot/rumPublicApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ import { RumEvent } from '../rumEvent.types'
import { buildEnv } from './buildEnv'
import { startRum } from './startRum'

const droppedConfigurationOptions = ['publicApiKey' as const, 'datacenter' as const]
const droppedConfigurationOptions = [
'publicApiKey' as const,
'datacenter' as const,
'useAlternateIntakeDomains' as const,
]
type DroppedConfigurationOptions = typeof droppedConfigurationOptions[number]

export interface RumInitConfiguration extends Omit<InitConfiguration, DroppedConfigurationOptions> {
Expand Down Expand Up @@ -103,7 +107,10 @@ export function makeRumPublicApi<C extends RumInitConfiguration>(startRumImpl: S

droppedConfigurationOptions.forEach((option) => delete (initConfiguration as InitConfiguration)[option])

const { configuration, internalMonitoring } = commonInit(initConfiguration, buildEnv)
const { configuration, internalMonitoring } = commonInit(
{ ...initConfiguration, useAlternateIntakeDomains: true },
buildEnv
)
if (!configuration.trackViewsManually) {
doStartRum(initConfiguration, configuration, internalMonitoring)
} else {
Expand Down

0 comments on commit 6fd361c

Please sign in to comment.