diff --git a/.changeset/smooth-hornets-smash.md b/.changeset/smooth-hornets-smash.md new file mode 100644 index 00000000..8678e88d --- /dev/null +++ b/.changeset/smooth-hornets-smash.md @@ -0,0 +1,5 @@ +--- +'@hyperdx/browser': patch +--- + +Add ignoreUrls config diff --git a/packages/browser/src/index.ts b/packages/browser/src/index.ts index 484e484f..437a4c35 100644 --- a/packages/browser/src/index.ts +++ b/packages/browser/src/index.ts @@ -7,6 +7,7 @@ import { resolveAsyncGlobal } from './utils'; import type { RumOtelWebConfig } from '@hyperdx/otel-web'; type Instrumentations = RumOtelWebConfig['instrumentations']; +type IgnoreUrls = RumOtelWebConfig['ignoreUrls']; type BrowserSDKConfig = { advancedNetworkCapture?: boolean; @@ -19,6 +20,7 @@ type BrowserSDKConfig = { disableReplay?: boolean; ignoreClass?: string; instrumentations?: Instrumentations; + ignoreUrls?: IgnoreUrls; maskAllInputs?: boolean; maskAllText?: boolean; maskClass?: string; @@ -48,6 +50,7 @@ class Browser { disableReplay = false, ignoreClass, instrumentations = {}, + ignoreUrls, maskAllInputs = true, maskAllText = false, maskClass, @@ -81,6 +84,7 @@ class Browser { allowInsecureUrl: true, apiKey, app: service, + ignoreUrls, instrumentations: { visibility: true, console: captureConsole ?? consoleCapture ?? false,