/** * Entry point consumed by the Datadog Synthetics worker to automatically inject a RUM SDK instance * in test runs. * * WARNING: this module is not intended for public usages, and won't follow semver for breaking * changes. */ import { makeRumPublicApi } from '@datadog/browser-rum-core' import { makeRecorderApi } from '../boot/recorderApi' import { makeProfilerApi } from '../boot/profilerApi' export { DefaultPrivacyLevel } from '@datadog/browser-core' // Disable the rule that forbids potential side effects, because we know that those functions don't // have side effects. /* eslint-disable local-rules/disallow-side-effects */ const recorderApi = makeRecorderApi() const profilerApi = makeProfilerApi() export const datadogRum = makeRumPublicApi(recorderApi, profilerApi, { ignoreInitIfSyntheticsWillInjectRum: false, sdkName: 'rum-synthetics', }) /* eslint-enable local-rules/disallow-side-effects */