diff --git a/.github/workflows/api-docs-release.yml b/.github/workflows/api-docs-release.yml new file mode 100644 index 0000000000..6162662bbc --- /dev/null +++ b/.github/workflows/api-docs-release.yml @@ -0,0 +1,71 @@ +name: Publish API Documentation on Release + +permissions: + contents: read + pages: write + id-token: write + +on: + push: + branches: + - romanG/api-reference + tags: + - 'v*.*.*' + workflow_dispatch: + +concurrency: + group: 'api-docs-release' + cancel-in-progress: false + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'yarn' + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.1' + bundler-cache: true + + - name: Install Node dependencies + run: yarn install --frozen-lockfile + + - name: Build TS declarations + run: yarn build + + - name: Build types and generate API docs + run: | + echo "Building API documentation for version ${{ steps.version.outputs.version }}" + yarn docs:api + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Build with Jekyll + run: | + bundle exec jekyll build --source docs --destination _site --config _config_docs.yml + env: + JEKYLL_ENV: production + PAGES_REPO_NWO: ${{ github.repository }} + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000000..57d615bc20 --- /dev/null +++ b/Gemfile @@ -0,0 +1,12 @@ +source "https://rubygems.org" + +gem "github-pages", group: :jekyll_plugins + +group :jekyll_plugins do + gem "jekyll-sitemap" + gem "jekyll-seo-tag" + gem "jekyll-relative-links" + gem "jekyll-remote-theme" +end + +gem "webrick", "~> 1.7" \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000000..40f8fa50c3 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,309 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (7.2.2.1) + base64 + benchmark (>= 0.3) + bigdecimal + concurrent-ruby (~> 1.0, >= 1.3.1) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + logger (>= 1.4.2) + minitest (>= 5.1) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) + addressable (2.8.7) + public_suffix (>= 2.0.2, < 7.0) + base64 (0.2.0) + benchmark (0.4.1) + bigdecimal (3.2.2) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + colorator (1.1.0) + commonmarker (0.23.11) + concurrent-ruby (1.3.5) + connection_pool (2.5.3) + dnsruby (1.72.4) + base64 (~> 0.2.0) + logger (~> 1.6.5) + simpleidn (~> 0.2.1) + drb (2.2.3) + em-websocket (0.5.3) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0) + ethon (0.16.0) + ffi (>= 1.15.0) + eventmachine (1.2.7) + execjs (2.10.0) + faraday (2.13.1) + faraday-net_http (>= 2.0, < 3.5) + json + logger + faraday-net_http (3.4.1) + net-http (>= 0.5.0) + ffi (1.17.2-aarch64-linux-gnu) + ffi (1.17.2-aarch64-linux-musl) + ffi (1.17.2-arm-linux-gnu) + ffi (1.17.2-arm-linux-musl) + ffi (1.17.2-arm64-darwin) + ffi (1.17.2-x86_64-darwin) + ffi (1.17.2-x86_64-linux-gnu) + ffi (1.17.2-x86_64-linux-musl) + forwardable-extended (2.6.0) + gemoji (4.1.0) + github-pages (230) + github-pages-health-check (= 1.18.2) + jekyll (= 3.9.5) + jekyll-avatar (= 0.8.0) + jekyll-coffeescript (= 1.2.2) + jekyll-commonmark-ghpages (= 0.4.0) + jekyll-default-layout (= 0.1.5) + jekyll-feed (= 0.17.0) + jekyll-gist (= 1.5.0) + jekyll-github-metadata (= 2.16.1) + jekyll-include-cache (= 0.2.1) + jekyll-mentions (= 1.6.0) + jekyll-optional-front-matter (= 0.3.2) + jekyll-paginate (= 1.1.0) + jekyll-readme-index (= 0.3.0) + jekyll-redirect-from (= 0.16.0) + jekyll-relative-links (= 0.7.0) + jekyll-remote-theme (= 0.4.3) + jekyll-sass-converter (= 1.5.2) + jekyll-seo-tag (= 2.8.0) + jekyll-sitemap (= 1.4.0) + jekyll-swiss (= 1.0.0) + jekyll-theme-architect (= 0.2.0) + jekyll-theme-cayman (= 0.2.0) + jekyll-theme-dinky (= 0.2.0) + jekyll-theme-hacker (= 0.2.0) + jekyll-theme-leap-day (= 0.2.0) + jekyll-theme-merlot (= 0.2.0) + jekyll-theme-midnight (= 0.2.0) + jekyll-theme-minimal (= 0.2.0) + jekyll-theme-modernist (= 0.2.0) + jekyll-theme-primer (= 0.6.0) + jekyll-theme-slate (= 0.2.0) + jekyll-theme-tactile (= 0.2.0) + jekyll-theme-time-machine (= 0.2.0) + jekyll-titles-from-headings (= 0.5.3) + jemoji (= 0.13.0) + kramdown (= 2.4.0) + kramdown-parser-gfm (= 1.1.0) + liquid (= 4.0.4) + mercenary (~> 0.3) + minima (= 2.5.1) + nokogiri (>= 1.13.6, < 2.0) + rouge (= 3.30.0) + terminal-table (~> 1.4) + github-pages-health-check (1.18.2) + addressable (~> 2.3) + dnsruby (~> 1.60) + octokit (>= 4, < 8) + public_suffix (>= 3.0, < 6.0) + typhoeus (~> 1.3) + html-pipeline (2.14.3) + activesupport (>= 2) + nokogiri (>= 1.4) + http_parser.rb (0.8.0) + i18n (1.14.7) + concurrent-ruby (~> 1.0) + jekyll (3.9.5) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (>= 0.7, < 2) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (>= 1.17, < 3) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-avatar (0.8.0) + jekyll (>= 3.0, < 5.0) + jekyll-coffeescript (1.2.2) + coffee-script (~> 2.2) + coffee-script-source (~> 1.12) + jekyll-commonmark (1.4.0) + commonmarker (~> 0.22) + jekyll-commonmark-ghpages (0.4.0) + commonmarker (~> 0.23.7) + jekyll (~> 3.9.0) + jekyll-commonmark (~> 1.4.0) + rouge (>= 2.0, < 5.0) + jekyll-default-layout (0.1.5) + jekyll (>= 3.0, < 5.0) + jekyll-feed (0.17.0) + jekyll (>= 3.7, < 5.0) + jekyll-gist (1.5.0) + octokit (~> 4.2) + jekyll-github-metadata (2.16.1) + jekyll (>= 3.4, < 5.0) + octokit (>= 4, < 7, != 4.4.0) + jekyll-include-cache (0.2.1) + jekyll (>= 3.7, < 5.0) + jekyll-mentions (1.6.0) + html-pipeline (~> 2.3) + jekyll (>= 3.7, < 5.0) + jekyll-optional-front-matter (0.3.2) + jekyll (>= 3.0, < 5.0) + jekyll-paginate (1.1.0) + jekyll-readme-index (0.3.0) + jekyll (>= 3.0, < 5.0) + jekyll-redirect-from (0.16.0) + jekyll (>= 3.3, < 5.0) + jekyll-relative-links (0.7.0) + jekyll (>= 3.3, < 5.0) + jekyll-remote-theme (0.4.3) + addressable (~> 2.0) + jekyll (>= 3.5, < 5.0) + jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0) + rubyzip (>= 1.3.0, < 3.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.8.0) + jekyll (>= 3.8, < 5.0) + jekyll-sitemap (1.4.0) + jekyll (>= 3.7, < 5.0) + jekyll-swiss (1.0.0) + jekyll-theme-architect (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-cayman (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-dinky (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-hacker (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-leap-day (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-merlot (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-midnight (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-minimal (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-modernist (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-primer (0.6.0) + jekyll (> 3.5, < 5.0) + jekyll-github-metadata (~> 2.9) + jekyll-seo-tag (~> 2.0) + jekyll-theme-slate (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-tactile (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-time-machine (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-titles-from-headings (0.5.3) + jekyll (>= 3.3, < 5.0) + jekyll-watch (2.2.1) + listen (~> 3.0) + jemoji (0.13.0) + gemoji (>= 3, < 5) + html-pipeline (~> 2.2) + jekyll (>= 3.0, < 5.0) + json (2.12.2) + kramdown (2.4.0) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + liquid (4.0.4) + listen (3.9.0) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + logger (1.6.6) + mercenary (0.3.6) + minima (2.5.1) + jekyll (>= 3.5, < 5.0) + jekyll-feed (~> 0.9) + jekyll-seo-tag (~> 2.1) + minitest (5.25.5) + net-http (0.6.0) + uri + nokogiri (1.18.8-aarch64-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.8-aarch64-linux-musl) + racc (~> 1.4) + nokogiri (1.18.8-arm-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.8-arm-linux-musl) + racc (~> 1.4) + nokogiri (1.18.8-arm64-darwin) + racc (~> 1.4) + nokogiri (1.18.8-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.18.8-x86_64-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.8-x86_64-linux-musl) + racc (~> 1.4) + octokit (4.25.1) + faraday (>= 1, < 3) + sawyer (~> 0.9) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (5.1.1) + racc (1.8.1) + rb-fsevent (0.11.2) + rb-inotify (0.11.1) + ffi (~> 1.0) + rexml (3.4.1) + rouge (3.30.0) + rubyzip (2.4.1) + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sawyer (0.9.2) + addressable (>= 2.3.5) + faraday (>= 0.17.3, < 3) + securerandom (0.4.1) + simpleidn (0.2.3) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + typhoeus (1.4.1) + ethon (>= 0.9.0) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unicode-display_width (1.8.0) + uri (1.0.3) + webrick (1.9.1) + +PLATFORMS + aarch64-linux-gnu + aarch64-linux-musl + arm-linux-gnu + arm-linux-musl + arm64-darwin + x86_64-darwin + x86_64-linux-gnu + x86_64-linux-musl + +DEPENDENCIES + github-pages + jekyll-relative-links + jekyll-remote-theme + jekyll-seo-tag + jekyll-sitemap + webrick (~> 1.7) + +BUNDLED WITH + 2.6.9 diff --git a/_config_docs.yml b/_config_docs.yml new file mode 100644 index 0000000000..cdc88fbb89 --- /dev/null +++ b/_config_docs.yml @@ -0,0 +1,33 @@ + +title: "Datadog Browser SDK Docs" +description: "API documentation for the Datadog Browser SDK." + +url: "https://datadoghq.dev" +baseurl: "/browser-sdk" + + +remote_theme: "just-the-docs/just-the-docs" + +just_the_docs: + search_enabled: true + nav_depth: 2 + +plugins: + - jekyll-remote-theme + - jekyll-seo-tag + - jekyll-sitemap + - jekyll-relative-links + +exclude: + - node_modules/ + - vendor/ + - Gemfile* + - package*.json + - yarn.lock + - _site/ + +defaults: + - scope: + path: "" + values: + layout: "default" diff --git a/docs/browser-logs.datadoglogs.md b/docs/browser-logs.datadoglogs.md new file mode 100644 index 0000000000..1484f0f44f --- /dev/null +++ b/docs/browser-logs.datadoglogs.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "datadogLogs variable" +nav_order: 207 +permalink: /browser-logs.datadoglogs.html +--- + + + +Home > @datadog/browser-logs > datadogLogs + +## datadogLogs variable + +The global Logs instance. Use this to call Logs methods. + +**Signature:** + +```typescript +datadogLogs: LogsPublicApi +``` diff --git a/docs/browser-logs.handlertype.md b/docs/browser-logs.handlertype.md new file mode 100644 index 0000000000..b46b306e33 --- /dev/null +++ b/docs/browser-logs.handlertype.md @@ -0,0 +1,24 @@ +--- +layout: default +title: "HandlerType variable" +nav_order: 206 +permalink: /browser-logs.handlertype.html +--- + + + +Home > @datadog/browser-logs > HandlerType + +## HandlerType variable + +Defines the types of handlers for processing logs: console, HTTP, or silent. + +**Signature:** + +```typescript +HandlerType: { + readonly console: "console"; + readonly http: "http"; + readonly silent: "silent"; +} +``` diff --git a/docs/browser-logs.logger._constructor_.md b/docs/browser-logs.logger._constructor_.md new file mode 100644 index 0000000000..7483d7fb90 --- /dev/null +++ b/docs/browser-logs.logger._constructor_.md @@ -0,0 +1,118 @@ +--- +layout: default +title: "Logger.(constructor)" +nav_order: 205 +permalink: /browser-logs.logger._constructor_.html +--- + + + +Home > @datadog/browser-logs > Logger > (constructor) + +## Logger.(constructor) + +Constructs a new instance of the `Logger` class + +**Signature:** + +```typescript +constructor(handleLogStrategy: (logsMessage: LogsMessage, logger: Logger, handlingStack?: string) => void, name?: string, handlerType?: HandlerType | HandlerType[], level?: StatusType, loggerContext?: object); +``` + +## Parameters + + + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +handleLogStrategy + + + + +(logsMessage: LogsMessage, logger: Logger, handlingStack?: string) => void + + + + + +
+ +name + + + + +string + + + + +(Optional) + + +
+ +handlerType + + + + +HandlerType | HandlerType\[\] + + + + +(Optional) + + +
+ +level + + + + +StatusType + + + + +(Optional) + + +
+ +loggerContext + + + + +object + + + + +(Optional) + + +
diff --git a/docs/browser-logs.logger.alert.md b/docs/browser-logs.logger.alert.md new file mode 100644 index 0000000000..de6669b6b3 --- /dev/null +++ b/docs/browser-logs.logger.alert.md @@ -0,0 +1,90 @@ +--- +layout: default +title: "Logger.alert() method" +nav_order: 204 +permalink: /browser-logs.logger.alert.html +--- + + + +Home > @datadog/browser-logs > Logger > alert + +## Logger.alert() method + +Add an ALERT log (action must be taken immediately). + +**Signature:** + +```typescript +alert(message: string, messageContext?: object, error?: Error): void; +``` + +## Parameters + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.clearcontext.md b/docs/browser-logs.logger.clearcontext.md new file mode 100644 index 0000000000..ffa5608649 --- /dev/null +++ b/docs/browser-logs.logger.clearcontext.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "Logger.clearContext() method" +nav_order: 203 +permalink: /browser-logs.logger.clearcontext.html +--- + + + +Home > @datadog/browser-logs > Logger > clearContext + +## Logger.clearContext() method + +**Signature:** + +```typescript +clearContext(): void; +``` +**Returns:** + +void + diff --git a/docs/browser-logs.logger.critical.md b/docs/browser-logs.logger.critical.md new file mode 100644 index 0000000000..eb9665f13c --- /dev/null +++ b/docs/browser-logs.logger.critical.md @@ -0,0 +1,90 @@ +--- +layout: default +title: "Logger.critical() method" +nav_order: 202 +permalink: /browser-logs.logger.critical.html +--- + + + +Home > @datadog/browser-logs > Logger > critical + +## Logger.critical() method + +Add a CRITICAL log (serious failure). + +**Signature:** + +```typescript +critical(message: string, messageContext?: object, error?: Error): void; +``` + +## Parameters + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.debug.md b/docs/browser-logs.logger.debug.md new file mode 100644 index 0000000000..8c5bc60c61 --- /dev/null +++ b/docs/browser-logs.logger.debug.md @@ -0,0 +1,90 @@ +--- +layout: default +title: "Logger.debug() method" +nav_order: 201 +permalink: /browser-logs.logger.debug.html +--- + + + +Home > @datadog/browser-logs > Logger > debug + +## Logger.debug() method + +Add a DEBUG log (developer usage). + +**Signature:** + +```typescript +debug(message: string, messageContext?: object, error?: Error): void; +``` + +## Parameters + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.emerg.md b/docs/browser-logs.logger.emerg.md new file mode 100644 index 0000000000..3a82378a00 --- /dev/null +++ b/docs/browser-logs.logger.emerg.md @@ -0,0 +1,90 @@ +--- +layout: default +title: "Logger.emerg() method" +nav_order: 200 +permalink: /browser-logs.logger.emerg.html +--- + + + +Home > @datadog/browser-logs > Logger > emerg + +## Logger.emerg() method + +Add an EMERGENCY log (system is unusable). + +**Signature:** + +```typescript +emerg(message: string, messageContext?: object, error?: Error): void; +``` + +## Parameters + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.error.md b/docs/browser-logs.logger.error.md new file mode 100644 index 0000000000..bfe9085364 --- /dev/null +++ b/docs/browser-logs.logger.error.md @@ -0,0 +1,90 @@ +--- +layout: default +title: "Logger.error() method" +nav_order: 199 +permalink: /browser-logs.logger.error.html +--- + + + +Home > @datadog/browser-logs > Logger > error + +## Logger.error() method + +Add an ERROR log (runtime error). + +**Signature:** + +```typescript +error(message: string, messageContext?: object, error?: Error): void; +``` + +## Parameters + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.getcontext.md b/docs/browser-logs.logger.getcontext.md new file mode 100644 index 0000000000..f0667bf198 --- /dev/null +++ b/docs/browser-logs.logger.getcontext.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "Logger.getContext() method" +nav_order: 198 +permalink: /browser-logs.logger.getcontext.html +--- + + + +Home > @datadog/browser-logs > Logger > getContext + +## Logger.getContext() method + +**Signature:** + +```typescript +getContext(): Context; +``` +**Returns:** + +Context + diff --git a/docs/browser-logs.logger.gethandler.md b/docs/browser-logs.logger.gethandler.md new file mode 100644 index 0000000000..14c68116d0 --- /dev/null +++ b/docs/browser-logs.logger.gethandler.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "Logger.getHandler() method" +nav_order: 197 +permalink: /browser-logs.logger.gethandler.html +--- + + + +Home > @datadog/browser-logs > Logger > getHandler + +## Logger.getHandler() method + +**Signature:** + +```typescript +getHandler(): HandlerType | HandlerType[]; +``` +**Returns:** + +HandlerType | HandlerType\[\] + diff --git a/docs/browser-logs.logger.getlevel.md b/docs/browser-logs.logger.getlevel.md new file mode 100644 index 0000000000..11bfc55820 --- /dev/null +++ b/docs/browser-logs.logger.getlevel.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "Logger.getLevel() method" +nav_order: 196 +permalink: /browser-logs.logger.getlevel.html +--- + + + +Home > @datadog/browser-logs > Logger > getLevel + +## Logger.getLevel() method + +**Signature:** + +```typescript +getLevel(): StatusType; +``` +**Returns:** + +StatusType + diff --git a/docs/browser-logs.logger.info.md b/docs/browser-logs.logger.info.md new file mode 100644 index 0000000000..cb715d82cd --- /dev/null +++ b/docs/browser-logs.logger.info.md @@ -0,0 +1,90 @@ +--- +layout: default +title: "Logger.info() method" +nav_order: 195 +permalink: /browser-logs.logger.info.html +--- + + + +Home > @datadog/browser-logs > Logger > info + +## Logger.info() method + +Add an INFO log (notable but expected). + +**Signature:** + +```typescript +info(message: string, messageContext?: object, error?: Error): void; +``` + +## Parameters + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.log.md b/docs/browser-logs.logger.log.md new file mode 100644 index 0000000000..13f730f7e5 --- /dev/null +++ b/docs/browser-logs.logger.log.md @@ -0,0 +1,104 @@ +--- +layout: default +title: "Logger.log() method" +nav_order: 194 +permalink: /browser-logs.logger.log.html +--- + + + +Home > @datadog/browser-logs > Logger > log + +## Logger.log() method + +**Signature:** + +```typescript +log(message: string, messageContext?: object, status?: StatusType, error?: Error): void; +``` + +## Parameters + + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +status + + + + +StatusType + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.logimplementation.md b/docs/browser-logs.logger.logimplementation.md new file mode 100644 index 0000000000..087d6c96e1 --- /dev/null +++ b/docs/browser-logs.logger.logimplementation.md @@ -0,0 +1,120 @@ +--- +layout: default +title: "Logger.logImplementation() method" +nav_order: 193 +permalink: /browser-logs.logger.logimplementation.html +--- + + + +Home > @datadog/browser-logs > Logger > logImplementation + +## Logger.logImplementation() method + +**Signature:** + +```typescript +logImplementation(message: string, messageContext?: object, status?: StatusType, error?: Error, handlingStack?: string): void; +``` + +## Parameters + + + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +status + + + + +StatusType + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+ +handlingStack + + + + +string + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.md b/docs/browser-logs.logger.md new file mode 100644 index 0000000000..f99011c433 --- /dev/null +++ b/docs/browser-logs.logger.md @@ -0,0 +1,134 @@ +--- +layout: default +title: "Logger interface" +nav_order: 192 +permalink: /browser-logs.logger.html +--- + + + +Home > @datadog/browser-logs > Logger + +## Logger interface + +Provides convenience methods for logging at each supported level. Each method accepts a message, optional context, and an optional error. + +**Signature:** + +```typescript +export interface Logger +``` + +## Methods + + + + + + + + + + + +
+ +Method + + + + +Description + + +
+ +alert(message, messageContext, error) + + + + +Add an ALERT log (action must be taken immediately). + + +
+ +critical(message, messageContext, error) + + + + +Add a CRITICAL log (serious failure). + + +
+ +debug(message, messageContext, error) + + + + +Add a DEBUG log (developer usage). + + +
+ +emerg(message, messageContext, error) + + + + +Add an EMERGENCY log (system is unusable). + + +
+ +error(message, messageContext, error) + + + + +Add an ERROR log (runtime error). + + +
+ +info(message, messageContext, error) + + + + +Add an INFO log (notable but expected). + + +
+ +notice(message, messageContext, error) + + + + +Add a NOTICE log (normal but significant). + + +
+ +ok(message, messageContext, error) + + + + +Add an OK log (success). + + +
+ +warn(message, messageContext, error) + + + + +Add a WARN log (unexpected behaviour). + + +
diff --git a/docs/browser-logs.logger.notice.md b/docs/browser-logs.logger.notice.md new file mode 100644 index 0000000000..057392923b --- /dev/null +++ b/docs/browser-logs.logger.notice.md @@ -0,0 +1,90 @@ +--- +layout: default +title: "Logger.notice() method" +nav_order: 191 +permalink: /browser-logs.logger.notice.html +--- + + + +Home > @datadog/browser-logs > Logger > notice + +## Logger.notice() method + +Add a NOTICE log (normal but significant). + +**Signature:** + +```typescript +notice(message: string, messageContext?: object, error?: Error): void; +``` + +## Parameters + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.ok.md b/docs/browser-logs.logger.ok.md new file mode 100644 index 0000000000..73d7031858 --- /dev/null +++ b/docs/browser-logs.logger.ok.md @@ -0,0 +1,90 @@ +--- +layout: default +title: "Logger.ok() method" +nav_order: 190 +permalink: /browser-logs.logger.ok.html +--- + + + +Home > @datadog/browser-logs > Logger > ok + +## Logger.ok() method + +Add an OK log (success). + +**Signature:** + +```typescript +ok(message: string, messageContext?: object, error?: Error): void; +``` + +## Parameters + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.removecontextproperty.md b/docs/browser-logs.logger.removecontextproperty.md new file mode 100644 index 0000000000..92f743c8bc --- /dev/null +++ b/docs/browser-logs.logger.removecontextproperty.md @@ -0,0 +1,56 @@ +--- +layout: default +title: "Logger.removeContextProperty() method" +nav_order: 189 +permalink: /browser-logs.logger.removecontextproperty.html +--- + + + +Home > @datadog/browser-logs > Logger > removeContextProperty + +## Logger.removeContextProperty() method + +**Signature:** + +```typescript +removeContextProperty(key: string): void; +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +key + + + + +string + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.setcontext.md b/docs/browser-logs.logger.setcontext.md new file mode 100644 index 0000000000..a56a0c4ea6 --- /dev/null +++ b/docs/browser-logs.logger.setcontext.md @@ -0,0 +1,56 @@ +--- +layout: default +title: "Logger.setContext() method" +nav_order: 188 +permalink: /browser-logs.logger.setcontext.html +--- + + + +Home > @datadog/browser-logs > Logger > setContext + +## Logger.setContext() method + +**Signature:** + +```typescript +setContext(context: object): void; +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +context + + + + +object + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.setcontextproperty.md b/docs/browser-logs.logger.setcontextproperty.md new file mode 100644 index 0000000000..7587141b23 --- /dev/null +++ b/docs/browser-logs.logger.setcontextproperty.md @@ -0,0 +1,70 @@ +--- +layout: default +title: "Logger.setContextProperty() method" +nav_order: 187 +permalink: /browser-logs.logger.setcontextproperty.html +--- + + + +Home > @datadog/browser-logs > Logger > setContextProperty + +## Logger.setContextProperty() method + +**Signature:** + +```typescript +setContextProperty(key: string, value: any): void; +``` + +## Parameters + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +key + + + + +string + + + + + +
+ +value + + + + +any + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.sethandler.md b/docs/browser-logs.logger.sethandler.md new file mode 100644 index 0000000000..c8e818ee77 --- /dev/null +++ b/docs/browser-logs.logger.sethandler.md @@ -0,0 +1,56 @@ +--- +layout: default +title: "Logger.setHandler() method" +nav_order: 186 +permalink: /browser-logs.logger.sethandler.html +--- + + + +Home > @datadog/browser-logs > Logger > setHandler + +## Logger.setHandler() method + +**Signature:** + +```typescript +setHandler(handler: HandlerType | HandlerType[]): void; +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +handler + + + + +HandlerType | HandlerType\[\] + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.setlevel.md b/docs/browser-logs.logger.setlevel.md new file mode 100644 index 0000000000..f7059ef2bb --- /dev/null +++ b/docs/browser-logs.logger.setlevel.md @@ -0,0 +1,56 @@ +--- +layout: default +title: "Logger.setLevel() method" +nav_order: 185 +permalink: /browser-logs.logger.setlevel.html +--- + + + +Home > @datadog/browser-logs > Logger > setLevel + +## Logger.setLevel() method + +**Signature:** + +```typescript +setLevel(level: StatusType): void; +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +level + + + + +StatusType + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logger.warn.md b/docs/browser-logs.logger.warn.md new file mode 100644 index 0000000000..f6a9750bc6 --- /dev/null +++ b/docs/browser-logs.logger.warn.md @@ -0,0 +1,90 @@ +--- +layout: default +title: "Logger.warn() method" +nav_order: 184 +permalink: /browser-logs.logger.warn.html +--- + + + +Home > @datadog/browser-logs > Logger > warn + +## Logger.warn() method + +Add a WARN log (unexpected behaviour). + +**Signature:** + +```typescript +warn(message: string, messageContext?: object, error?: Error): void; +``` + +## Parameters + + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +message + + + + +string + + + + + +
+ +messageContext + + + + +object + + + + +(Optional) + + +
+ +error + + + + +Error + + + + +(Optional) + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.loggerconfiguration.context.md b/docs/browser-logs.loggerconfiguration.context.md new file mode 100644 index 0000000000..d3b291ddeb --- /dev/null +++ b/docs/browser-logs.loggerconfiguration.context.md @@ -0,0 +1,18 @@ +--- +layout: default +title: "LoggerConfiguration.context property" +nav_order: 183 +permalink: /browser-logs.loggerconfiguration.context.html +--- + + + +Home > @datadog/browser-logs > LoggerConfiguration > context + +## LoggerConfiguration.context property + +**Signature:** + +```typescript +context?: object; +``` diff --git a/docs/browser-logs.loggerconfiguration.handler.md b/docs/browser-logs.loggerconfiguration.handler.md new file mode 100644 index 0000000000..817004ae97 --- /dev/null +++ b/docs/browser-logs.loggerconfiguration.handler.md @@ -0,0 +1,18 @@ +--- +layout: default +title: "LoggerConfiguration.handler property" +nav_order: 182 +permalink: /browser-logs.loggerconfiguration.handler.html +--- + + + +Home > @datadog/browser-logs > LoggerConfiguration > handler + +## LoggerConfiguration.handler property + +**Signature:** + +```typescript +handler?: HandlerType | HandlerType[]; +``` diff --git a/docs/browser-logs.loggerconfiguration.level.md b/docs/browser-logs.loggerconfiguration.level.md new file mode 100644 index 0000000000..2fb14e0ba1 --- /dev/null +++ b/docs/browser-logs.loggerconfiguration.level.md @@ -0,0 +1,18 @@ +--- +layout: default +title: "LoggerConfiguration.level property" +nav_order: 181 +permalink: /browser-logs.loggerconfiguration.level.html +--- + + + +Home > @datadog/browser-logs > LoggerConfiguration > level + +## LoggerConfiguration.level property + +**Signature:** + +```typescript +level?: StatusType; +``` diff --git a/docs/browser-logs.loggerconfiguration.md b/docs/browser-logs.loggerconfiguration.md new file mode 100644 index 0000000000..e3ff9832be --- /dev/null +++ b/docs/browser-logs.loggerconfiguration.md @@ -0,0 +1,102 @@ +--- +layout: default +title: "LoggerConfiguration interface" +nav_order: 180 +permalink: /browser-logs.loggerconfiguration.html +--- + + + +Home > @datadog/browser-logs > LoggerConfiguration + +## LoggerConfiguration interface + +Configuration options for a logger. Includes the log level to determine the severity of logs, the handler(s) responsible for processing log messages, and an optional context object to provide additional metadata for logs. + +**Signature:** + +```typescript +export interface LoggerConfiguration +``` + +## Properties + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +context? + + + + + + + +object + + + + +(Optional) + + +
+ +handler? + + + + + + + +HandlerType | HandlerType\[\] + + + + +(Optional) + + +
+ +level? + + + + + + + +StatusType + + + + +(Optional) + + +
diff --git a/docs/browser-logs.logsevent.application_id.md b/docs/browser-logs.logsevent.application_id.md new file mode 100644 index 0000000000..0f0c55bd9c --- /dev/null +++ b/docs/browser-logs.logsevent.application_id.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsEvent.application_id property" +nav_order: 179 +permalink: /browser-logs.logsevent.application_id.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > application_id + +## LogsEvent.application_id property + +UUID of the application + +**Signature:** + +```typescript +application_id?: string; +``` diff --git a/docs/browser-logs.logsevent.date.md b/docs/browser-logs.logsevent.date.md new file mode 100644 index 0000000000..5f22734722 --- /dev/null +++ b/docs/browser-logs.logsevent.date.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsEvent.date property" +nav_order: 178 +permalink: /browser-logs.logsevent.date.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > date + +## LogsEvent.date property + +Start of the log in ms from epoch + +**Signature:** + +```typescript +date: number; +``` diff --git a/docs/browser-logs.logsevent.error.md b/docs/browser-logs.logsevent.error.md new file mode 100644 index 0000000000..457cdaa9b9 --- /dev/null +++ b/docs/browser-logs.logsevent.error.md @@ -0,0 +1,32 @@ +--- +layout: default +title: "LogsEvent.error property" +nav_order: 177 +permalink: /browser-logs.logsevent.error.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > error + +## LogsEvent.error property + +Error properties + +**Signature:** + +```typescript +error?: { + kind?: string; + stack?: string; + fingerprint?: string; + message?: string; + causes?: Array<{ + message: string; + source: string; + type?: string; + stack?: string; + }>; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-logs.logsevent.http.md b/docs/browser-logs.logsevent.http.md new file mode 100644 index 0000000000..2a86e91cdd --- /dev/null +++ b/docs/browser-logs.logsevent.http.md @@ -0,0 +1,25 @@ +--- +layout: default +title: "LogsEvent.http property" +nav_order: 176 +permalink: /browser-logs.logsevent.http.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > http + +## LogsEvent.http property + +Resource properties of the error + +**Signature:** + +```typescript +http?: { + method: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH'; + status_code: number; + url: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-logs.logsevent.logger.md b/docs/browser-logs.logsevent.logger.md new file mode 100644 index 0000000000..6be918b1a5 --- /dev/null +++ b/docs/browser-logs.logsevent.logger.md @@ -0,0 +1,23 @@ +--- +layout: default +title: "LogsEvent.logger property" +nav_order: 175 +permalink: /browser-logs.logsevent.logger.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > logger + +## LogsEvent.logger property + +Logger properties + +**Signature:** + +```typescript +logger?: { + name: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-logs.logsevent.md b/docs/browser-logs.logsevent.md new file mode 100644 index 0000000000..1d47b18549 --- /dev/null +++ b/docs/browser-logs.logsevent.md @@ -0,0 +1,273 @@ +--- +layout: default +title: "LogsEvent interface" +nav_order: 174 +permalink: /browser-logs.logsevent.html +--- + + + +Home > @datadog/browser-logs > LogsEvent + +## LogsEvent interface + +Represents a log event collected by the Datadog Browser Logs SDK, containing information such as message, context, and metadata. + +**Signature:** + +```typescript +export interface LogsEvent +``` + +## Properties + + + + + + + + + + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +application_id? + + + + + + + +string + + + + +(Optional) UUID of the application + + +
+ +date + + + + + + + +number + + + + +Start of the log in ms from epoch + + +
+ +error? + + + + + + + +{ kind?: string; stack?: string; fingerprint?: string; message?: string; causes?: Array<{ message: string; source: string; type?: string; stack?: string; }>; \[k: string\]: unknown; } + + + + +(Optional) Error properties + + +
+ +http? + + + + + + + +{ method: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH'; status_code: number; url: string; \[k: string\]: unknown; } + + + + +(Optional) Resource properties of the error + + +
+ +logger? + + + + + + + +{ name: string; \[k: string\]: unknown; } + + + + +(Optional) Logger properties + + +
+ +message + + + + + + + +string + + + + +The log message + + +
+ +origin + + + + + + + +'network' | 'source' | 'console' | 'logger' | 'agent' | 'report' + + + + +Origin of the log + + +
+ +service? + + + + + + + +string + + + + +(Optional) The service name + + +
+ +session_id? + + + + + + + +string + + + + +(Optional) UUID of the session (deprecated in favor of session.id) + + +
+ +session? + + + + + + + +{ id?: string; \[k: string\]: unknown; } + + + + +(Optional) Session properties + + +
+ +status + + + + + + + +'ok' | 'debug' | 'info' | 'notice' | 'warn' | 'error' | 'critical' | 'alert' | 'emerg' + + + + +The log status + + +
+ +view + + + + + + + +{ referrer?: string; url: string; id?: string; \[k: string\]: unknown; } + + + + +View properties + + +
diff --git a/docs/browser-logs.logsevent.message.md b/docs/browser-logs.logsevent.message.md new file mode 100644 index 0000000000..f0774a6dc0 --- /dev/null +++ b/docs/browser-logs.logsevent.message.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsEvent.message property" +nav_order: 173 +permalink: /browser-logs.logsevent.message.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > message + +## LogsEvent.message property + +The log message + +**Signature:** + +```typescript +message: string; +``` diff --git a/docs/browser-logs.logsevent.origin.md b/docs/browser-logs.logsevent.origin.md new file mode 100644 index 0000000000..d149bf5079 --- /dev/null +++ b/docs/browser-logs.logsevent.origin.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsEvent.origin property" +nav_order: 172 +permalink: /browser-logs.logsevent.origin.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > origin + +## LogsEvent.origin property + +Origin of the log + +**Signature:** + +```typescript +origin: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'report'; +``` diff --git a/docs/browser-logs.logsevent.service.md b/docs/browser-logs.logsevent.service.md new file mode 100644 index 0000000000..0a71881384 --- /dev/null +++ b/docs/browser-logs.logsevent.service.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsEvent.service property" +nav_order: 171 +permalink: /browser-logs.logsevent.service.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > service + +## LogsEvent.service property + +The service name + +**Signature:** + +```typescript +service?: string; +``` diff --git a/docs/browser-logs.logsevent.session.md b/docs/browser-logs.logsevent.session.md new file mode 100644 index 0000000000..07956560c9 --- /dev/null +++ b/docs/browser-logs.logsevent.session.md @@ -0,0 +1,23 @@ +--- +layout: default +title: "LogsEvent.session property" +nav_order: 170 +permalink: /browser-logs.logsevent.session.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > session + +## LogsEvent.session property + +Session properties + +**Signature:** + +```typescript +session?: { + id?: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-logs.logsevent.session_id.md b/docs/browser-logs.logsevent.session_id.md new file mode 100644 index 0000000000..002c76d2c3 --- /dev/null +++ b/docs/browser-logs.logsevent.session_id.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsEvent.session_id property" +nav_order: 169 +permalink: /browser-logs.logsevent.session_id.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > session_id + +## LogsEvent.session_id property + +UUID of the session (deprecated in favor of session.id) + +**Signature:** + +```typescript +session_id?: string; +``` diff --git a/docs/browser-logs.logsevent.status.md b/docs/browser-logs.logsevent.status.md new file mode 100644 index 0000000000..fa0c64849d --- /dev/null +++ b/docs/browser-logs.logsevent.status.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsEvent.status property" +nav_order: 168 +permalink: /browser-logs.logsevent.status.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > status + +## LogsEvent.status property + +The log status + +**Signature:** + +```typescript +status: 'ok' | 'debug' | 'info' | 'notice' | 'warn' | 'error' | 'critical' | 'alert' | 'emerg'; +``` diff --git a/docs/browser-logs.logsevent.view.md b/docs/browser-logs.logsevent.view.md new file mode 100644 index 0000000000..ee6f65733b --- /dev/null +++ b/docs/browser-logs.logsevent.view.md @@ -0,0 +1,25 @@ +--- +layout: default +title: "LogsEvent.view property" +nav_order: 167 +permalink: /browser-logs.logsevent.view.html +--- + + + +Home > @datadog/browser-logs > LogsEvent > view + +## LogsEvent.view property + +View properties + +**Signature:** + +```typescript +view: { + referrer?: string; + url: string; + id?: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-logs.logseventdomaincontext.md b/docs/browser-logs.logseventdomaincontext.md new file mode 100644 index 0000000000..be7c880795 --- /dev/null +++ b/docs/browser-logs.logseventdomaincontext.md @@ -0,0 +1,18 @@ +--- +layout: default +title: "LogsEventDomainContext type" +nav_order: 166 +permalink: /browser-logs.logseventdomaincontext.html +--- + + + +Home > @datadog/browser-logs > LogsEventDomainContext + +## LogsEventDomainContext type + +**Signature:** + +```typescript +export type LogsEventDomainContext = T extends typeof ErrorSource.NETWORK ? NetworkLogsEventDomainContext : T extends typeof ErrorSource.CONSOLE ? ConsoleLogsEventDomainContext : T extends typeof ErrorSource.LOGGER ? LoggerLogsEventDomainContext : never; +``` diff --git a/docs/browser-logs.logsglobal.clearaccount.md b/docs/browser-logs.logsglobal.clearaccount.md new file mode 100644 index 0000000000..29bfb15ae9 --- /dev/null +++ b/docs/browser-logs.logsglobal.clearaccount.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.clearAccount property" +nav_order: 165 +permalink: /browser-logs.logsglobal.clearaccount.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > clearAccount + +## LogsGlobal.clearAccount property + +Clear all account information + +**Signature:** + +```typescript +clearAccount: () => void; +``` diff --git a/docs/browser-logs.logsglobal.clearglobalcontext.md b/docs/browser-logs.logsglobal.clearglobalcontext.md new file mode 100644 index 0000000000..367c2b6cbb --- /dev/null +++ b/docs/browser-logs.logsglobal.clearglobalcontext.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "LogsGlobal.clearGlobalContext property" +nav_order: 164 +permalink: /browser-logs.logsglobal.clearglobalcontext.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > clearGlobalContext + +## LogsGlobal.clearGlobalContext property + +Clear the global context + +See \Overwrite context\ for further information. + +**Signature:** + +```typescript +clearGlobalContext: () => void; +``` diff --git a/docs/browser-logs.logsglobal.clearuser.md b/docs/browser-logs.logsglobal.clearuser.md new file mode 100644 index 0000000000..18f09ab934 --- /dev/null +++ b/docs/browser-logs.logsglobal.clearuser.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "LogsGlobal.clearUser property" +nav_order: 163 +permalink: /browser-logs.logsglobal.clearuser.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > clearUser + +## LogsGlobal.clearUser property + +Clear all user information + +See \User context\ for further information. + +**Signature:** + +```typescript +clearUser: () => void; +``` diff --git a/docs/browser-logs.logsglobal.createlogger.md b/docs/browser-logs.logsglobal.createlogger.md new file mode 100644 index 0000000000..4c7c57272f --- /dev/null +++ b/docs/browser-logs.logsglobal.createlogger.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "LogsGlobal.createLogger property" +nav_order: 162 +permalink: /browser-logs.logsglobal.createlogger.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > createLogger + +## LogsGlobal.createLogger property + +The Datadog browser logs SDK contains a default logger `DD_LOGS.logger`, but this API allows to create different ones. + +See \Define multiple loggers\ for further information. + +**Signature:** + +```typescript +createLogger: (name: string, conf?: LoggerConfiguration) => Logger; +``` diff --git a/docs/browser-logs.logsglobal.getaccount.md b/docs/browser-logs.logsglobal.getaccount.md new file mode 100644 index 0000000000..3efd701ab7 --- /dev/null +++ b/docs/browser-logs.logsglobal.getaccount.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.getAccount property" +nav_order: 161 +permalink: /browser-logs.logsglobal.getaccount.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > getAccount + +## LogsGlobal.getAccount property + +Get account information + +**Signature:** + +```typescript +getAccount: () => Context; +``` diff --git a/docs/browser-logs.logsglobal.getglobalcontext.md b/docs/browser-logs.logsglobal.getglobalcontext.md new file mode 100644 index 0000000000..c37f78b41a --- /dev/null +++ b/docs/browser-logs.logsglobal.getglobalcontext.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "LogsGlobal.getGlobalContext property" +nav_order: 160 +permalink: /browser-logs.logsglobal.getglobalcontext.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > getGlobalContext + +## LogsGlobal.getGlobalContext property + +Get the global Context + +See \Overwrite context\ for further information. + +**Signature:** + +```typescript +getGlobalContext: () => Context; +``` diff --git a/docs/browser-logs.logsglobal.getinitconfiguration.md b/docs/browser-logs.logsglobal.getinitconfiguration.md new file mode 100644 index 0000000000..07368c20dc --- /dev/null +++ b/docs/browser-logs.logsglobal.getinitconfiguration.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.getInitConfiguration property" +nav_order: 159 +permalink: /browser-logs.logsglobal.getinitconfiguration.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > getInitConfiguration + +## LogsGlobal.getInitConfiguration property + +Get the init configuration + +**Signature:** + +```typescript +getInitConfiguration: () => LogsInitConfiguration | undefined; +``` diff --git a/docs/browser-logs.logsglobal.getinternalcontext.md b/docs/browser-logs.logsglobal.getinternalcontext.md new file mode 100644 index 0000000000..bae5813191 --- /dev/null +++ b/docs/browser-logs.logsglobal.getinternalcontext.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "LogsGlobal.getInternalContext property" +nav_order: 158 +permalink: /browser-logs.logsglobal.getinternalcontext.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > getInternalContext + +## LogsGlobal.getInternalContext property + +\[Internal API\] Get the internal SDK context + +See \Access internal context\ for further information. + +**Signature:** + +```typescript +getInternalContext: (startTime?: number) => InternalContext | undefined; +``` diff --git a/docs/browser-logs.logsglobal.getlogger.md b/docs/browser-logs.logsglobal.getlogger.md new file mode 100644 index 0000000000..54eab1dd71 --- /dev/null +++ b/docs/browser-logs.logsglobal.getlogger.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "LogsGlobal.getLogger property" +nav_order: 157 +permalink: /browser-logs.logsglobal.getlogger.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > getLogger + +## LogsGlobal.getLogger property + +Get a logger + +See \Define multiple loggers\ for further information. + +**Signature:** + +```typescript +getLogger: (name: string) => Logger | undefined; +``` diff --git a/docs/browser-logs.logsglobal.getuser.md b/docs/browser-logs.logsglobal.getuser.md new file mode 100644 index 0000000000..ca97d9ea48 --- /dev/null +++ b/docs/browser-logs.logsglobal.getuser.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "LogsGlobal.getUser property" +nav_order: 156 +permalink: /browser-logs.logsglobal.getuser.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > getUser + +## LogsGlobal.getUser property + +Get user information + +See \User context\ for further information. + +**Signature:** + +```typescript +getUser: () => Context; +``` diff --git a/docs/browser-logs.logsglobal.init.md b/docs/browser-logs.logsglobal.init.md new file mode 100644 index 0000000000..7c5b14c3dc --- /dev/null +++ b/docs/browser-logs.logsglobal.init.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.init property" +nav_order: 155 +permalink: /browser-logs.logsglobal.init.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > init + +## LogsGlobal.init property + +Init the Logs browser SDK. + +**Signature:** + +```typescript +init: (initConfiguration: LogsInitConfiguration) => void; +``` diff --git a/docs/browser-logs.logsglobal.logger.md b/docs/browser-logs.logsglobal.logger.md new file mode 100644 index 0000000000..604f4eba0a --- /dev/null +++ b/docs/browser-logs.logsglobal.logger.md @@ -0,0 +1,18 @@ +--- +layout: default +title: "LogsGlobal.logger property" +nav_order: 154 +permalink: /browser-logs.logsglobal.logger.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > logger + +## LogsGlobal.logger property + +**Signature:** + +```typescript +logger: Logger; +``` diff --git a/docs/browser-logs.logsglobal.md b/docs/browser-logs.logsglobal.md new file mode 100644 index 0000000000..7903cdecc5 --- /dev/null +++ b/docs/browser-logs.logsglobal.md @@ -0,0 +1,500 @@ +--- +layout: default +title: "LogsGlobal interface" +nav_order: 153 +permalink: /browser-logs.logsglobal.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal + +## LogsGlobal interface + +The public API for the Datadog Browser Logs SDK. Provides methods to initialize the SDK, manage global/user/account contexts, and interact with loggers for collecting and forwarding logs. + +**Signature:** + +```typescript +export interface LogsPublicApi extends PublicApi +``` +**Extends:** PublicApi + +## Properties + + + + + + + + + + + + + + + + + + + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +clearAccount + + + + + + + +() => void + + + + +Clear all account information + + +
+ +clearGlobalContext + + + + + + + +() => void + + + + +Clear the global context + +See \Overwrite context\ for further information. + + +
+ +clearUser + + + + + + + +() => void + + + + +Clear all user information + +See \User context\ for further information. + + +
+ +createLogger + + + + + + + +(name: string, conf?: LoggerConfiguration) => Logger + + + + +The Datadog browser logs SDK contains a default logger `DD_LOGS.logger`, but this API allows to create different ones. + +See \Define multiple loggers\ for further information. + + +
+ +getAccount + + + + + + + +() => Context + + + + +Get account information + + +
+ +getGlobalContext + + + + + + + +() => Context + + + + +Get the global Context + +See \Overwrite context\ for further information. + + +
+ +getInitConfiguration + + + + + + + +() => LogsInitConfiguration | undefined + + + + +Get the init configuration + + +
+ +getInternalContext + + + + + + + +(startTime?: number) => InternalContext | undefined + + + + +\[Internal API\] Get the internal SDK context + +See \Access internal context\ for further information. + + +
+ +getLogger + + + + + + + +(name: string) => Logger | undefined + + + + +Get a logger + +See \Define multiple loggers\ for further information. + + +
+ +getUser + + + + + + + +() => Context + + + + +Get user information + +See \User context\ for further information. + + +
+ +init + + + + + + + +(initConfiguration: LogsInitConfiguration) => void + + + + +Init the Logs browser SDK. + + +
+ +logger + + + + + + + +Logger + + + + + +
+ +removeAccountProperty + + + + + + + +(key: string) => void + + + + +Remove an account property + + +
+ +removeGlobalContextProperty + + + + + + + +(key: any) => void + + + + +Remove a global context property + +See \Overwrite context\ for further information. + + +
+ +removeUserProperty + + + + + + + +(key: any) => void + + + + +Remove a user property + +See \User context\ for further information. + + +
+ +setAccount + + + + + + + +(newAccount: Account) => void + + + + +Set account information to all events, stored in `@account` + + +
+ +setAccountProperty + + + + + + + +(key: string, property: any) => void + + + + +Set or update the account property, stored in `@account.` + + +
+ +setGlobalContext + + + + + + + +(context: any) => void + + + + +Set the global context information to all logs, stored in `@context` + + +
+ +setGlobalContextProperty + + + + + + + +(key: any, value: any) => void + + + + +Set or update a global context property, stored in `@context.` + + +
+ +setTrackingConsent + + + + + + + +(trackingConsent: TrackingConsent) => void + + + + +Set the tracking consent of the current user. + + +
+ +setUserProperty + + + + + + + +(key: any, property: any) => void + + + + +Set or update the user property, stored in `@usr.` + + +
+ +## Methods + + + + +
+ +Method + + + + +Description + + +
+ +setUser(newUser) + + + + +Set user information to all events, stored in `@usr` + +See \User context\ for further information. + + +
+ +setUser(newUser) + + + + +Set user information to all events, stored in `@usr` + + +
diff --git a/docs/browser-logs.logsglobal.removeaccountproperty.md b/docs/browser-logs.logsglobal.removeaccountproperty.md new file mode 100644 index 0000000000..b4710dfc04 --- /dev/null +++ b/docs/browser-logs.logsglobal.removeaccountproperty.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.removeAccountProperty property" +nav_order: 152 +permalink: /browser-logs.logsglobal.removeaccountproperty.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > removeAccountProperty + +## LogsGlobal.removeAccountProperty property + +Remove an account property + +**Signature:** + +```typescript +removeAccountProperty: (key: string) => void; +``` diff --git a/docs/browser-logs.logsglobal.removeglobalcontextproperty.md b/docs/browser-logs.logsglobal.removeglobalcontextproperty.md new file mode 100644 index 0000000000..6ac7d250ed --- /dev/null +++ b/docs/browser-logs.logsglobal.removeglobalcontextproperty.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "LogsGlobal.removeGlobalContextProperty property" +nav_order: 151 +permalink: /browser-logs.logsglobal.removeglobalcontextproperty.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > removeGlobalContextProperty + +## LogsGlobal.removeGlobalContextProperty property + +Remove a global context property + +See \Overwrite context\ for further information. + +**Signature:** + +```typescript +removeGlobalContextProperty: (key: any) => void; +``` diff --git a/docs/browser-logs.logsglobal.removeuserproperty.md b/docs/browser-logs.logsglobal.removeuserproperty.md new file mode 100644 index 0000000000..91e4675f27 --- /dev/null +++ b/docs/browser-logs.logsglobal.removeuserproperty.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "LogsGlobal.removeUserProperty property" +nav_order: 150 +permalink: /browser-logs.logsglobal.removeuserproperty.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > removeUserProperty + +## LogsGlobal.removeUserProperty property + +Remove a user property + +See \User context\ for further information. + +**Signature:** + +```typescript +removeUserProperty: (key: any) => void; +``` diff --git a/docs/browser-logs.logsglobal.setaccount.md b/docs/browser-logs.logsglobal.setaccount.md new file mode 100644 index 0000000000..8389dc3ee5 --- /dev/null +++ b/docs/browser-logs.logsglobal.setaccount.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.setAccount property" +nav_order: 149 +permalink: /browser-logs.logsglobal.setaccount.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > setAccount + +## LogsGlobal.setAccount property + +Set account information to all events, stored in `@account` + +**Signature:** + +```typescript +setAccount: (newAccount: Account) => void; +``` diff --git a/docs/browser-logs.logsglobal.setaccountproperty.md b/docs/browser-logs.logsglobal.setaccountproperty.md new file mode 100644 index 0000000000..662422376d --- /dev/null +++ b/docs/browser-logs.logsglobal.setaccountproperty.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.setAccountProperty property" +nav_order: 148 +permalink: /browser-logs.logsglobal.setaccountproperty.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > setAccountProperty + +## LogsGlobal.setAccountProperty property + +Set or update the account property, stored in `@account.` + +**Signature:** + +```typescript +setAccountProperty: (key: string, property: any) => void; +``` diff --git a/docs/browser-logs.logsglobal.setglobalcontext.md b/docs/browser-logs.logsglobal.setglobalcontext.md new file mode 100644 index 0000000000..1456a8ad6c --- /dev/null +++ b/docs/browser-logs.logsglobal.setglobalcontext.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.setGlobalContext property" +nav_order: 147 +permalink: /browser-logs.logsglobal.setglobalcontext.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > setGlobalContext + +## LogsGlobal.setGlobalContext property + +Set the global context information to all logs, stored in `@context` + +**Signature:** + +```typescript +setGlobalContext: (context: any) => void; +``` diff --git a/docs/browser-logs.logsglobal.setglobalcontextproperty.md b/docs/browser-logs.logsglobal.setglobalcontextproperty.md new file mode 100644 index 0000000000..0b6c8dbbe1 --- /dev/null +++ b/docs/browser-logs.logsglobal.setglobalcontextproperty.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.setGlobalContextProperty property" +nav_order: 146 +permalink: /browser-logs.logsglobal.setglobalcontextproperty.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > setGlobalContextProperty + +## LogsGlobal.setGlobalContextProperty property + +Set or update a global context property, stored in `@context.` + +**Signature:** + +```typescript +setGlobalContextProperty: (key: any, value: any) => void; +``` diff --git a/docs/browser-logs.logsglobal.settrackingconsent.md b/docs/browser-logs.logsglobal.settrackingconsent.md new file mode 100644 index 0000000000..0f7482709d --- /dev/null +++ b/docs/browser-logs.logsglobal.settrackingconsent.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.setTrackingConsent property" +nav_order: 145 +permalink: /browser-logs.logsglobal.settrackingconsent.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > setTrackingConsent + +## LogsGlobal.setTrackingConsent property + +Set the tracking consent of the current user. + +**Signature:** + +```typescript +setTrackingConsent: (trackingConsent: TrackingConsent) => void; +``` diff --git a/docs/browser-logs.logsglobal.setuser.md b/docs/browser-logs.logsglobal.setuser.md new file mode 100644 index 0000000000..4786e0a923 --- /dev/null +++ b/docs/browser-logs.logsglobal.setuser.md @@ -0,0 +1,62 @@ +--- +layout: default +title: "LogsGlobal.setUser() method" +nav_order: 144 +permalink: /browser-logs.logsglobal.setuser.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > setUser + +## LogsGlobal.setUser() method + +Set user information to all events, stored in `@usr` + +See \User context\ for further information. + +**Signature:** + +```typescript +setUser(newUser: User & { + id: string; + }): void; +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +newUser + + + + +User & { id: string; } + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logsglobal.setuser_1.md b/docs/browser-logs.logsglobal.setuser_1.md new file mode 100644 index 0000000000..c80a0df1e3 --- /dev/null +++ b/docs/browser-logs.logsglobal.setuser_1.md @@ -0,0 +1,63 @@ +--- +layout: default +title: "LogsGlobal.setUser() method" +nav_order: 143 +permalink: /browser-logs.logsglobal.setuser_1.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > setUser + +## LogsGlobal.setUser() method + +> Warning: This API is now obsolete. +> +> You must specified a user id +> + +Set user information to all events, stored in `@usr` + +**Signature:** + +```typescript +setUser(newUser: User): void; +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +newUser + + + + +User + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-logs.logsglobal.setuserproperty.md b/docs/browser-logs.logsglobal.setuserproperty.md new file mode 100644 index 0000000000..830b1db774 --- /dev/null +++ b/docs/browser-logs.logsglobal.setuserproperty.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsGlobal.setUserProperty property" +nav_order: 142 +permalink: /browser-logs.logsglobal.setuserproperty.html +--- + + + +Home > @datadog/browser-logs > LogsGlobal > setUserProperty + +## LogsGlobal.setUserProperty property + +Set or update the user property, stored in `@usr.` + +**Signature:** + +```typescript +setUserProperty: (key: any, property: any) => void; +``` diff --git a/docs/browser-logs.logsinitconfiguration.beforesend.md b/docs/browser-logs.logsinitconfiguration.beforesend.md new file mode 100644 index 0000000000..84dc6c21d1 --- /dev/null +++ b/docs/browser-logs.logsinitconfiguration.beforesend.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsInitConfiguration.beforeSend property" +nav_order: 141 +permalink: /browser-logs.logsinitconfiguration.beforesend.html +--- + + + +Home > @datadog/browser-logs > LogsInitConfiguration > beforeSend + +## LogsInitConfiguration.beforeSend property + +Access to every logs collected by the Logs SDK before they are sent to Datadog. It allows: - Enrich your logs with additional context attributes - Modify your logs to modify their content, or redact sensitive sequences (see the list of editable properties) - Discard selected logs + +**Signature:** + +```typescript +beforeSend?: ((event: LogsEvent, context: LogsEventDomainContext) => boolean) | undefined; +``` diff --git a/docs/browser-logs.logsinitconfiguration.forwardconsolelogs.md b/docs/browser-logs.logsinitconfiguration.forwardconsolelogs.md new file mode 100644 index 0000000000..ccfbc4d862 --- /dev/null +++ b/docs/browser-logs.logsinitconfiguration.forwardconsolelogs.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsInitConfiguration.forwardConsoleLogs property" +nav_order: 140 +permalink: /browser-logs.logsinitconfiguration.forwardconsolelogs.html +--- + + + +Home > @datadog/browser-logs > LogsInitConfiguration > forwardConsoleLogs + +## LogsInitConfiguration.forwardConsoleLogs property + +Forward logs from console.* to Datadog. Use "all" to forward everything or an array of console API names to forward only a subset. + +**Signature:** + +```typescript +forwardConsoleLogs?: ConsoleApiName[] | 'all' | undefined; +``` diff --git a/docs/browser-logs.logsinitconfiguration.forwarderrorstologs.md b/docs/browser-logs.logsinitconfiguration.forwarderrorstologs.md new file mode 100644 index 0000000000..bfc5db0f3b --- /dev/null +++ b/docs/browser-logs.logsinitconfiguration.forwarderrorstologs.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsInitConfiguration.forwardErrorsToLogs property" +nav_order: 139 +permalink: /browser-logs.logsinitconfiguration.forwarderrorstologs.html +--- + + + +Home > @datadog/browser-logs > LogsInitConfiguration > forwardErrorsToLogs + +## LogsInitConfiguration.forwardErrorsToLogs property + +Forward console.error logs, uncaught exceptions and network errors to Datadog. true + +**Signature:** + +```typescript +forwardErrorsToLogs?: boolean | undefined; +``` diff --git a/docs/browser-logs.logsinitconfiguration.forwardreports.md b/docs/browser-logs.logsinitconfiguration.forwardreports.md new file mode 100644 index 0000000000..0ad13669a7 --- /dev/null +++ b/docs/browser-logs.logsinitconfiguration.forwardreports.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsInitConfiguration.forwardReports property" +nav_order: 138 +permalink: /browser-logs.logsinitconfiguration.forwardreports.html +--- + + + +Home > @datadog/browser-logs > LogsInitConfiguration > forwardReports + +## LogsInitConfiguration.forwardReports property + +Forward reports from the \Reporting API\ to Datadog. Use "all" to forward everything or an array of report types to forward only a subset. + +**Signature:** + +```typescript +forwardReports?: RawReportType[] | 'all' | undefined; +``` diff --git a/docs/browser-logs.logsinitconfiguration.md b/docs/browser-logs.logsinitconfiguration.md new file mode 100644 index 0000000000..803d61510b --- /dev/null +++ b/docs/browser-logs.logsinitconfiguration.md @@ -0,0 +1,141 @@ +--- +layout: default +title: "LogsInitConfiguration interface" +nav_order: 137 +permalink: /browser-logs.logsinitconfiguration.html +--- + + + +Home > @datadog/browser-logs > LogsInitConfiguration + +## LogsInitConfiguration interface + +Configuration options for initializing the Datadog Browser Logs SDK. Extends the base InitConfiguration and includes additional options specific to log collection, such as error forwarding, console log forwarding, and the ability to modify or discard logs before they are sent. + +**Signature:** + +```typescript +export interface LogsInitConfiguration extends InitConfiguration +``` +**Extends:** InitConfiguration + +## Properties + + + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +beforeSend? + + + + + + + +((event: LogsEvent, context: LogsEventDomainContext) => boolean) | undefined + + + + +(Optional) Access to every logs collected by the Logs SDK before they are sent to Datadog. It allows: - Enrich your logs with additional context attributes - Modify your logs to modify their content, or redact sensitive sequences (see the list of editable properties) - Discard selected logs + + +
+ +forwardConsoleLogs? + + + + + + + +ConsoleApiName\[\] | 'all' | undefined + + + + +(Optional) Forward logs from console.* to Datadog. Use "all" to forward everything or an array of console API names to forward only a subset. + + +
+ +forwardErrorsToLogs? + + + + + + + +boolean | undefined + + + + +(Optional) Forward console.error logs, uncaught exceptions and network errors to Datadog. true + + +
+ +forwardReports? + + + + + + + +RawReportType\[\] | 'all' | undefined + + + + +(Optional) Forward reports from the \Reporting API\ to Datadog. Use "all" to forward everything or an array of report types to forward only a subset. + + +
+ +usePciIntake? + + + + + + + +boolean + + + + +(Optional) Use PCI-compliant intake. See \PCI DSS Compliance\ for further information. false + + +
diff --git a/docs/browser-logs.logsinitconfiguration.usepciintake.md b/docs/browser-logs.logsinitconfiguration.usepciintake.md new file mode 100644 index 0000000000..7e95126b6f --- /dev/null +++ b/docs/browser-logs.logsinitconfiguration.usepciintake.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsInitConfiguration.usePciIntake property" +nav_order: 136 +permalink: /browser-logs.logsinitconfiguration.usepciintake.html +--- + + + +Home > @datadog/browser-logs > LogsInitConfiguration > usePciIntake + +## LogsInitConfiguration.usePciIntake property + +Use PCI-compliant intake. See \PCI DSS Compliance\ for further information. false + +**Signature:** + +```typescript +usePciIntake?: boolean; +``` diff --git a/docs/browser-logs.logsmessage.context.md b/docs/browser-logs.logsmessage.context.md new file mode 100644 index 0000000000..2149fec220 --- /dev/null +++ b/docs/browser-logs.logsmessage.context.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsMessage.context property" +nav_order: 135 +permalink: /browser-logs.logsmessage.context.html +--- + + + +Home > @datadog/browser-logs > LogsMessage > context + +## LogsMessage.context property + +Optional context attached to the log + +**Signature:** + +```typescript +context?: Context; +``` diff --git a/docs/browser-logs.logsmessage.md b/docs/browser-logs.logsmessage.md new file mode 100644 index 0000000000..a66be457a3 --- /dev/null +++ b/docs/browser-logs.logsmessage.md @@ -0,0 +1,102 @@ +--- +layout: default +title: "LogsMessage interface" +nav_order: 134 +permalink: /browser-logs.logsmessage.html +--- + + + +Home > @datadog/browser-logs > LogsMessage + +## LogsMessage interface + +Structure passed to the internal log handling strategy. + +**Signature:** + +```typescript +export interface LogsMessage +``` + +## Properties + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +context? + + + + + + + +Context + + + + +(Optional) Optional context attached to the log + + +
+ +message + + + + + + + +string + + + + +Raw message provided by the customer + + +
+ +status + + + + + + + +StatusType + + + + +Severity of the log + + +
diff --git a/docs/browser-logs.logsmessage.message.md b/docs/browser-logs.logsmessage.message.md new file mode 100644 index 0000000000..31f907962c --- /dev/null +++ b/docs/browser-logs.logsmessage.message.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsMessage.message property" +nav_order: 133 +permalink: /browser-logs.logsmessage.message.html +--- + + + +Home > @datadog/browser-logs > LogsMessage > message + +## LogsMessage.message property + +Raw message provided by the customer + +**Signature:** + +```typescript +message: string; +``` diff --git a/docs/browser-logs.logsmessage.status.md b/docs/browser-logs.logsmessage.status.md new file mode 100644 index 0000000000..aacb0dd1c1 --- /dev/null +++ b/docs/browser-logs.logsmessage.status.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "LogsMessage.status property" +nav_order: 132 +permalink: /browser-logs.logsmessage.status.html +--- + + + +Home > @datadog/browser-logs > LogsMessage > status + +## LogsMessage.status property + +Severity of the log + +**Signature:** + +```typescript +status: StatusType; +``` diff --git a/docs/browser-logs.md b/docs/browser-logs.md new file mode 100644 index 0000000000..73a9945fdf --- /dev/null +++ b/docs/browser-logs.md @@ -0,0 +1,209 @@ +--- +layout: default +title: "browser-logs package" +nav_order: 131 +permalink: /browser-logs.html +--- + + + +Home > @datadog/browser-logs + +## browser-logs package + +Datadog Browser Logs SDK for collecting and forwarding browser logs to Datadog. Provides comprehensive logging capabilities with automatic error tracking and custom log collection. + +## Classes + + + +
+ +Class + + + + +Description + + +
+ +Logger + + + + + +
+ +## Interfaces + + + + + + + + +
+ +Interface + + + + +Description + + +
+ +Logger + + + + +Provides convenience methods for logging at each supported level. Each method accepts a message, optional context, and an optional error. + + +
+ +LoggerConfiguration + + + + +Configuration options for a logger. Includes the log level to determine the severity of logs, the handler(s) responsible for processing log messages, and an optional context object to provide additional metadata for logs. + + +
+ +LogsEvent + + + + +Represents a log event collected by the Datadog Browser Logs SDK, containing information such as message, context, and metadata. + + +
+ +LogsGlobal + + + + +The public API for the Datadog Browser Logs SDK. Provides methods to initialize the SDK, manage global/user/account contexts, and interact with loggers for collecting and forwarding logs. + + +
+ +LogsInitConfiguration + + + + +Configuration options for initializing the Datadog Browser Logs SDK. Extends the base InitConfiguration and includes additional options specific to log collection, such as error forwarding, console log forwarding, and the ability to modify or discard logs before they are sent. + + +
+ +LogsMessage + + + + +Structure passed to the internal log handling strategy. + + +
+ +## Variables + + + + + +
+ +Variable + + + + +Description + + +
+ +datadogLogs + + + + +The global Logs instance. Use this to call Logs methods. + + +
+ +HandlerType + + + + +Defines the types of handlers for processing logs: console, HTTP, or silent. + + +
+ +StatusType + + + + +Defines the severity levels for log messages, ranging from debug to emergency. + + +
+ +## Type Aliases + + + + + +
+ +Type Alias + + + + +Description + + +
+ +HandlerType + + + + + +
+ +LogsEventDomainContext + + + + + +
+ +StatusType + + + + + +
diff --git a/docs/browser-logs.statustype.md b/docs/browser-logs.statustype.md new file mode 100644 index 0000000000..cd58fc33fc --- /dev/null +++ b/docs/browser-logs.statustype.md @@ -0,0 +1,30 @@ +--- +layout: default +title: "StatusType variable" +nav_order: 130 +permalink: /browser-logs.statustype.html +--- + + + +Home > @datadog/browser-logs > StatusType + +## StatusType variable + +Defines the severity levels for log messages, ranging from debug to emergency. + +**Signature:** + +```typescript +StatusType: { + readonly ok: "ok"; + readonly debug: "debug"; + readonly info: "info"; + readonly notice: "notice"; + readonly warn: "warn"; + readonly error: "error"; + readonly critical: "critical"; + readonly alert: "alert"; + readonly emerg: "emerg"; +} +``` diff --git a/docs/browser-rum-react.addreacterror.md b/docs/browser-rum-react.addreacterror.md new file mode 100644 index 0000000000..c2d85732e0 --- /dev/null +++ b/docs/browser-rum-react.addreacterror.md @@ -0,0 +1,72 @@ +--- +layout: default +title: "addReactError() function" +nav_order: 129 +permalink: /browser-rum-react.addreacterror.html +--- + + + +Home > @datadog/browser-rum-react > addReactError + +## addReactError() function + +Reports an error originating from React (Error Boundary or `componentDidCatch`) to Datadog RUM with relevant context and stack information. + +**Signature:** + +```typescript +export declare function addReactError(error: Error, info: ErrorInfo): void; +``` + +## Parameters + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +error + + + + +Error + + + + + +
+ +info + + + + +ErrorInfo + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-rum-react.errorboundary._constructor_.md b/docs/browser-rum-react.errorboundary._constructor_.md new file mode 100644 index 0000000000..456908aa42 --- /dev/null +++ b/docs/browser-rum-react.errorboundary._constructor_.md @@ -0,0 +1,54 @@ +--- +layout: default +title: "ErrorBoundary.(constructor)" +nav_order: 128 +permalink: /browser-rum-react.errorboundary._constructor_.html +--- + + + +Home > @datadog/browser-rum-react > ErrorBoundary > (constructor) + +## ErrorBoundary.(constructor) + +Constructs a new instance of the `ErrorBoundary` class + +**Signature:** + +```typescript +constructor(props: Props); +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +props + + + + +Props + + + + + +
diff --git a/docs/browser-rum-react.errorboundary.componentdidcatch.md b/docs/browser-rum-react.errorboundary.componentdidcatch.md new file mode 100644 index 0000000000..281d99b069 --- /dev/null +++ b/docs/browser-rum-react.errorboundary.componentdidcatch.md @@ -0,0 +1,70 @@ +--- +layout: default +title: "ErrorBoundary.componentDidCatch() method" +nav_order: 127 +permalink: /browser-rum-react.errorboundary.componentdidcatch.html +--- + + + +Home > @datadog/browser-rum-react > ErrorBoundary > componentDidCatch + +## ErrorBoundary.componentDidCatch() method + +**Signature:** + +```typescript +componentDidCatch(error: Error, errorInfo: ErrorInfo): void; +``` + +## Parameters + + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +error + + + + +Error + + + + + +
+ +errorInfo + + + + +ErrorInfo + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-rum-react.errorboundary.getderivedstatefromerror.md b/docs/browser-rum-react.errorboundary.getderivedstatefromerror.md new file mode 100644 index 0000000000..c2131d1b4d --- /dev/null +++ b/docs/browser-rum-react.errorboundary.getderivedstatefromerror.md @@ -0,0 +1,56 @@ +--- +layout: default +title: "ErrorBoundary.getDerivedStateFromError() method" +nav_order: 126 +permalink: /browser-rum-react.errorboundary.getderivedstatefromerror.html +--- + + + +Home > @datadog/browser-rum-react > ErrorBoundary > getDerivedStateFromError + +## ErrorBoundary.getDerivedStateFromError() method + +**Signature:** + +```typescript +static getDerivedStateFromError(error: Error): State; +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +error + + + + +Error + + + + + +
+**Returns:** + +State + diff --git a/docs/browser-rum-react.errorboundary.md b/docs/browser-rum-react.errorboundary.md new file mode 100644 index 0000000000..d2ad667ca5 --- /dev/null +++ b/docs/browser-rum-react.errorboundary.md @@ -0,0 +1,155 @@ +--- +layout: default +title: "ErrorBoundary class" +nav_order: 125 +permalink: /browser-rum-react.errorboundary.html +--- + + + +Home > @datadog/browser-rum-react > ErrorBoundary + +## ErrorBoundary class + +A React Error Boundary that captures runtime errors in its child components and reports them to Datadog RUM, rendering the `fallback` component when an error occurs. + +**Signature:** + +```typescript +export declare class ErrorBoundary extends React.Component +``` +**Extends:** React.Component<Props, State> + +## Constructors + + + +
+ +Constructor + + + + +Modifiers + + + + +Description + + +
+ +(constructor)(props) + + + + + + + +Constructs a new instance of the `ErrorBoundary` class + + +
+ +## Properties + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +resetError + + + + + + + +() => void + + + + + +
+ +## Methods + + + + + +
+ +Method + + + + +Modifiers + + + + +Description + + +
+ +componentDidCatch(error, errorInfo) + + + + + + + + +
+ +getDerivedStateFromError(error) + + + + +`static` + + + + + +
+ +render() + + + + + + + + +
diff --git a/docs/browser-rum-react.errorboundary.render.md b/docs/browser-rum-react.errorboundary.render.md new file mode 100644 index 0000000000..bed10bc6a7 --- /dev/null +++ b/docs/browser-rum-react.errorboundary.render.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "ErrorBoundary.render() method" +nav_order: 124 +permalink: /browser-rum-react.errorboundary.render.html +--- + + + +Home > @datadog/browser-rum-react > ErrorBoundary > render + +## ErrorBoundary.render() method + +**Signature:** + +```typescript +render(): React.ReactNode; +``` +**Returns:** + +React.ReactNode + diff --git a/docs/browser-rum-react.errorboundary.reseterror.md b/docs/browser-rum-react.errorboundary.reseterror.md new file mode 100644 index 0000000000..6b52aa889d --- /dev/null +++ b/docs/browser-rum-react.errorboundary.reseterror.md @@ -0,0 +1,18 @@ +--- +layout: default +title: "ErrorBoundary.resetError property" +nav_order: 123 +permalink: /browser-rum-react.errorboundary.reseterror.html +--- + + + +Home > @datadog/browser-rum-react > ErrorBoundary > resetError + +## ErrorBoundary.resetError property + +**Signature:** + +```typescript +resetError: () => void; +``` diff --git a/docs/browser-rum-react.md b/docs/browser-rum-react.md new file mode 100644 index 0000000000..3623edaaab --- /dev/null +++ b/docs/browser-rum-react.md @@ -0,0 +1,103 @@ +--- +layout: default +title: "browser-rum-react package" +nav_order: 122 +permalink: /browser-rum-react.html +--- + + + +Home > @datadog/browser-rum-react + +## browser-rum-react package + +Datadog Browser RUM React Integration - Additional components and hooks for React applications. Provides React-specific features like Error Boundaries and component performance tracking. + +## Classes + + + +
+ +Class + + + + +Description + + +
+ +ErrorBoundary + + + + +A React Error Boundary that captures runtime errors in its child components and reports them to Datadog RUM, rendering the `fallback` component when an error occurs. + + +
+ +## Functions + + + + +
+ +Function + + + + +Description + + +
+ +addReactError(error, info) + + + + +Reports an error originating from React (Error Boundary or `componentDidCatch`) to Datadog RUM with relevant context and stack information. + + +
+ +reactPlugin(configuration) + + + + +Factory function that creates the React plugin for Datadog RUM, enabling features like ErrorBoundary integration, optional react-router view tracking, and component performance tracking utilities. + + +
+ +## Variables + + + +
+ +Variable + + + + +Description + + +
+ +UNSTABLE_ReactComponentTracker + + + + +Experimental component that tracks the render lifecycle of its children and reports a duration vital named `reactComponentRender`. + + +
diff --git a/docs/browser-rum-react.reactplugin.md b/docs/browser-rum-react.reactplugin.md new file mode 100644 index 0000000000..79ce85e066 --- /dev/null +++ b/docs/browser-rum-react.reactplugin.md @@ -0,0 +1,72 @@ +--- +layout: default +title: "reactPlugin() function" +nav_order: 121 +permalink: /browser-rum-react.reactplugin.html +--- + + + +Home > @datadog/browser-rum-react > reactPlugin + +## reactPlugin() function + +Factory function that creates the React plugin for Datadog RUM, enabling features like ErrorBoundary integration, optional react-router view tracking, and component performance tracking utilities. + +**Signature:** + +```typescript +export declare function reactPlugin(configuration?: ReactPluginConfiguration): { + name: string; + onInit({ publicApi, initConfiguration }: { + initConfiguration: import("@datadog/browser-rum-core").RumInitConfiguration; + publicApi: RumPublicApi; + }): void; + onRumStart({ strategy }: { + strategy: Strategy; + }): void; + getConfigurationTelemetry(): { + router: boolean; + }; +}; +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +configuration + + + + +ReactPluginConfiguration + + + + +(Optional) + + +
+**Returns:** + +{ name: string; onInit({ publicApi, initConfiguration }: { initConfiguration: import("@datadog/browser-rum-core").RumInitConfiguration; publicApi: RumPublicApi; }): void; onRumStart({ strategy }: { strategy: Strategy; }): void; getConfigurationTelemetry(): { router: boolean; }; } + diff --git a/docs/browser-rum-react.unstable_reactcomponenttracker.md b/docs/browser-rum-react.unstable_reactcomponenttracker.md new file mode 100644 index 0000000000..3ef3eac0d1 --- /dev/null +++ b/docs/browser-rum-react.unstable_reactcomponenttracker.md @@ -0,0 +1,23 @@ +--- +layout: default +title: "UNSTABLE_ReactComponentTracker variable" +nav_order: 120 +permalink: /browser-rum-react.unstable_reactcomponenttracker.html +--- + + + +Home > @datadog/browser-rum-react > UNSTABLE_ReactComponentTracker + +## UNSTABLE_ReactComponentTracker variable + +Experimental component that tracks the render lifecycle of its children and reports a duration vital named `reactComponentRender`. + +**Signature:** + +```typescript +UNSTABLE_ReactComponentTracker: ({ name: componentName, children, }: { + name: string; + children?: React.ReactNode; +}) => React.JSX.Element +``` diff --git a/docs/browser-rum-slim.datadogrum.md b/docs/browser-rum-slim.datadogrum.md new file mode 100644 index 0000000000..0ff50abd54 --- /dev/null +++ b/docs/browser-rum-slim.datadogrum.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "datadogRum variable" +nav_order: 119 +permalink: /browser-rum-slim.datadogrum.html +--- + + + +Home > @datadog/browser-rum-slim > datadogRum + +## datadogRum variable + +The global RUM instance (slim version without Session Replay and Profiling). Use this to call RUM methods. + +**Signature:** + +```typescript +datadogRum: RumPublicApi +``` diff --git a/docs/browser-rum-slim.md b/docs/browser-rum-slim.md new file mode 100644 index 0000000000..1258247aed --- /dev/null +++ b/docs/browser-rum-slim.md @@ -0,0 +1,40 @@ +--- +layout: default +title: "browser-rum-slim package" +nav_order: 118 +permalink: /browser-rum-slim.html +--- + + + +Home > @datadog/browser-rum-slim + +## browser-rum-slim package + +Datadog Browser RUM SDK - Slim version without Session Replay and Real User Profiling. Lightweight alternative for basic RUM monitoring with reduced bundle size. + +## Variables + + + +
+ +Variable + + + + +Description + + +
+ +datadogRum + + + + +The global RUM instance (slim version without Session Replay and Profiling). Use this to call RUM methods. + + +
diff --git a/docs/browser-rum.commonproperties._dd.md b/docs/browser-rum.commonproperties._dd.md new file mode 100644 index 0000000000..962cf9e60a --- /dev/null +++ b/docs/browser-rum.commonproperties._dd.md @@ -0,0 +1,34 @@ +--- +layout: default +title: "CommonProperties._dd property" +nav_order: 117 +permalink: /browser-rum.commonproperties._dd.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > _dd + +## CommonProperties._dd property + +Internal properties + +**Signature:** + +```typescript +readonly _dd: { + readonly format_version: 2; + session?: { + plan?: 1 | 2; + readonly session_precondition?: 'user_app_launch' | 'inactivity_timeout' | 'max_duration' | 'background_launch' | 'prewarm' | 'from_non_interactive_session' | 'explicit_stop'; + [k: string]: unknown; + }; + readonly configuration?: { + readonly session_sample_rate: number; + readonly session_replay_sample_rate?: number; + [k: string]: unknown; + }; + readonly browser_sdk_version?: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.account.md b/docs/browser-rum.commonproperties.account.md new file mode 100644 index 0000000000..7063568f86 --- /dev/null +++ b/docs/browser-rum.commonproperties.account.md @@ -0,0 +1,24 @@ +--- +layout: default +title: "CommonProperties.account property" +nav_order: 116 +permalink: /browser-rum.commonproperties.account.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > account + +## CommonProperties.account property + +Account properties + +**Signature:** + +```typescript +readonly account?: { + readonly id: string; + readonly name?: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.application.md b/docs/browser-rum.commonproperties.application.md new file mode 100644 index 0000000000..7b4c223e49 --- /dev/null +++ b/docs/browser-rum.commonproperties.application.md @@ -0,0 +1,23 @@ +--- +layout: default +title: "CommonProperties.application property" +nav_order: 115 +permalink: /browser-rum.commonproperties.application.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > application + +## CommonProperties.application property + +Application properties + +**Signature:** + +```typescript +readonly application: { + readonly id: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.build_id.md b/docs/browser-rum.commonproperties.build_id.md new file mode 100644 index 0000000000..3166bcf2b2 --- /dev/null +++ b/docs/browser-rum.commonproperties.build_id.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "CommonProperties.build_id property" +nav_order: 114 +permalink: /browser-rum.commonproperties.build_id.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > build_id + +## CommonProperties.build_id property + +Generated unique ID of the application build. Unlike version or build_version this field is not meant to be coming from the user, but rather generated by the tooling for each build. + +**Signature:** + +```typescript +readonly build_id?: string; +``` diff --git a/docs/browser-rum.commonproperties.build_version.md b/docs/browser-rum.commonproperties.build_version.md new file mode 100644 index 0000000000..1deb5d8510 --- /dev/null +++ b/docs/browser-rum.commonproperties.build_version.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "CommonProperties.build_version property" +nav_order: 113 +permalink: /browser-rum.commonproperties.build_version.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > build_version + +## CommonProperties.build_version property + +The build version for this application + +**Signature:** + +```typescript +readonly build_version?: string; +``` diff --git a/docs/browser-rum.commonproperties.ci_test.md b/docs/browser-rum.commonproperties.ci_test.md new file mode 100644 index 0000000000..698662a751 --- /dev/null +++ b/docs/browser-rum.commonproperties.ci_test.md @@ -0,0 +1,23 @@ +--- +layout: default +title: "CommonProperties.ci_test property" +nav_order: 112 +permalink: /browser-rum.commonproperties.ci_test.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > ci_test + +## CommonProperties.ci_test property + +CI Visibility properties + +**Signature:** + +```typescript +readonly ci_test?: { + readonly test_execution_id: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.connectivity.md b/docs/browser-rum.commonproperties.connectivity.md new file mode 100644 index 0000000000..ce0b0ba252 --- /dev/null +++ b/docs/browser-rum.commonproperties.connectivity.md @@ -0,0 +1,30 @@ +--- +layout: default +title: "CommonProperties.connectivity property" +nav_order: 111 +permalink: /browser-rum.commonproperties.connectivity.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > connectivity + +## CommonProperties.connectivity property + +Device connectivity properties + +**Signature:** + +```typescript +connectivity?: { + readonly status: 'connected' | 'not_connected' | 'maybe'; + readonly interfaces?: ('bluetooth' | 'cellular' | 'ethernet' | 'wifi' | 'wimax' | 'mixed' | 'other' | 'unknown' | 'none')[]; + readonly effective_type?: 'slow-2g' | '2g' | '3g' | '4g'; + readonly cellular?: { + readonly technology?: string; + readonly carrier_name?: string; + [k: string]: unknown; + }; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.context.md b/docs/browser-rum.commonproperties.context.md new file mode 100644 index 0000000000..421a7b84a5 --- /dev/null +++ b/docs/browser-rum.commonproperties.context.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "CommonProperties.context property" +nav_order: 110 +permalink: /browser-rum.commonproperties.context.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > context + +## CommonProperties.context property + +User provided context + +**Signature:** + +```typescript +context?: { + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.date.md b/docs/browser-rum.commonproperties.date.md new file mode 100644 index 0000000000..9e40053ce3 --- /dev/null +++ b/docs/browser-rum.commonproperties.date.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "CommonProperties.date property" +nav_order: 109 +permalink: /browser-rum.commonproperties.date.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > date + +## CommonProperties.date property + +Start of the event in ms from epoch + +**Signature:** + +```typescript +readonly date: number; +``` diff --git a/docs/browser-rum.commonproperties.device.md b/docs/browser-rum.commonproperties.device.md new file mode 100644 index 0000000000..ed34632b2a --- /dev/null +++ b/docs/browser-rum.commonproperties.device.md @@ -0,0 +1,27 @@ +--- +layout: default +title: "CommonProperties.device property" +nav_order: 108 +permalink: /browser-rum.commonproperties.device.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > device + +## CommonProperties.device property + +Device properties + +**Signature:** + +```typescript +device?: { + readonly type: 'mobile' | 'desktop' | 'tablet' | 'tv' | 'gaming_console' | 'bot' | 'other'; + readonly name?: string; + readonly model?: string; + readonly brand?: string; + readonly architecture?: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.display.md b/docs/browser-rum.commonproperties.display.md new file mode 100644 index 0000000000..a2246b43a2 --- /dev/null +++ b/docs/browser-rum.commonproperties.display.md @@ -0,0 +1,27 @@ +--- +layout: default +title: "CommonProperties.display property" +nav_order: 107 +permalink: /browser-rum.commonproperties.display.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > display + +## CommonProperties.display property + +Display properties + +**Signature:** + +```typescript +display?: { + readonly viewport?: { + readonly width: number; + readonly height: number; + [k: string]: unknown; + }; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.md b/docs/browser-rum.commonproperties.md new file mode 100644 index 0000000000..00666c9206 --- /dev/null +++ b/docs/browser-rum.commonproperties.md @@ -0,0 +1,430 @@ +--- +layout: default +title: "CommonProperties interface" +nav_order: 106 +permalink: /browser-rum.commonproperties.html +--- + + + +Home > @datadog/browser-rum > CommonProperties + +## CommonProperties interface + +Schema of common properties of RUM events + +**Signature:** + +```typescript +export interface CommonProperties +``` + +## Properties + + + + + + + + + + + + + + + + + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +_dd + + + + +`readonly` + + + + +{ readonly format_version: 2; session?: { plan?: 1 | 2; readonly session_precondition?: 'user_app_launch' | 'inactivity_timeout' | 'max_duration' | 'background_launch' | 'prewarm' | 'from_non_interactive_session' | 'explicit_stop'; \[k: string\]: unknown; }; readonly configuration?: { readonly session_sample_rate: number; readonly session_replay_sample_rate?: number; \[k: string\]: unknown; }; readonly browser_sdk_version?: string; \[k: string\]: unknown; } + + + + +Internal properties + + +
+ +account? + + + + +`readonly` + + + + +{ readonly id: string; readonly name?: string; \[k: string\]: unknown; } + + + + +(Optional) Account properties + + +
+ +application + + + + +`readonly` + + + + +{ readonly id: string; \[k: string\]: unknown; } + + + + +Application properties + + +
+ +build_id? + + + + +`readonly` + + + + +string + + + + +(Optional) Generated unique ID of the application build. Unlike version or build_version this field is not meant to be coming from the user, but rather generated by the tooling for each build. + + +
+ +build_version? + + + + +`readonly` + + + + +string + + + + +(Optional) The build version for this application + + +
+ +ci_test? + + + + +`readonly` + + + + +{ readonly test_execution_id: string; \[k: string\]: unknown; } + + + + +(Optional) CI Visibility properties + + +
+ +connectivity? + + + + + + + +{ readonly status: 'connected' | 'not_connected' | 'maybe'; readonly interfaces?: ('bluetooth' | 'cellular' | 'ethernet' | 'wifi' | 'wimax' | 'mixed' | 'other' | 'unknown' | 'none')\[\]; readonly effective_type?: 'slow-2g' | '2g' | '3g' | '4g'; readonly cellular?: { readonly technology?: string; readonly carrier_name?: string; \[k: string\]: unknown; }; \[k: string\]: unknown; } + + + + +(Optional) Device connectivity properties + + +
+ +context? + + + + + + + +{ \[k: string\]: unknown; } + + + + +(Optional) User provided context + + +
+ +date + + + + +`readonly` + + + + +number + + + + +Start of the event in ms from epoch + + +
+ +device? + + + + + + + +{ readonly type: 'mobile' | 'desktop' | 'tablet' | 'tv' | 'gaming_console' | 'bot' | 'other'; readonly name?: string; readonly model?: string; readonly brand?: string; readonly architecture?: string; \[k: string\]: unknown; } + + + + +(Optional) Device properties + + +
+ +display? + + + + + + + +{ readonly viewport?: { readonly width: number; readonly height: number; \[k: string\]: unknown; }; \[k: string\]: unknown; } + + + + +(Optional) Display properties + + +
+ +os? + + + + + + + +{ readonly name: string; readonly version: string; readonly build?: string; readonly version_major: string; \[k: string\]: unknown; } + + + + +(Optional) Operating system properties + + +
+ +service? + + + + + + + +string + + + + +(Optional) The service name for this application + + +
+ +session + + + + +`readonly` + + + + +{ readonly id: string; readonly type: 'user' | 'synthetics' | 'ci_test'; readonly has_replay?: boolean; \[k: string\]: unknown; } + + + + +Session properties + + +
+ +source? + + + + +`readonly` + + + + +'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' + + + + +(Optional) The source of this event + + +
+ +synthetics? + + + + +`readonly` + + + + +{ readonly test_id: string; readonly result_id: string; readonly injected?: boolean; \[k: string\]: unknown; } + + + + +(Optional) Synthetics properties + + +
+ +usr? + + + + +`readonly` + + + + +{ readonly id?: string; readonly name?: string; readonly email?: string; readonly anonymous_id?: string; \[k: string\]: unknown; } + + + + +(Optional) User properties + + +
+ +version? + + + + + + + +string + + + + +(Optional) The version for this application + + +
+ +view + + + + +`readonly` + + + + +{ readonly id: string; referrer?: string; url: string; name?: string; \[k: string\]: unknown; } + + + + +View properties + + +
diff --git a/docs/browser-rum.commonproperties.os.md b/docs/browser-rum.commonproperties.os.md new file mode 100644 index 0000000000..97a7f010db --- /dev/null +++ b/docs/browser-rum.commonproperties.os.md @@ -0,0 +1,26 @@ +--- +layout: default +title: "CommonProperties.os property" +nav_order: 105 +permalink: /browser-rum.commonproperties.os.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > os + +## CommonProperties.os property + +Operating system properties + +**Signature:** + +```typescript +os?: { + readonly name: string; + readonly version: string; + readonly build?: string; + readonly version_major: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.service.md b/docs/browser-rum.commonproperties.service.md new file mode 100644 index 0000000000..95837bd51f --- /dev/null +++ b/docs/browser-rum.commonproperties.service.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "CommonProperties.service property" +nav_order: 104 +permalink: /browser-rum.commonproperties.service.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > service + +## CommonProperties.service property + +The service name for this application + +**Signature:** + +```typescript +service?: string; +``` diff --git a/docs/browser-rum.commonproperties.session.md b/docs/browser-rum.commonproperties.session.md new file mode 100644 index 0000000000..629aa5e737 --- /dev/null +++ b/docs/browser-rum.commonproperties.session.md @@ -0,0 +1,25 @@ +--- +layout: default +title: "CommonProperties.session property" +nav_order: 103 +permalink: /browser-rum.commonproperties.session.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > session + +## CommonProperties.session property + +Session properties + +**Signature:** + +```typescript +readonly session: { + readonly id: string; + readonly type: 'user' | 'synthetics' | 'ci_test'; + readonly has_replay?: boolean; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.source.md b/docs/browser-rum.commonproperties.source.md new file mode 100644 index 0000000000..9519a2d02a --- /dev/null +++ b/docs/browser-rum.commonproperties.source.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "CommonProperties.source property" +nav_order: 102 +permalink: /browser-rum.commonproperties.source.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > source + +## CommonProperties.source property + +The source of this event + +**Signature:** + +```typescript +readonly source?: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform'; +``` diff --git a/docs/browser-rum.commonproperties.synthetics.md b/docs/browser-rum.commonproperties.synthetics.md new file mode 100644 index 0000000000..21c9d709f7 --- /dev/null +++ b/docs/browser-rum.commonproperties.synthetics.md @@ -0,0 +1,25 @@ +--- +layout: default +title: "CommonProperties.synthetics property" +nav_order: 101 +permalink: /browser-rum.commonproperties.synthetics.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > synthetics + +## CommonProperties.synthetics property + +Synthetics properties + +**Signature:** + +```typescript +readonly synthetics?: { + readonly test_id: string; + readonly result_id: string; + readonly injected?: boolean; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.usr.md b/docs/browser-rum.commonproperties.usr.md new file mode 100644 index 0000000000..7d6e88f676 --- /dev/null +++ b/docs/browser-rum.commonproperties.usr.md @@ -0,0 +1,26 @@ +--- +layout: default +title: "CommonProperties.usr property" +nav_order: 100 +permalink: /browser-rum.commonproperties.usr.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > usr + +## CommonProperties.usr property + +User properties + +**Signature:** + +```typescript +readonly usr?: { + readonly id?: string; + readonly name?: string; + readonly email?: string; + readonly anonymous_id?: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.commonproperties.version.md b/docs/browser-rum.commonproperties.version.md new file mode 100644 index 0000000000..45ab8bbcb2 --- /dev/null +++ b/docs/browser-rum.commonproperties.version.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "CommonProperties.version property" +nav_order: 99 +permalink: /browser-rum.commonproperties.version.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > version + +## CommonProperties.version property + +The version for this application + +**Signature:** + +```typescript +version?: string; +``` diff --git a/docs/browser-rum.commonproperties.view.md b/docs/browser-rum.commonproperties.view.md new file mode 100644 index 0000000000..84770ef441 --- /dev/null +++ b/docs/browser-rum.commonproperties.view.md @@ -0,0 +1,26 @@ +--- +layout: default +title: "CommonProperties.view property" +nav_order: 98 +permalink: /browser-rum.commonproperties.view.html +--- + + + +Home > @datadog/browser-rum > CommonProperties > view + +## CommonProperties.view property + +View properties + +**Signature:** + +```typescript +readonly view: { + readonly id: string; + referrer?: string; + url: string; + name?: string; + [k: string]: unknown; + }; +``` diff --git a/docs/browser-rum.datadogrum.md b/docs/browser-rum.datadogrum.md new file mode 100644 index 0000000000..a8a6850a7d --- /dev/null +++ b/docs/browser-rum.datadogrum.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "datadogRum variable" +nav_order: 97 +permalink: /browser-rum.datadogrum.html +--- + + + +Home > @datadog/browser-rum > datadogRum + +## datadogRum variable + +The global RUM instance. Use this to call RUM methods. + +**Signature:** + +```typescript +datadogRum: RumPublicApi +``` diff --git a/docs/browser-rum.md b/docs/browser-rum.md new file mode 100644 index 0000000000..3a55de72cc --- /dev/null +++ b/docs/browser-rum.md @@ -0,0 +1,268 @@ +--- +layout: default +title: "browser-rum package" +nav_order: 96 +permalink: /browser-rum.html +--- + + + +Home > @datadog/browser-rum + +## browser-rum package + +Datadog Browser RUM SDK - Full version with Session Replay and Real User Profiling capabilities. Use this package to monitor your web application's performance and user experience. + +## Interfaces + + + + + + + + + + + + +
+ +Interface + + + + +Description + + +
+ +CommonProperties + + + + +Schema of common properties of RUM events + + +
+ +RumActionEventDomainContext + + + + +Additional information available when the SDK dispatches a RUM Action event. + + +
+ +RumErrorEventDomainContext + + + + +Additional information available when the SDK dispatches an Error event. + + +
+ +RumFetchResourceEventDomainContext + + + + +Additional information available when the SDK dispatches a Fetch resource event. + + +
+ +RumGlobal + + + + +The RUM Browser SDK global object that provides all the public methods. + + +
+ +RumInitConfiguration + + + + +Configuration options to pass to the `init()` method when initializing the RUM SDK. + + +
+ +RumLongTaskEventDomainContext + + + + +Additional information available when the SDK dispatches a Long Task event. + + +
+ +RumOtherResourceEventDomainContext + + + + +Additional information available when the SDK dispatches a Resource event that is neither fetch nor XHR. + + +
+ +RumViewEventDomainContext + + + + +Additional information available when the SDK dispatches a RUM View event. + + +
+ +RumXhrResourceEventDomainContext + + + + +Additional information available when the SDK dispatches an XHR resource event. + + +
+ +## Variables + + + +
+ +Variable + + + + +Description + + +
+ +datadogRum + + + + +The global RUM instance. Use this to call RUM methods. + + +
+ +## Type Aliases + + + + + + + + + + +
+ +Type Alias + + + + +Description + + +
+ +RumActionEvent + + + + +Schema of all properties of an Action event + + +
+ +RumErrorEvent + + + + +Schema of all properties of an Error event + + +
+ +RumEvent + + + + +Schema of all properties of a RUM event + + +
+ +RumEventDomainContext + + + + +Additional context data that varies based on the type of RUM event being dispatched. + + +
+ +RumLongTaskEvent + + + + +Schema of all properties of a Long Task event + + +
+ +RumResourceEvent + + + + +Schema of all properties of a Resource event + + +
+ +RumViewEvent + + + + +Schema of all properties of a View event + + +
+ +RumVitalEvent + + + + +Schema of all properties of a Vital event + + +
diff --git a/docs/browser-rum.rumactionevent.md b/docs/browser-rum.rumactionevent.md new file mode 100644 index 0000000000..16eaeecb7a --- /dev/null +++ b/docs/browser-rum.rumactionevent.md @@ -0,0 +1,77 @@ +--- +layout: default +title: "RumActionEvent type" +nav_order: 95 +permalink: /browser-rum.rumactionevent.html +--- + + + +Home > @datadog/browser-rum > RumActionEvent + +## RumActionEvent type + +Schema of all properties of an Action event + +**Signature:** + +```typescript +export type RumActionEvent = CommonProperties & ViewContainerSchema & { + readonly type: 'action'; + readonly action: { + readonly type: 'custom' | 'click' | 'tap' | 'scroll' | 'swipe' | 'application_start' | 'back'; + readonly id?: string; + readonly loading_time?: number; + readonly target?: { + name: string; + [k: string]: unknown; + }; + readonly frustration?: { + readonly type: ('rage_click' | 'dead_click' | 'error_click' | 'rage_tap' | 'error_tap')[]; + [k: string]: unknown; + }; + readonly error?: { + readonly count: number; + [k: string]: unknown; + }; + readonly crash?: { + readonly count: number; + [k: string]: unknown; + }; + readonly long_task?: { + readonly count: number; + [k: string]: unknown; + }; + readonly resource?: { + readonly count: number; + [k: string]: unknown; + }; + [k: string]: unknown; + }; + readonly view?: { + readonly in_foreground?: boolean; + [k: string]: unknown; + }; + _dd?: { + readonly action?: { + readonly position?: { + readonly x: number; + readonly y: number; + [k: string]: unknown; + }; + target?: { + readonly selector?: string; + readonly width?: number; + readonly height?: number; + [k: string]: unknown; + }; + name_source?: 'custom_attribute' | 'mask_placeholder' | 'standard_attribute' | 'text_content' | 'mask_disallowed' | 'blank'; + [k: string]: unknown; + }; + [k: string]: unknown; + }; + [k: string]: unknown; +}; +``` +**References:** CommonProperties + diff --git a/docs/browser-rum.rumactioneventdomaincontext.events.md b/docs/browser-rum.rumactioneventdomaincontext.events.md new file mode 100644 index 0000000000..bb2136f9d2 --- /dev/null +++ b/docs/browser-rum.rumactioneventdomaincontext.events.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumActionEventDomainContext.events property" +nav_order: 94 +permalink: /browser-rum.rumactioneventdomaincontext.events.html +--- + + + +Home > @datadog/browser-rum > RumActionEventDomainContext > events + +## RumActionEventDomainContext.events property + +DOM events that triggered this action. + +**Signature:** + +```typescript +events?: Event[]; +``` diff --git a/docs/browser-rum.rumactioneventdomaincontext.handlingstack.md b/docs/browser-rum.rumactioneventdomaincontext.handlingstack.md new file mode 100644 index 0000000000..3eec186299 --- /dev/null +++ b/docs/browser-rum.rumactioneventdomaincontext.handlingstack.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumActionEventDomainContext.handlingStack property" +nav_order: 93 +permalink: /browser-rum.rumactioneventdomaincontext.handlingstack.html +--- + + + +Home > @datadog/browser-rum > RumActionEventDomainContext > handlingStack + +## RumActionEventDomainContext.handlingStack property + +Stack trace of where the action was handled by the SDK. + +**Signature:** + +```typescript +handlingStack?: string; +``` diff --git a/docs/browser-rum.rumactioneventdomaincontext.md b/docs/browser-rum.rumactioneventdomaincontext.md new file mode 100644 index 0000000000..a44be0e1dc --- /dev/null +++ b/docs/browser-rum.rumactioneventdomaincontext.md @@ -0,0 +1,83 @@ +--- +layout: default +title: "RumActionEventDomainContext interface" +nav_order: 92 +permalink: /browser-rum.rumactioneventdomaincontext.html +--- + + + +Home > @datadog/browser-rum > RumActionEventDomainContext + +## RumActionEventDomainContext interface + +Additional information available when the SDK dispatches a RUM Action event. + +**Signature:** + +```typescript +export interface RumActionEventDomainContext +``` + +## Properties + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +events? + + + + + + + +Event\[\] + + + + +(Optional) DOM events that triggered this action. + + +
+ +handlingStack? + + + + + + + +string + + + + +(Optional) Stack trace of where the action was handled by the SDK. + + +
diff --git a/docs/browser-rum.rumerrorevent.md b/docs/browser-rum.rumerrorevent.md new file mode 100644 index 0000000000..589062c30f --- /dev/null +++ b/docs/browser-rum.rumerrorevent.md @@ -0,0 +1,101 @@ +--- +layout: default +title: "RumErrorEvent type" +nav_order: 91 +permalink: /browser-rum.rumerrorevent.html +--- + + + +Home > @datadog/browser-rum > RumErrorEvent + +## RumErrorEvent type + +Schema of all properties of an Error event + +**Signature:** + +```typescript +export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewContainerSchema & { + readonly type: 'error'; + readonly error: { + readonly id?: string; + message: string; + readonly source: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'webview' | 'custom' | 'report'; + stack?: string; + causes?: { + message: string; + readonly type?: string; + stack?: string; + readonly source: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'webview' | 'custom' | 'report'; + [k: string]: unknown; + }[]; + readonly is_crash?: boolean; + fingerprint?: string; + readonly type?: string; + readonly category?: 'ANR' | 'App Hang' | 'Exception' | 'Watchdog Termination' | 'Memory Warning'; + readonly handling?: 'handled' | 'unhandled'; + readonly handling_stack?: string; + readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp'; + readonly resource?: { + readonly method: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'TRACE' | 'OPTIONS' | 'CONNECT'; + readonly status_code: number; + url: string; + readonly provider?: { + readonly domain?: string; + readonly name?: string; + readonly type?: 'ad' | 'advertising' | 'analytics' | 'cdn' | 'content' | 'customer-success' | 'first party' | 'hosting' | 'marketing' | 'other' | 'social' | 'tag-manager' | 'utility' | 'video'; + [k: string]: unknown; + }; + [k: string]: unknown; + }; + threads?: { + readonly name: string; + readonly crashed: boolean; + readonly stack: string; + readonly state?: string; + [k: string]: unknown; + }[]; + readonly binary_images?: { + readonly uuid: string; + readonly name: string; + readonly is_system: boolean; + readonly load_address?: string; + readonly max_address?: string; + readonly arch?: string; + [k: string]: unknown; + }[]; + readonly was_truncated?: boolean; + readonly meta?: { + readonly code_type?: string; + readonly parent_process?: string; + readonly incident_identifier?: string; + readonly process?: string; + readonly exception_type?: string; + readonly exception_codes?: string; + readonly path?: string; + [k: string]: unknown; + }; + readonly csp?: { + readonly disposition?: 'enforce' | 'report'; + [k: string]: unknown; + }; + readonly time_since_app_start?: number; + [k: string]: unknown; + }; + readonly freeze?: { + readonly duration: number; + [k: string]: unknown; + }; + readonly view?: { + readonly in_foreground?: boolean; + [k: string]: unknown; + }; + readonly feature_flags?: { + [k: string]: unknown; + }; + [k: string]: unknown; +}; +``` +**References:** CommonProperties + diff --git a/docs/browser-rum.rumerroreventdomaincontext.error.md b/docs/browser-rum.rumerroreventdomaincontext.error.md new file mode 100644 index 0000000000..c5d9e45530 --- /dev/null +++ b/docs/browser-rum.rumerroreventdomaincontext.error.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumErrorEventDomainContext.error property" +nav_order: 90 +permalink: /browser-rum.rumerroreventdomaincontext.error.html +--- + + + +Home > @datadog/browser-rum > RumErrorEventDomainContext > error + +## RumErrorEventDomainContext.error property + +The original error object that was captured. + +**Signature:** + +```typescript +error: unknown; +``` diff --git a/docs/browser-rum.rumerroreventdomaincontext.handlingstack.md b/docs/browser-rum.rumerroreventdomaincontext.handlingstack.md new file mode 100644 index 0000000000..4f367da578 --- /dev/null +++ b/docs/browser-rum.rumerroreventdomaincontext.handlingstack.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumErrorEventDomainContext.handlingStack property" +nav_order: 89 +permalink: /browser-rum.rumerroreventdomaincontext.handlingstack.html +--- + + + +Home > @datadog/browser-rum > RumErrorEventDomainContext > handlingStack + +## RumErrorEventDomainContext.handlingStack property + +Stack trace of where the error was handled by the SDK. + +**Signature:** + +```typescript +handlingStack?: string; +``` diff --git a/docs/browser-rum.rumerroreventdomaincontext.md b/docs/browser-rum.rumerroreventdomaincontext.md new file mode 100644 index 0000000000..4b3ff90ccc --- /dev/null +++ b/docs/browser-rum.rumerroreventdomaincontext.md @@ -0,0 +1,83 @@ +--- +layout: default +title: "RumErrorEventDomainContext interface" +nav_order: 88 +permalink: /browser-rum.rumerroreventdomaincontext.html +--- + + + +Home > @datadog/browser-rum > RumErrorEventDomainContext + +## RumErrorEventDomainContext interface + +Additional information available when the SDK dispatches an Error event. + +**Signature:** + +```typescript +export interface RumErrorEventDomainContext +``` + +## Properties + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +error + + + + + + + +unknown + + + + +The original error object that was captured. + + +
+ +handlingStack? + + + + + + + +string + + + + +(Optional) Stack trace of where the error was handled by the SDK. + + +
diff --git a/docs/browser-rum.rumevent.md b/docs/browser-rum.rumevent.md new file mode 100644 index 0000000000..74cebcca9d --- /dev/null +++ b/docs/browser-rum.rumevent.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumEvent type" +nav_order: 87 +permalink: /browser-rum.rumevent.html +--- + + + +Home > @datadog/browser-rum > RumEvent + +## RumEvent type + +Schema of all properties of a RUM event + +**Signature:** + +```typescript +export type RumEvent = RumActionEvent | RumErrorEvent | RumLongTaskEvent | RumResourceEvent | RumViewEvent | RumVitalEvent; +``` +**References:** RumActionEvent, RumErrorEvent, RumLongTaskEvent, RumResourceEvent, RumViewEvent, RumVitalEvent + diff --git a/docs/browser-rum.rumeventdomaincontext.md b/docs/browser-rum.rumeventdomaincontext.md new file mode 100644 index 0000000000..f5a4e50b9a --- /dev/null +++ b/docs/browser-rum.rumeventdomaincontext.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumEventDomainContext type" +nav_order: 86 +permalink: /browser-rum.rumeventdomaincontext.html +--- + + + +Home > @datadog/browser-rum > RumEventDomainContext + +## RumEventDomainContext type + +Additional context data that varies based on the type of RUM event being dispatched. + +**Signature:** + +```typescript +export type RumEventDomainContext = T extends RumEventType.VIEW ? RumViewEventDomainContext : T extends RumEventType.ACTION ? RumActionEventDomainContext : T extends RumEventType.RESOURCE ? RumFetchResourceEventDomainContext | RumXhrResourceEventDomainContext | RumOtherResourceEventDomainContext : T extends RumEventType.ERROR ? RumErrorEventDomainContext : T extends RumEventType.LONG_TASK ? RumLongTaskEventDomainContext : T extends RumEventType.VITAL ? RumVitalEventDomainContext : never; +``` +**References:** RumViewEventDomainContext, RumActionEventDomainContext, RumFetchResourceEventDomainContext, RumXhrResourceEventDomainContext, RumOtherResourceEventDomainContext, RumErrorEventDomainContext, RumLongTaskEventDomainContext + diff --git a/docs/browser-rum.rumfetchresourceeventdomaincontext.error.md b/docs/browser-rum.rumfetchresourceeventdomaincontext.error.md new file mode 100644 index 0000000000..ef4c51cd77 --- /dev/null +++ b/docs/browser-rum.rumfetchresourceeventdomaincontext.error.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumFetchResourceEventDomainContext.error property" +nav_order: 85 +permalink: /browser-rum.rumfetchresourceeventdomaincontext.error.html +--- + + + +Home > @datadog/browser-rum > RumFetchResourceEventDomainContext > error + +## RumFetchResourceEventDomainContext.error property + +Error that occurred during the fetch call. + +**Signature:** + +```typescript +error?: Error; +``` diff --git a/docs/browser-rum.rumfetchresourceeventdomaincontext.handlingstack.md b/docs/browser-rum.rumfetchresourceeventdomaincontext.handlingstack.md new file mode 100644 index 0000000000..c71bb69ec9 --- /dev/null +++ b/docs/browser-rum.rumfetchresourceeventdomaincontext.handlingstack.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumFetchResourceEventDomainContext.handlingStack property" +nav_order: 84 +permalink: /browser-rum.rumfetchresourceeventdomaincontext.handlingstack.html +--- + + + +Home > @datadog/browser-rum > RumFetchResourceEventDomainContext > handlingStack + +## RumFetchResourceEventDomainContext.handlingStack property + +Stack trace of where the resource was handled by the SDK. + +**Signature:** + +```typescript +handlingStack?: string; +``` diff --git a/docs/browser-rum.rumfetchresourceeventdomaincontext.isaborted.md b/docs/browser-rum.rumfetchresourceeventdomaincontext.isaborted.md new file mode 100644 index 0000000000..74e66de3ec --- /dev/null +++ b/docs/browser-rum.rumfetchresourceeventdomaincontext.isaborted.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumFetchResourceEventDomainContext.isAborted property" +nav_order: 83 +permalink: /browser-rum.rumfetchresourceeventdomaincontext.isaborted.html +--- + + + +Home > @datadog/browser-rum > RumFetchResourceEventDomainContext > isAborted + +## RumFetchResourceEventDomainContext.isAborted property + +Whether the fetch call was aborted. + +**Signature:** + +```typescript +isAborted: boolean; +``` diff --git a/docs/browser-rum.rumfetchresourceeventdomaincontext.md b/docs/browser-rum.rumfetchresourceeventdomaincontext.md new file mode 100644 index 0000000000..7f08e662e8 --- /dev/null +++ b/docs/browser-rum.rumfetchresourceeventdomaincontext.md @@ -0,0 +1,178 @@ +--- +layout: default +title: "RumFetchResourceEventDomainContext interface" +nav_order: 82 +permalink: /browser-rum.rumfetchresourceeventdomaincontext.html +--- + + + +Home > @datadog/browser-rum > RumFetchResourceEventDomainContext + +## RumFetchResourceEventDomainContext interface + +Additional information available when the SDK dispatches a Fetch resource event. + +**Signature:** + +```typescript +export interface RumFetchResourceEventDomainContext +``` + +## Properties + + + + + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +error? + + + + + + + +Error + + + + +(Optional) Error that occurred during the fetch call. + + +
+ +handlingStack? + + + + + + + +string + + + + +(Optional) Stack trace of where the resource was handled by the SDK. + + +
+ +isAborted + + + + + + + +boolean + + + + +Whether the fetch call was aborted. + + +
+ +performanceEntry? + + + + + + + +PerformanceEntry + + + + +(Optional) Browser performance entry for this resource. + + +
+ +requestInit? + + + + + + + +RequestInit + + + + +(Optional) Init object passed to the fetch call. + + +
+ +requestInput + + + + + + + +RequestInfo + + + + +Input parameter passed to the fetch call. + + +
+ +response? + + + + + + + +Response + + + + +(Optional) Response object returned by the fetch call. + + +
diff --git a/docs/browser-rum.rumfetchresourceeventdomaincontext.performanceentry.md b/docs/browser-rum.rumfetchresourceeventdomaincontext.performanceentry.md new file mode 100644 index 0000000000..03f9159855 --- /dev/null +++ b/docs/browser-rum.rumfetchresourceeventdomaincontext.performanceentry.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumFetchResourceEventDomainContext.performanceEntry property" +nav_order: 81 +permalink: /browser-rum.rumfetchresourceeventdomaincontext.performanceentry.html +--- + + + +Home > @datadog/browser-rum > RumFetchResourceEventDomainContext > performanceEntry + +## RumFetchResourceEventDomainContext.performanceEntry property + +Browser performance entry for this resource. + +**Signature:** + +```typescript +performanceEntry?: PerformanceEntry; +``` diff --git a/docs/browser-rum.rumfetchresourceeventdomaincontext.requestinit.md b/docs/browser-rum.rumfetchresourceeventdomaincontext.requestinit.md new file mode 100644 index 0000000000..dd3778b91b --- /dev/null +++ b/docs/browser-rum.rumfetchresourceeventdomaincontext.requestinit.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumFetchResourceEventDomainContext.requestInit property" +nav_order: 80 +permalink: /browser-rum.rumfetchresourceeventdomaincontext.requestinit.html +--- + + + +Home > @datadog/browser-rum > RumFetchResourceEventDomainContext > requestInit + +## RumFetchResourceEventDomainContext.requestInit property + +Init object passed to the fetch call. + +**Signature:** + +```typescript +requestInit?: RequestInit; +``` diff --git a/docs/browser-rum.rumfetchresourceeventdomaincontext.requestinput.md b/docs/browser-rum.rumfetchresourceeventdomaincontext.requestinput.md new file mode 100644 index 0000000000..aa7d9d51bd --- /dev/null +++ b/docs/browser-rum.rumfetchresourceeventdomaincontext.requestinput.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumFetchResourceEventDomainContext.requestInput property" +nav_order: 79 +permalink: /browser-rum.rumfetchresourceeventdomaincontext.requestinput.html +--- + + + +Home > @datadog/browser-rum > RumFetchResourceEventDomainContext > requestInput + +## RumFetchResourceEventDomainContext.requestInput property + +Input parameter passed to the fetch call. + +**Signature:** + +```typescript +requestInput: RequestInfo; +``` diff --git a/docs/browser-rum.rumfetchresourceeventdomaincontext.response.md b/docs/browser-rum.rumfetchresourceeventdomaincontext.response.md new file mode 100644 index 0000000000..ea80317107 --- /dev/null +++ b/docs/browser-rum.rumfetchresourceeventdomaincontext.response.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumFetchResourceEventDomainContext.response property" +nav_order: 78 +permalink: /browser-rum.rumfetchresourceeventdomaincontext.response.html +--- + + + +Home > @datadog/browser-rum > RumFetchResourceEventDomainContext > response + +## RumFetchResourceEventDomainContext.response property + +Response object returned by the fetch call. + +**Signature:** + +```typescript +response?: Response; +``` diff --git a/docs/browser-rum.rumglobal.addaction.md b/docs/browser-rum.rumglobal.addaction.md new file mode 100644 index 0000000000..aecb887270 --- /dev/null +++ b/docs/browser-rum.rumglobal.addaction.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.addAction property" +nav_order: 77 +permalink: /browser-rum.rumglobal.addaction.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > addAction + +## RumGlobal.addAction property + +Add a custom action, stored in `@action` + +**Signature:** + +```typescript +addAction: (name: string, context?: object) => void; +``` diff --git a/docs/browser-rum.rumglobal.adddurationvital.md b/docs/browser-rum.rumglobal.adddurationvital.md new file mode 100644 index 0000000000..fcaf91ee50 --- /dev/null +++ b/docs/browser-rum.rumglobal.adddurationvital.md @@ -0,0 +1,25 @@ +--- +layout: default +title: "RumGlobal.addDurationVital property" +nav_order: 76 +permalink: /browser-rum.rumglobal.adddurationvital.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > addDurationVital + +## RumGlobal.addDurationVital property + +Add a custom duration vital + +**Signature:** + +```typescript +addDurationVital: (name: string, options: { + startTime: number; + duration: number; + context?: object; + description?: string; + }) => void; +``` diff --git a/docs/browser-rum.rumglobal.adderror.md b/docs/browser-rum.rumglobal.adderror.md new file mode 100644 index 0000000000..8c5f374480 --- /dev/null +++ b/docs/browser-rum.rumglobal.adderror.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.addError property" +nav_order: 75 +permalink: /browser-rum.rumglobal.adderror.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > addError + +## RumGlobal.addError property + +Add a custom error, stored in `@error`. + +**Signature:** + +```typescript +addError: (error: unknown, context?: object) => void; +``` diff --git a/docs/browser-rum.rumglobal.addfeatureflagevaluation.md b/docs/browser-rum.rumglobal.addfeatureflagevaluation.md new file mode 100644 index 0000000000..76a4d846e9 --- /dev/null +++ b/docs/browser-rum.rumglobal.addfeatureflagevaluation.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.addFeatureFlagEvaluation property" +nav_order: 74 +permalink: /browser-rum.rumglobal.addfeatureflagevaluation.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > addFeatureFlagEvaluation + +## RumGlobal.addFeatureFlagEvaluation property + +Add a feature flag evaluation, stored in `@feature_flags.` + +**Signature:** + +```typescript +addFeatureFlagEvaluation: (key: string, value: any) => void; +``` diff --git a/docs/browser-rum.rumglobal.addtiming.md b/docs/browser-rum.rumglobal.addtiming.md new file mode 100644 index 0000000000..308cbee01e --- /dev/null +++ b/docs/browser-rum.rumglobal.addtiming.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.addTiming property" +nav_order: 73 +permalink: /browser-rum.rumglobal.addtiming.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > addTiming + +## RumGlobal.addTiming property + +Add a custom timing relative to the start of the current view, stored in `@view.custom_timings.` + +**Signature:** + +```typescript +addTiming: (name: string, time?: number) => void; +``` diff --git a/docs/browser-rum.rumglobal.clearaccount.md b/docs/browser-rum.rumglobal.clearaccount.md new file mode 100644 index 0000000000..fc42e1160b --- /dev/null +++ b/docs/browser-rum.rumglobal.clearaccount.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.clearAccount property" +nav_order: 72 +permalink: /browser-rum.rumglobal.clearaccount.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > clearAccount + +## RumGlobal.clearAccount property + +Clear all account information + +**Signature:** + +```typescript +clearAccount: () => void; +``` diff --git a/docs/browser-rum.rumglobal.clearglobalcontext.md b/docs/browser-rum.rumglobal.clearglobalcontext.md new file mode 100644 index 0000000000..d8704b3691 --- /dev/null +++ b/docs/browser-rum.rumglobal.clearglobalcontext.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.clearGlobalContext property" +nav_order: 71 +permalink: /browser-rum.rumglobal.clearglobalcontext.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > clearGlobalContext + +## RumGlobal.clearGlobalContext property + +Clear the global context + +See \Global context\ for further information. + +**Signature:** + +```typescript +clearGlobalContext: () => void; +``` diff --git a/docs/browser-rum.rumglobal.clearuser.md b/docs/browser-rum.rumglobal.clearuser.md new file mode 100644 index 0000000000..0f63691e32 --- /dev/null +++ b/docs/browser-rum.rumglobal.clearuser.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.clearUser property" +nav_order: 70 +permalink: /browser-rum.rumglobal.clearuser.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > clearUser + +## RumGlobal.clearUser property + +Clear all user information + +See \User session\ for further information. + +**Signature:** + +```typescript +clearUser: () => void; +``` diff --git a/docs/browser-rum.rumglobal.getaccount.md b/docs/browser-rum.rumglobal.getaccount.md new file mode 100644 index 0000000000..2be637db4c --- /dev/null +++ b/docs/browser-rum.rumglobal.getaccount.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.getAccount property" +nav_order: 69 +permalink: /browser-rum.rumglobal.getaccount.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > getAccount + +## RumGlobal.getAccount property + +Get account information + +**Signature:** + +```typescript +getAccount: () => Context; +``` diff --git a/docs/browser-rum.rumglobal.getglobalcontext.md b/docs/browser-rum.rumglobal.getglobalcontext.md new file mode 100644 index 0000000000..a30158f14a --- /dev/null +++ b/docs/browser-rum.rumglobal.getglobalcontext.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.getGlobalContext property" +nav_order: 68 +permalink: /browser-rum.rumglobal.getglobalcontext.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > getGlobalContext + +## RumGlobal.getGlobalContext property + +Get the global Context + +See \Global context\ for further information. + +**Signature:** + +```typescript +getGlobalContext: () => Context; +``` diff --git a/docs/browser-rum.rumglobal.getinitconfiguration.md b/docs/browser-rum.rumglobal.getinitconfiguration.md new file mode 100644 index 0000000000..861e4caa24 --- /dev/null +++ b/docs/browser-rum.rumglobal.getinitconfiguration.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.getInitConfiguration property" +nav_order: 67 +permalink: /browser-rum.rumglobal.getinitconfiguration.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > getInitConfiguration + +## RumGlobal.getInitConfiguration property + +Get the init configuration + +**Signature:** + +```typescript +getInitConfiguration: () => RumInitConfiguration | undefined; +``` diff --git a/docs/browser-rum.rumglobal.getinternalcontext.md b/docs/browser-rum.rumglobal.getinternalcontext.md new file mode 100644 index 0000000000..ee514add3e --- /dev/null +++ b/docs/browser-rum.rumglobal.getinternalcontext.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.getInternalContext property" +nav_order: 66 +permalink: /browser-rum.rumglobal.getinternalcontext.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > getInternalContext + +## RumGlobal.getInternalContext property + +\[Internal API\] Get the internal SDK context + +**Signature:** + +```typescript +getInternalContext: (startTime?: number) => InternalContext | undefined; +``` diff --git a/docs/browser-rum.rumglobal.getsessionreplaylink.md b/docs/browser-rum.rumglobal.getsessionreplaylink.md new file mode 100644 index 0000000000..ecfa57c033 --- /dev/null +++ b/docs/browser-rum.rumglobal.getsessionreplaylink.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.getSessionReplayLink property" +nav_order: 65 +permalink: /browser-rum.rumglobal.getsessionreplaylink.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > getSessionReplayLink + +## RumGlobal.getSessionReplayLink property + +Get the Session Replay Link. + +See \Connect Session Replay To Your Third-Party Tools\ for further information. + +**Signature:** + +```typescript +getSessionReplayLink: () => string | undefined; +``` diff --git a/docs/browser-rum.rumglobal.getuser.md b/docs/browser-rum.rumglobal.getuser.md new file mode 100644 index 0000000000..9a3f981ced --- /dev/null +++ b/docs/browser-rum.rumglobal.getuser.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.getUser property" +nav_order: 64 +permalink: /browser-rum.rumglobal.getuser.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > getUser + +## RumGlobal.getUser property + +Get user information + +See \User session\ for further information. + +**Signature:** + +```typescript +getUser: () => Context; +``` diff --git a/docs/browser-rum.rumglobal.getviewcontext.md b/docs/browser-rum.rumglobal.getviewcontext.md new file mode 100644 index 0000000000..390755ac6f --- /dev/null +++ b/docs/browser-rum.rumglobal.getviewcontext.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.getViewContext property" +nav_order: 63 +permalink: /browser-rum.rumglobal.getviewcontext.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > getViewContext + +## RumGlobal.getViewContext property + +Get View Context. + +**Signature:** + +```typescript +getViewContext: () => Context; +``` diff --git a/docs/browser-rum.rumglobal.init.md b/docs/browser-rum.rumglobal.init.md new file mode 100644 index 0000000000..5238c118ed --- /dev/null +++ b/docs/browser-rum.rumglobal.init.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.init property" +nav_order: 62 +permalink: /browser-rum.rumglobal.init.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > init + +## RumGlobal.init property + +Init the RUM browser SDK. + +**Signature:** + +```typescript +init: (initConfiguration: RumInitConfiguration) => void; +``` diff --git a/docs/browser-rum.rumglobal.md b/docs/browser-rum.rumglobal.md new file mode 100644 index 0000000000..261cbe99a6 --- /dev/null +++ b/docs/browser-rum.rumglobal.md @@ -0,0 +1,757 @@ +--- +layout: default +title: "RumGlobal interface" +nav_order: 61 +permalink: /browser-rum.rumglobal.html +--- + + + +Home > @datadog/browser-rum > RumGlobal + +## RumGlobal interface + +The RUM Browser SDK global object that provides all the public methods. + +**Signature:** + +```typescript +export interface RumPublicApi extends PublicApi +``` +**Extends:** PublicApi + +## Properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +addAction + + + + + + + +(name: string, context?: object) => void + + + + +Add a custom action, stored in `@action` + + +
+ +addDurationVital + + + + + + + +(name: string, options: { startTime: number; duration: number; context?: object; description?: string; }) => void + + + + +Add a custom duration vital + + +
+ +addError + + + + + + + +(error: unknown, context?: object) => void + + + + +Add a custom error, stored in `@error`. + + +
+ +addFeatureFlagEvaluation + + + + + + + +(key: string, value: any) => void + + + + +Add a feature flag evaluation, stored in `@feature_flags.` + + +
+ +addTiming + + + + + + + +(name: string, time?: number) => void + + + + +Add a custom timing relative to the start of the current view, stored in `@view.custom_timings.` + + +
+ +clearAccount + + + + + + + +() => void + + + + +Clear all account information + + +
+ +clearGlobalContext + + + + + + + +() => void + + + + +Clear the global context + +See \Global context\ for further information. + + +
+ +clearUser + + + + + + + +() => void + + + + +Clear all user information + +See \User session\ for further information. + + +
+ +getAccount + + + + + + + +() => Context + + + + +Get account information + + +
+ +getGlobalContext + + + + + + + +() => Context + + + + +Get the global Context + +See \Global context\ for further information. + + +
+ +getInitConfiguration + + + + + + + +() => RumInitConfiguration | undefined + + + + +Get the init configuration + + +
+ +getInternalContext + + + + + + + +(startTime?: number) => InternalContext | undefined + + + + +\[Internal API\] Get the internal SDK context + + +
+ +getSessionReplayLink + + + + + + + +() => string | undefined + + + + +Get the Session Replay Link. + +See \Connect Session Replay To Your Third-Party Tools\ for further information. + + +
+ +getUser + + + + + + + +() => Context + + + + +Get user information + +See \User session\ for further information. + + +
+ +getViewContext + + + + + + + +() => Context + + + + +Get View Context. + + +
+ +init + + + + + + + +(initConfiguration: RumInitConfiguration) => void + + + + +Init the RUM browser SDK. + + +
+ +removeAccountProperty + + + + + + + +(key: string) => void + + + + +Remove an account property + + +
+ +removeGlobalContextProperty + + + + + + + +(key: any) => void + + + + +Remove a global context property + +See \Global context\ for further information. + + +
+ +removeUserProperty + + + + + + + +(key: any) => void + + + + +Remove a user property + +See \User session\ for further information. + + +
+ +setAccount + + + + + + + +(newAccount: Account) => void + + + + +Set account information to all events, stored in `@account` + + +
+ +setAccountProperty + + + + + + + +(key: string, property: any) => void + + + + +Set or update the account property, stored in `@account.` + + +
+ +setGlobalContext + + + + + + + +(context: any) => void + + + + +Set the global context information to all events, stored in `@context` + + +
+ +setGlobalContextProperty + + + + + + + +(key: any, value: any) => void + + + + +Set or update a global context property, stored in `@context.` + + +
+ +setTrackingConsent + + + + + + + +(trackingConsent: TrackingConsent) => void + + + + +Set the tracking consent of the current user. + + +
+ +setUserProperty + + + + + + + +(key: any, property: any) => void + + + + +Set or update the user property, stored in `@usr.` + + +
+ +setViewContext + + + + + + + +(context: Context) => void + + + + +Set View Context. + +Enable to manually set the context of the current view. + + +
+ +setViewContextProperty + + + + + + + +(key: string, value: any) => void + + + + +Set View Context Property. + +Enable to manually set a property of the context of the current view. + + +
+ +setViewName + + + + + + + +(name: string) => void + + + + +Set View Name. + +Enable to manually change the name of the current view. + + +
+ +startDurationVital + + + + + + + +(name: string, options?: { context?: object; description?: string; }) => DurationVitalReference + + + + +Start a custom duration vital. + +If you plan to have multiple durations for the same vital, you should use the reference returned by this method. + + +
+ +startSessionReplayRecording + + + + + + + +(options?: StartRecordingOptions) => void + + + + +Start Session Replay recording. Enable to conditionally start the recording, use the `startSessionReplayRecordingManually:true` init parameter and call `startSessionReplayRecording()` + +See \Browser Session Replay\ for further information. + + +
+ +startView + + + + + + + +{ (name?: string): void; (options: ViewOptions): void; } + + + + +Start a view manually. Enable to manual start a view, use `trackViewsManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you've defined them in your SPA application routing. + + +
+ +stopDurationVital + + + + + + + +(nameOrRef: string | DurationVitalReference, options?: { context?: object; description?: string; }) => void + + + + +Stop a custom duration vital + + +
+ +stopSession + + + + + + + +() => void + + + + +Stop the session. A new session will start at the next user interaction with the page. + + +
+ +stopSessionReplayRecording + + + + + + + +() => void + + + + +Stop Session Replay recording. + +See \Browser Session Replay\ for further information. + + +
+ +## Methods + + + + +
+ +Method + + + + +Description + + +
+ +setUser(newUser) + + + + +Set user information to all events, stored in `@usr` + +See \User session\ for further information. + + +
+ +setUser(newUser) + + + + +Set user information to all events, stored in `@usr` + + +
diff --git a/docs/browser-rum.rumglobal.removeaccountproperty.md b/docs/browser-rum.rumglobal.removeaccountproperty.md new file mode 100644 index 0000000000..dc0966e096 --- /dev/null +++ b/docs/browser-rum.rumglobal.removeaccountproperty.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.removeAccountProperty property" +nav_order: 60 +permalink: /browser-rum.rumglobal.removeaccountproperty.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > removeAccountProperty + +## RumGlobal.removeAccountProperty property + +Remove an account property + +**Signature:** + +```typescript +removeAccountProperty: (key: string) => void; +``` diff --git a/docs/browser-rum.rumglobal.removeglobalcontextproperty.md b/docs/browser-rum.rumglobal.removeglobalcontextproperty.md new file mode 100644 index 0000000000..5a687d259c --- /dev/null +++ b/docs/browser-rum.rumglobal.removeglobalcontextproperty.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.removeGlobalContextProperty property" +nav_order: 59 +permalink: /browser-rum.rumglobal.removeglobalcontextproperty.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > removeGlobalContextProperty + +## RumGlobal.removeGlobalContextProperty property + +Remove a global context property + +See \Global context\ for further information. + +**Signature:** + +```typescript +removeGlobalContextProperty: (key: any) => void; +``` diff --git a/docs/browser-rum.rumglobal.removeuserproperty.md b/docs/browser-rum.rumglobal.removeuserproperty.md new file mode 100644 index 0000000000..d312f17ad6 --- /dev/null +++ b/docs/browser-rum.rumglobal.removeuserproperty.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.removeUserProperty property" +nav_order: 58 +permalink: /browser-rum.rumglobal.removeuserproperty.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > removeUserProperty + +## RumGlobal.removeUserProperty property + +Remove a user property + +See \User session\ for further information. + +**Signature:** + +```typescript +removeUserProperty: (key: any) => void; +``` diff --git a/docs/browser-rum.rumglobal.setaccount.md b/docs/browser-rum.rumglobal.setaccount.md new file mode 100644 index 0000000000..dad53265b1 --- /dev/null +++ b/docs/browser-rum.rumglobal.setaccount.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.setAccount property" +nav_order: 57 +permalink: /browser-rum.rumglobal.setaccount.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setAccount + +## RumGlobal.setAccount property + +Set account information to all events, stored in `@account` + +**Signature:** + +```typescript +setAccount: (newAccount: Account) => void; +``` diff --git a/docs/browser-rum.rumglobal.setaccountproperty.md b/docs/browser-rum.rumglobal.setaccountproperty.md new file mode 100644 index 0000000000..a7ef2e7ffd --- /dev/null +++ b/docs/browser-rum.rumglobal.setaccountproperty.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.setAccountProperty property" +nav_order: 56 +permalink: /browser-rum.rumglobal.setaccountproperty.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setAccountProperty + +## RumGlobal.setAccountProperty property + +Set or update the account property, stored in `@account.` + +**Signature:** + +```typescript +setAccountProperty: (key: string, property: any) => void; +``` diff --git a/docs/browser-rum.rumglobal.setglobalcontext.md b/docs/browser-rum.rumglobal.setglobalcontext.md new file mode 100644 index 0000000000..e8201fbb10 --- /dev/null +++ b/docs/browser-rum.rumglobal.setglobalcontext.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.setGlobalContext property" +nav_order: 55 +permalink: /browser-rum.rumglobal.setglobalcontext.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setGlobalContext + +## RumGlobal.setGlobalContext property + +Set the global context information to all events, stored in `@context` + +**Signature:** + +```typescript +setGlobalContext: (context: any) => void; +``` diff --git a/docs/browser-rum.rumglobal.setglobalcontextproperty.md b/docs/browser-rum.rumglobal.setglobalcontextproperty.md new file mode 100644 index 0000000000..8ea7a14eed --- /dev/null +++ b/docs/browser-rum.rumglobal.setglobalcontextproperty.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.setGlobalContextProperty property" +nav_order: 54 +permalink: /browser-rum.rumglobal.setglobalcontextproperty.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setGlobalContextProperty + +## RumGlobal.setGlobalContextProperty property + +Set or update a global context property, stored in `@context.` + +**Signature:** + +```typescript +setGlobalContextProperty: (key: any, value: any) => void; +``` diff --git a/docs/browser-rum.rumglobal.settrackingconsent.md b/docs/browser-rum.rumglobal.settrackingconsent.md new file mode 100644 index 0000000000..3d27ff610b --- /dev/null +++ b/docs/browser-rum.rumglobal.settrackingconsent.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.setTrackingConsent property" +nav_order: 53 +permalink: /browser-rum.rumglobal.settrackingconsent.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setTrackingConsent + +## RumGlobal.setTrackingConsent property + +Set the tracking consent of the current user. + +**Signature:** + +```typescript +setTrackingConsent: (trackingConsent: TrackingConsent) => void; +``` diff --git a/docs/browser-rum.rumglobal.setuser.md b/docs/browser-rum.rumglobal.setuser.md new file mode 100644 index 0000000000..57c136e528 --- /dev/null +++ b/docs/browser-rum.rumglobal.setuser.md @@ -0,0 +1,62 @@ +--- +layout: default +title: "RumGlobal.setUser() method" +nav_order: 52 +permalink: /browser-rum.rumglobal.setuser.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setUser + +## RumGlobal.setUser() method + +Set user information to all events, stored in `@usr` + +See \User session\ for further information. + +**Signature:** + +```typescript +setUser(newUser: User & { + id: string; + }): void; +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +newUser + + + + +User & { id: string; } + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-rum.rumglobal.setuser_1.md b/docs/browser-rum.rumglobal.setuser_1.md new file mode 100644 index 0000000000..f3efe9a09c --- /dev/null +++ b/docs/browser-rum.rumglobal.setuser_1.md @@ -0,0 +1,63 @@ +--- +layout: default +title: "RumGlobal.setUser() method" +nav_order: 51 +permalink: /browser-rum.rumglobal.setuser_1.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setUser + +## RumGlobal.setUser() method + +> Warning: This API is now obsolete. +> +> You must specify a user id +> + +Set user information to all events, stored in `@usr` + +**Signature:** + +```typescript +setUser(newUser: User): void; +``` + +## Parameters + + + +
+ +Parameter + + + + +Type + + + + +Description + + +
+ +newUser + + + + +User + + + + + +
+**Returns:** + +void + diff --git a/docs/browser-rum.rumglobal.setuserproperty.md b/docs/browser-rum.rumglobal.setuserproperty.md new file mode 100644 index 0000000000..5ba6d98702 --- /dev/null +++ b/docs/browser-rum.rumglobal.setuserproperty.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.setUserProperty property" +nav_order: 50 +permalink: /browser-rum.rumglobal.setuserproperty.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setUserProperty + +## RumGlobal.setUserProperty property + +Set or update the user property, stored in `@usr.` + +**Signature:** + +```typescript +setUserProperty: (key: any, property: any) => void; +``` diff --git a/docs/browser-rum.rumglobal.setviewcontext.md b/docs/browser-rum.rumglobal.setviewcontext.md new file mode 100644 index 0000000000..5bb6781221 --- /dev/null +++ b/docs/browser-rum.rumglobal.setviewcontext.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.setViewContext property" +nav_order: 49 +permalink: /browser-rum.rumglobal.setviewcontext.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setViewContext + +## RumGlobal.setViewContext property + +Set View Context. + +Enable to manually set the context of the current view. + +**Signature:** + +```typescript +setViewContext: (context: Context) => void; +``` diff --git a/docs/browser-rum.rumglobal.setviewcontextproperty.md b/docs/browser-rum.rumglobal.setviewcontextproperty.md new file mode 100644 index 0000000000..6455f010cd --- /dev/null +++ b/docs/browser-rum.rumglobal.setviewcontextproperty.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.setViewContextProperty property" +nav_order: 48 +permalink: /browser-rum.rumglobal.setviewcontextproperty.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setViewContextProperty + +## RumGlobal.setViewContextProperty property + +Set View Context Property. + +Enable to manually set a property of the context of the current view. + +**Signature:** + +```typescript +setViewContextProperty: (key: string, value: any) => void; +``` diff --git a/docs/browser-rum.rumglobal.setviewname.md b/docs/browser-rum.rumglobal.setviewname.md new file mode 100644 index 0000000000..7af8d03a41 --- /dev/null +++ b/docs/browser-rum.rumglobal.setviewname.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.setViewName property" +nav_order: 47 +permalink: /browser-rum.rumglobal.setviewname.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > setViewName + +## RumGlobal.setViewName property + +Set View Name. + +Enable to manually change the name of the current view. + +**Signature:** + +```typescript +setViewName: (name: string) => void; +``` diff --git a/docs/browser-rum.rumglobal.startdurationvital.md b/docs/browser-rum.rumglobal.startdurationvital.md new file mode 100644 index 0000000000..9514e62d59 --- /dev/null +++ b/docs/browser-rum.rumglobal.startdurationvital.md @@ -0,0 +1,25 @@ +--- +layout: default +title: "RumGlobal.startDurationVital property" +nav_order: 46 +permalink: /browser-rum.rumglobal.startdurationvital.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > startDurationVital + +## RumGlobal.startDurationVital property + +Start a custom duration vital. + +If you plan to have multiple durations for the same vital, you should use the reference returned by this method. + +**Signature:** + +```typescript +startDurationVital: (name: string, options?: { + context?: object; + description?: string; + }) => DurationVitalReference; +``` diff --git a/docs/browser-rum.rumglobal.startsessionreplayrecording.md b/docs/browser-rum.rumglobal.startsessionreplayrecording.md new file mode 100644 index 0000000000..382a950bc0 --- /dev/null +++ b/docs/browser-rum.rumglobal.startsessionreplayrecording.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.startSessionReplayRecording property" +nav_order: 45 +permalink: /browser-rum.rumglobal.startsessionreplayrecording.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > startSessionReplayRecording + +## RumGlobal.startSessionReplayRecording property + +Start Session Replay recording. Enable to conditionally start the recording, use the `startSessionReplayRecordingManually:true` init parameter and call `startSessionReplayRecording()` + +See \Browser Session Replay\ for further information. + +**Signature:** + +```typescript +startSessionReplayRecording: (options?: StartRecordingOptions) => void; +``` diff --git a/docs/browser-rum.rumglobal.startview.md b/docs/browser-rum.rumglobal.startview.md new file mode 100644 index 0000000000..24fe662188 --- /dev/null +++ b/docs/browser-rum.rumglobal.startview.md @@ -0,0 +1,23 @@ +--- +layout: default +title: "RumGlobal.startView property" +nav_order: 44 +permalink: /browser-rum.rumglobal.startview.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > startView + +## RumGlobal.startView property + +Start a view manually. Enable to manual start a view, use `trackViewsManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you've defined them in your SPA application routing. + +**Signature:** + +```typescript +startView: { + (name?: string): void; + (options: ViewOptions): void; + }; +``` diff --git a/docs/browser-rum.rumglobal.stopdurationvital.md b/docs/browser-rum.rumglobal.stopdurationvital.md new file mode 100644 index 0000000000..01e1517e81 --- /dev/null +++ b/docs/browser-rum.rumglobal.stopdurationvital.md @@ -0,0 +1,23 @@ +--- +layout: default +title: "RumGlobal.stopDurationVital property" +nav_order: 43 +permalink: /browser-rum.rumglobal.stopdurationvital.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > stopDurationVital + +## RumGlobal.stopDurationVital property + +Stop a custom duration vital + +**Signature:** + +```typescript +stopDurationVital: (nameOrRef: string | DurationVitalReference, options?: { + context?: object; + description?: string; + }) => void; +``` diff --git a/docs/browser-rum.rumglobal.stopsession.md b/docs/browser-rum.rumglobal.stopsession.md new file mode 100644 index 0000000000..3afbbb0660 --- /dev/null +++ b/docs/browser-rum.rumglobal.stopsession.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumGlobal.stopSession property" +nav_order: 42 +permalink: /browser-rum.rumglobal.stopsession.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > stopSession + +## RumGlobal.stopSession property + +Stop the session. A new session will start at the next user interaction with the page. + +**Signature:** + +```typescript +stopSession: () => void; +``` diff --git a/docs/browser-rum.rumglobal.stopsessionreplayrecording.md b/docs/browser-rum.rumglobal.stopsessionreplayrecording.md new file mode 100644 index 0000000000..090058dcd7 --- /dev/null +++ b/docs/browser-rum.rumglobal.stopsessionreplayrecording.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumGlobal.stopSessionReplayRecording property" +nav_order: 41 +permalink: /browser-rum.rumglobal.stopsessionreplayrecording.html +--- + + + +Home > @datadog/browser-rum > RumGlobal > stopSessionReplayRecording + +## RumGlobal.stopSessionReplayRecording property + +Stop Session Replay recording. + +See \Browser Session Replay\ for further information. + +**Signature:** + +```typescript +stopSessionReplayRecording: () => void; +``` diff --git a/docs/browser-rum.ruminitconfiguration.actionnameattribute.md b/docs/browser-rum.ruminitconfiguration.actionnameattribute.md new file mode 100644 index 0000000000..10d819862b --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.actionnameattribute.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.actionNameAttribute property" +nav_order: 40 +permalink: /browser-rum.ruminitconfiguration.actionnameattribute.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > actionNameAttribute + +## RumInitConfiguration.actionNameAttribute property + +Specify your own attribute to use to name actions. See Declare a name for click actions for further information. + +**Signature:** + +```typescript +actionNameAttribute?: string | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.allowedtracingurls.md b/docs/browser-rum.ruminitconfiguration.allowedtracingurls.md new file mode 100644 index 0000000000..68c3000693 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.allowedtracingurls.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.allowedTracingUrls property" +nav_order: 39 +permalink: /browser-rum.ruminitconfiguration.allowedtracingurls.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > allowedTracingUrls + +## RumInitConfiguration.allowedTracingUrls property + +A list of request URLs used to inject tracing headers. See Connect RUM and Traces for further information. + +**Signature:** + +```typescript +allowedTracingUrls?: Array | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.applicationid.md b/docs/browser-rum.ruminitconfiguration.applicationid.md new file mode 100644 index 0000000000..c7afd087d6 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.applicationid.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.applicationId property" +nav_order: 38 +permalink: /browser-rum.ruminitconfiguration.applicationid.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > applicationId + +## RumInitConfiguration.applicationId property + +The RUM application ID. + +**Signature:** + +```typescript +applicationId: string; +``` diff --git a/docs/browser-rum.ruminitconfiguration.beforesend.md b/docs/browser-rum.ruminitconfiguration.beforesend.md new file mode 100644 index 0000000000..d4d5a096f6 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.beforesend.md @@ -0,0 +1,22 @@ +--- +layout: default +title: "RumInitConfiguration.beforeSend property" +nav_order: 37 +permalink: /browser-rum.ruminitconfiguration.beforesend.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > beforeSend + +## RumInitConfiguration.beforeSend property + +Access to every event collected by the RUM SDK before they are sent to Datadog. It allows: - Enrich your RUM events with additional context attributes - Modify your RUM events to modify their content, or redact sensitive sequences (see the list of editable properties) - Discard selected RUM events + +See Enrich And Control Browser RUM Data With beforeSend for further information. + +**Signature:** + +```typescript +beforeSend?: ((event: RumEvent, context: RumEventDomainContext) => boolean) | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.compressintakerequests.md b/docs/browser-rum.ruminitconfiguration.compressintakerequests.md new file mode 100644 index 0000000000..858a1230a9 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.compressintakerequests.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.compressIntakeRequests property" +nav_order: 36 +permalink: /browser-rum.ruminitconfiguration.compressintakerequests.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > compressIntakeRequests + +## RumInitConfiguration.compressIntakeRequests property + +Compress requests sent to the Datadog intake to reduce bandwidth usage when sending large amounts of data. The compression is done in a Worker thread. See Content Security Policy guidelines for further information. + +**Signature:** + +```typescript +compressIntakeRequests?: boolean | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.defaultprivacylevel.md b/docs/browser-rum.ruminitconfiguration.defaultprivacylevel.md new file mode 100644 index 0000000000..50271aa0c7 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.defaultprivacylevel.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.defaultPrivacyLevel property" +nav_order: 35 +permalink: /browser-rum.ruminitconfiguration.defaultprivacylevel.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > defaultPrivacyLevel + +## RumInitConfiguration.defaultPrivacyLevel property + +Allow to protect end user privacy and prevent sensitive organizational information from being collected. mask See Replay Privacy Options for further information. + +**Signature:** + +```typescript +defaultPrivacyLevel?: DefaultPrivacyLevel | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.enableprivacyforactionname.md b/docs/browser-rum.ruminitconfiguration.enableprivacyforactionname.md new file mode 100644 index 0000000000..ec9ddcf82a --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.enableprivacyforactionname.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.enablePrivacyForActionName property" +nav_order: 34 +permalink: /browser-rum.ruminitconfiguration.enableprivacyforactionname.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > enablePrivacyForActionName + +## RumInitConfiguration.enablePrivacyForActionName property + +Enables privacy control for action names. + +**Signature:** + +```typescript +enablePrivacyForActionName?: boolean | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.excludedactivityurls.md b/docs/browser-rum.ruminitconfiguration.excludedactivityurls.md new file mode 100644 index 0000000000..d6724737dd --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.excludedactivityurls.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.excludedActivityUrls property" +nav_order: 33 +permalink: /browser-rum.ruminitconfiguration.excludedactivityurls.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > excludedActivityUrls + +## RumInitConfiguration.excludedActivityUrls property + +A list of request origins ignored when computing the page activity. See How page activity is calculated for further information. + +**Signature:** + +```typescript +excludedActivityUrls?: MatchOption[] | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.md b/docs/browser-rum.ruminitconfiguration.md new file mode 100644 index 0000000000..f2c43c91b5 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.md @@ -0,0 +1,485 @@ +--- +layout: default +title: "RumInitConfiguration interface" +nav_order: 32 +permalink: /browser-rum.ruminitconfiguration.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration + +## RumInitConfiguration interface + +Configuration options to pass to the `init()` method when initializing the RUM SDK. + +**Signature:** + +```typescript +export interface RumInitConfiguration extends InitConfiguration +``` +**Extends:** InitConfiguration + +## Properties + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +actionNameAttribute? + + + + + + + +string | undefined + + + + +(Optional) Specify your own attribute to use to name actions. See Declare a name for click actions for further information. + + +
+ +allowedTracingUrls? + + + + + + + +Array<MatchOption | TracingOption> | undefined + + + + +(Optional) A list of request URLs used to inject tracing headers. See Connect RUM and Traces for further information. + + +
+ +applicationId + + + + + + + +string + + + + +The RUM application ID. + + +
+ +beforeSend? + + + + + + + +((event: RumEvent, context: RumEventDomainContext) => boolean) | undefined + + + + +(Optional) Access to every event collected by the RUM SDK before they are sent to Datadog. It allows: - Enrich your RUM events with additional context attributes - Modify your RUM events to modify their content, or redact sensitive sequences (see the list of editable properties) - Discard selected RUM events + +See Enrich And Control Browser RUM Data With beforeSend for further information. + + +
+ +compressIntakeRequests? + + + + + + + +boolean | undefined + + + + +(Optional) Compress requests sent to the Datadog intake to reduce bandwidth usage when sending large amounts of data. The compression is done in a Worker thread. See Content Security Policy guidelines for further information. + + +
+ +defaultPrivacyLevel? + + + + + + + +DefaultPrivacyLevel | undefined + + + + +(Optional) Allow to protect end user privacy and prevent sensitive organizational information from being collected. mask See Replay Privacy Options for further information. + + +
+ +enablePrivacyForActionName? + + + + + + + +boolean | undefined + + + + +(Optional) Enables privacy control for action names. + + +
+ +excludedActivityUrls? + + + + + + + +MatchOption\[\] | undefined + + + + +(Optional) A list of request origins ignored when computing the page activity. See How page activity is calculated for further information. + + +
+ +plugins? + + + + + + + +RumPlugin\[\] | undefined + + + + +(Optional) List of plugins to enable. The plugins API is unstable and experimental, and may change without notice. Please use only plugins provided by Datadog matching the version of the SDK you are using. + + +
+ +profilingSampleRate? + + + + + + + +number | undefined + + + + +(Optional) Not ready for production. The percentage of users profiled. A value between 0 and 100. 0 + + +
+ +propagateTraceBaggage? + + + + + + + +boolean | undefined + + + + +(Optional) Whether to propagate user and account IDs in the baggage header of trace requests. false + + +
+ +remoteConfigurationId? + + + + + + + +string | undefined + + + + +(Optional) Identifier of the remote configuration to fetch dynamic settings for your application at runtime. Unless you have been instructed by Datadog support to use this feature, you should leave this parameter undefined. + + +
+ +sessionReplaySampleRate? + + + + + + + +number | undefined + + + + +(Optional) The percentage of tracked sessions with \Browser RUM & Session Replay pricing\ features: 100 for all, 0 for none. See Configure Your Setup For Browser RUM and Browser RUM & Session Replay Sampling for further information. + + +
+ +startSessionReplayRecordingManually? + + + + + + + +boolean | undefined + + + + +(Optional) If the session is sampled for Session Replay, only start the recording when `startSessionReplayRecording()` is called, instead of at the beginning of the session. Default: if startSessionReplayRecording is 0, true; otherwise, false. See Session Replay Usage for further information. + + +
+ +subdomain? + + + + + + + +string + + + + +(Optional) If you are accessing Datadog through a custom subdomain, you can set `subdomain` to include your custom domain in the `getSessionReplayLink()` returned URL . See Connect Session Replay To Your Third-Party Tools for further information. + + +
+ +traceContextInjection? + + + + + + + +TraceContextInjection | undefined + + + + +(Optional) If you set a `traceSampleRate`, to ensure backend services' sampling decisions are still applied, configure the `traceContextInjection` initialization parameter to sampled. sampled See Connect RUM and Traces for further information. + + +
+ +traceSampleRate? + + + + + + + +number | undefined + + + + +(Optional) The percentage of requests to trace: 100 for all, 0 for none. See Connect RUM and Traces for further information. + + +
+ +trackFeatureFlagsForEvents? + + + + + + + +FeatureFlagsForEvents\[\] + + + + +(Optional) Enables collection of features flags in chosen events. + + +
+ +trackLongTasks? + + + + + + + +boolean | undefined + + + + +(Optional) Enables collection of long task events. true + + +
+ +trackResources? + + + + + + + +boolean | undefined + + + + +(Optional) Enables collection of resource events. true + + +
+ +trackUserInteractions? + + + + + + + +boolean | undefined + + + + +(Optional) Enables automatic collection of users actions. See Tracking User Actions for further information. true + + +
+ +trackViewsManually? + + + + + + + +boolean | undefined + + + + +(Optional) Allows you to control RUM views creation. See Override default RUM view names for further information. + + +
+ +workerUrl? + + + + + + + +string + + + + +(Optional) URL pointing to the Datadog Browser SDK Worker JavaScript file. The URL can be relative or absolute, but is required to have the same origin as the web application. See Content Security Policy guidelines for further information. + + +
diff --git a/docs/browser-rum.ruminitconfiguration.plugins.md b/docs/browser-rum.ruminitconfiguration.plugins.md new file mode 100644 index 0000000000..5bff45a334 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.plugins.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.plugins property" +nav_order: 31 +permalink: /browser-rum.ruminitconfiguration.plugins.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > plugins + +## RumInitConfiguration.plugins property + +List of plugins to enable. The plugins API is unstable and experimental, and may change without notice. Please use only plugins provided by Datadog matching the version of the SDK you are using. + +**Signature:** + +```typescript +plugins?: RumPlugin[] | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.profilingsamplerate.md b/docs/browser-rum.ruminitconfiguration.profilingsamplerate.md new file mode 100644 index 0000000000..37ba115f11 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.profilingsamplerate.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.profilingSampleRate property" +nav_order: 30 +permalink: /browser-rum.ruminitconfiguration.profilingsamplerate.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > profilingSampleRate + +## RumInitConfiguration.profilingSampleRate property + +Not ready for production. The percentage of users profiled. A value between 0 and 100. 0 + +**Signature:** + +```typescript +profilingSampleRate?: number | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.propagatetracebaggage.md b/docs/browser-rum.ruminitconfiguration.propagatetracebaggage.md new file mode 100644 index 0000000000..723e7a3978 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.propagatetracebaggage.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.propagateTraceBaggage property" +nav_order: 29 +permalink: /browser-rum.ruminitconfiguration.propagatetracebaggage.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > propagateTraceBaggage + +## RumInitConfiguration.propagateTraceBaggage property + +Whether to propagate user and account IDs in the baggage header of trace requests. false + +**Signature:** + +```typescript +propagateTraceBaggage?: boolean | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.remoteconfigurationid.md b/docs/browser-rum.ruminitconfiguration.remoteconfigurationid.md new file mode 100644 index 0000000000..4018b274fb --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.remoteconfigurationid.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.remoteConfigurationId property" +nav_order: 28 +permalink: /browser-rum.ruminitconfiguration.remoteconfigurationid.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > remoteConfigurationId + +## RumInitConfiguration.remoteConfigurationId property + +Identifier of the remote configuration to fetch dynamic settings for your application at runtime. Unless you have been instructed by Datadog support to use this feature, you should leave this parameter undefined. + +**Signature:** + +```typescript +remoteConfigurationId?: string | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.sessionreplaysamplerate.md b/docs/browser-rum.ruminitconfiguration.sessionreplaysamplerate.md new file mode 100644 index 0000000000..c1c2d6b7dc --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.sessionreplaysamplerate.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.sessionReplaySampleRate property" +nav_order: 27 +permalink: /browser-rum.ruminitconfiguration.sessionreplaysamplerate.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > sessionReplaySampleRate + +## RumInitConfiguration.sessionReplaySampleRate property + +The percentage of tracked sessions with \Browser RUM & Session Replay pricing\ features: 100 for all, 0 for none. See Configure Your Setup For Browser RUM and Browser RUM & Session Replay Sampling for further information. + +**Signature:** + +```typescript +sessionReplaySampleRate?: number | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.startsessionreplayrecordingmanually.md b/docs/browser-rum.ruminitconfiguration.startsessionreplayrecordingmanually.md new file mode 100644 index 0000000000..c603e46404 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.startsessionreplayrecordingmanually.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.startSessionReplayRecordingManually property" +nav_order: 26 +permalink: /browser-rum.ruminitconfiguration.startsessionreplayrecordingmanually.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > startSessionReplayRecordingManually + +## RumInitConfiguration.startSessionReplayRecordingManually property + +If the session is sampled for Session Replay, only start the recording when `startSessionReplayRecording()` is called, instead of at the beginning of the session. Default: if startSessionReplayRecording is 0, true; otherwise, false. See Session Replay Usage for further information. + +**Signature:** + +```typescript +startSessionReplayRecordingManually?: boolean | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.subdomain.md b/docs/browser-rum.ruminitconfiguration.subdomain.md new file mode 100644 index 0000000000..e0f7d9d859 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.subdomain.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.subdomain property" +nav_order: 25 +permalink: /browser-rum.ruminitconfiguration.subdomain.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > subdomain + +## RumInitConfiguration.subdomain property + +If you are accessing Datadog through a custom subdomain, you can set `subdomain` to include your custom domain in the `getSessionReplayLink()` returned URL . See Connect Session Replay To Your Third-Party Tools for further information. + +**Signature:** + +```typescript +subdomain?: string; +``` diff --git a/docs/browser-rum.ruminitconfiguration.tracecontextinjection.md b/docs/browser-rum.ruminitconfiguration.tracecontextinjection.md new file mode 100644 index 0000000000..c7ad8a7dce --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.tracecontextinjection.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.traceContextInjection property" +nav_order: 24 +permalink: /browser-rum.ruminitconfiguration.tracecontextinjection.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > traceContextInjection + +## RumInitConfiguration.traceContextInjection property + +If you set a `traceSampleRate`, to ensure backend services' sampling decisions are still applied, configure the `traceContextInjection` initialization parameter to sampled. sampled See Connect RUM and Traces for further information. + +**Signature:** + +```typescript +traceContextInjection?: TraceContextInjection | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.tracesamplerate.md b/docs/browser-rum.ruminitconfiguration.tracesamplerate.md new file mode 100644 index 0000000000..db9d64057b --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.tracesamplerate.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.traceSampleRate property" +nav_order: 23 +permalink: /browser-rum.ruminitconfiguration.tracesamplerate.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > traceSampleRate + +## RumInitConfiguration.traceSampleRate property + +The percentage of requests to trace: 100 for all, 0 for none. See Connect RUM and Traces for further information. + +**Signature:** + +```typescript +traceSampleRate?: number | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.trackfeatureflagsforevents.md b/docs/browser-rum.ruminitconfiguration.trackfeatureflagsforevents.md new file mode 100644 index 0000000000..a60104d00c --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.trackfeatureflagsforevents.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.trackFeatureFlagsForEvents property" +nav_order: 22 +permalink: /browser-rum.ruminitconfiguration.trackfeatureflagsforevents.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > trackFeatureFlagsForEvents + +## RumInitConfiguration.trackFeatureFlagsForEvents property + +Enables collection of features flags in chosen events. + +**Signature:** + +```typescript +trackFeatureFlagsForEvents?: FeatureFlagsForEvents[]; +``` diff --git a/docs/browser-rum.ruminitconfiguration.tracklongtasks.md b/docs/browser-rum.ruminitconfiguration.tracklongtasks.md new file mode 100644 index 0000000000..b5d3705c3a --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.tracklongtasks.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.trackLongTasks property" +nav_order: 21 +permalink: /browser-rum.ruminitconfiguration.tracklongtasks.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > trackLongTasks + +## RumInitConfiguration.trackLongTasks property + +Enables collection of long task events. true + +**Signature:** + +```typescript +trackLongTasks?: boolean | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.trackresources.md b/docs/browser-rum.ruminitconfiguration.trackresources.md new file mode 100644 index 0000000000..3cc126c590 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.trackresources.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.trackResources property" +nav_order: 20 +permalink: /browser-rum.ruminitconfiguration.trackresources.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > trackResources + +## RumInitConfiguration.trackResources property + +Enables collection of resource events. true + +**Signature:** + +```typescript +trackResources?: boolean | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.trackuserinteractions.md b/docs/browser-rum.ruminitconfiguration.trackuserinteractions.md new file mode 100644 index 0000000000..9c5ca0e103 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.trackuserinteractions.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.trackUserInteractions property" +nav_order: 19 +permalink: /browser-rum.ruminitconfiguration.trackuserinteractions.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > trackUserInteractions + +## RumInitConfiguration.trackUserInteractions property + +Enables automatic collection of users actions. See Tracking User Actions for further information. true + +**Signature:** + +```typescript +trackUserInteractions?: boolean | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.trackviewsmanually.md b/docs/browser-rum.ruminitconfiguration.trackviewsmanually.md new file mode 100644 index 0000000000..0de658e040 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.trackviewsmanually.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.trackViewsManually property" +nav_order: 18 +permalink: /browser-rum.ruminitconfiguration.trackviewsmanually.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > trackViewsManually + +## RumInitConfiguration.trackViewsManually property + +Allows you to control RUM views creation. See Override default RUM view names for further information. + +**Signature:** + +```typescript +trackViewsManually?: boolean | undefined; +``` diff --git a/docs/browser-rum.ruminitconfiguration.workerurl.md b/docs/browser-rum.ruminitconfiguration.workerurl.md new file mode 100644 index 0000000000..fecc441b71 --- /dev/null +++ b/docs/browser-rum.ruminitconfiguration.workerurl.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumInitConfiguration.workerUrl property" +nav_order: 17 +permalink: /browser-rum.ruminitconfiguration.workerurl.html +--- + + + +Home > @datadog/browser-rum > RumInitConfiguration > workerUrl + +## RumInitConfiguration.workerUrl property + +URL pointing to the Datadog Browser SDK Worker JavaScript file. The URL can be relative or absolute, but is required to have the same origin as the web application. See Content Security Policy guidelines for further information. + +**Signature:** + +```typescript +workerUrl?: string; +``` diff --git a/docs/browser-rum.rumlongtaskevent.md b/docs/browser-rum.rumlongtaskevent.md new file mode 100644 index 0000000000..cf231c0488 --- /dev/null +++ b/docs/browser-rum.rumlongtaskevent.md @@ -0,0 +1,55 @@ +--- +layout: default +title: "RumLongTaskEvent type" +nav_order: 16 +permalink: /browser-rum.rumlongtaskevent.html +--- + + + +Home > @datadog/browser-rum > RumLongTaskEvent + +## RumLongTaskEvent type + +Schema of all properties of a Long Task event + +**Signature:** + +```typescript +export type RumLongTaskEvent = CommonProperties & ActionChildProperties & ViewContainerSchema & { + readonly type: 'long_task'; + readonly long_task: { + readonly id?: string; + readonly start_time?: number; + readonly entry_type?: 'long-task' | 'long-animation-frame'; + readonly duration: number; + readonly blocking_duration?: number; + readonly render_start?: number; + readonly style_and_layout_start?: number; + readonly first_ui_event_timestamp?: number; + readonly is_frozen_frame?: boolean; + readonly scripts?: { + readonly duration?: number; + readonly pause_duration?: number; + readonly forced_style_and_layout_duration?: number; + readonly start_time?: number; + readonly execution_start?: number; + source_url?: string; + readonly source_function_name?: string; + readonly source_char_position?: number; + invoker?: string; + readonly invoker_type?: 'user-callback' | 'event-listener' | 'resolve-promise' | 'reject-promise' | 'classic-script' | 'module-script'; + readonly window_attribution?: string; + [k: string]: unknown; + }[]; + [k: string]: unknown; + }; + readonly _dd?: { + readonly discarded?: boolean; + [k: string]: unknown; + }; + [k: string]: unknown; +}; +``` +**References:** CommonProperties + diff --git a/docs/browser-rum.rumlongtaskeventdomaincontext.md b/docs/browser-rum.rumlongtaskeventdomaincontext.md new file mode 100644 index 0000000000..ee854fc5f2 --- /dev/null +++ b/docs/browser-rum.rumlongtaskeventdomaincontext.md @@ -0,0 +1,64 @@ +--- +layout: default +title: "RumLongTaskEventDomainContext interface" +nav_order: 15 +permalink: /browser-rum.rumlongtaskeventdomaincontext.html +--- + + + +Home > @datadog/browser-rum > RumLongTaskEventDomainContext + +## RumLongTaskEventDomainContext interface + +Additional information available when the SDK dispatches a Long Task event. + +**Signature:** + +```typescript +export interface RumLongTaskEventDomainContext +``` + +## Properties + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +performanceEntry + + + + + + + +PerformanceEntry + + + + +Browser performance entry for this long task. + + +
diff --git a/docs/browser-rum.rumlongtaskeventdomaincontext.performanceentry.md b/docs/browser-rum.rumlongtaskeventdomaincontext.performanceentry.md new file mode 100644 index 0000000000..9e50afe287 --- /dev/null +++ b/docs/browser-rum.rumlongtaskeventdomaincontext.performanceentry.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumLongTaskEventDomainContext.performanceEntry property" +nav_order: 14 +permalink: /browser-rum.rumlongtaskeventdomaincontext.performanceentry.html +--- + + + +Home > @datadog/browser-rum > RumLongTaskEventDomainContext > performanceEntry + +## RumLongTaskEventDomainContext.performanceEntry property + +Browser performance entry for this long task. + +**Signature:** + +```typescript +performanceEntry: PerformanceEntry; +``` diff --git a/docs/browser-rum.rumotherresourceeventdomaincontext.md b/docs/browser-rum.rumotherresourceeventdomaincontext.md new file mode 100644 index 0000000000..b22d3fcf57 --- /dev/null +++ b/docs/browser-rum.rumotherresourceeventdomaincontext.md @@ -0,0 +1,64 @@ +--- +layout: default +title: "RumOtherResourceEventDomainContext interface" +nav_order: 13 +permalink: /browser-rum.rumotherresourceeventdomaincontext.html +--- + + + +Home > @datadog/browser-rum > RumOtherResourceEventDomainContext + +## RumOtherResourceEventDomainContext interface + +Additional information available when the SDK dispatches a Resource event that is neither fetch nor XHR. + +**Signature:** + +```typescript +export interface RumOtherResourceEventDomainContext +``` + +## Properties + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +performanceEntry + + + + + + + +PerformanceEntry + + + + +Browser performance entry for this resource. + + +
diff --git a/docs/browser-rum.rumotherresourceeventdomaincontext.performanceentry.md b/docs/browser-rum.rumotherresourceeventdomaincontext.performanceentry.md new file mode 100644 index 0000000000..85f24a0e8d --- /dev/null +++ b/docs/browser-rum.rumotherresourceeventdomaincontext.performanceentry.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumOtherResourceEventDomainContext.performanceEntry property" +nav_order: 12 +permalink: /browser-rum.rumotherresourceeventdomaincontext.performanceentry.html +--- + + + +Home > @datadog/browser-rum > RumOtherResourceEventDomainContext > performanceEntry + +## RumOtherResourceEventDomainContext.performanceEntry property + +Browser performance entry for this resource. + +**Signature:** + +```typescript +performanceEntry: PerformanceEntry; +``` diff --git a/docs/browser-rum.rumresourceevent.md b/docs/browser-rum.rumresourceevent.md new file mode 100644 index 0000000000..fb27ba44e2 --- /dev/null +++ b/docs/browser-rum.rumresourceevent.md @@ -0,0 +1,96 @@ +--- +layout: default +title: "RumResourceEvent type" +nav_order: 11 +permalink: /browser-rum.rumresourceevent.html +--- + + + +Home > @datadog/browser-rum > RumResourceEvent + +## RumResourceEvent type + +Schema of all properties of a Resource event + +**Signature:** + +```typescript +export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewContainerSchema & { + readonly type: 'resource'; + readonly resource: { + readonly id?: string; + readonly type: 'document' | 'xhr' | 'beacon' | 'fetch' | 'css' | 'js' | 'image' | 'font' | 'media' | 'other' | 'native'; + readonly method?: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'TRACE' | 'OPTIONS' | 'CONNECT'; + url: string; + readonly status_code?: number; + readonly duration?: number; + readonly size?: number; + readonly encoded_body_size?: number; + readonly decoded_body_size?: number; + readonly transfer_size?: number; + readonly render_blocking_status?: 'blocking' | 'non-blocking'; + readonly worker?: { + readonly duration: number; + readonly start: number; + [k: string]: unknown; + }; + readonly redirect?: { + readonly duration: number; + readonly start: number; + [k: string]: unknown; + }; + readonly dns?: { + readonly duration: number; + readonly start: number; + [k: string]: unknown; + }; + readonly connect?: { + readonly duration: number; + readonly start: number; + [k: string]: unknown; + }; + readonly ssl?: { + readonly duration: number; + readonly start: number; + [k: string]: unknown; + }; + readonly first_byte?: { + readonly duration: number; + readonly start: number; + [k: string]: unknown; + }; + readonly download?: { + readonly duration: number; + readonly start: number; + [k: string]: unknown; + }; + readonly protocol?: string; + readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other'; + readonly provider?: { + readonly domain?: string; + readonly name?: string; + readonly type?: 'ad' | 'advertising' | 'analytics' | 'cdn' | 'content' | 'customer-success' | 'first party' | 'hosting' | 'marketing' | 'other' | 'social' | 'tag-manager' | 'utility' | 'video'; + [k: string]: unknown; + }; + readonly graphql?: { + readonly operationType: 'query' | 'mutation' | 'subscription'; + readonly operationName?: string; + payload?: string; + variables?: string; + [k: string]: unknown; + }; + [k: string]: unknown; + }; + readonly _dd?: { + readonly span_id?: string; + readonly trace_id?: string; + readonly rule_psr?: number; + readonly discarded?: boolean; + [k: string]: unknown; + }; + [k: string]: unknown; +}; +``` +**References:** CommonProperties + diff --git a/docs/browser-rum.rumviewevent.md b/docs/browser-rum.rumviewevent.md new file mode 100644 index 0000000000..2314a4297c --- /dev/null +++ b/docs/browser-rum.rumviewevent.md @@ -0,0 +1,150 @@ +--- +layout: default +title: "RumViewEvent type" +nav_order: 10 +permalink: /browser-rum.rumviewevent.html +--- + + + +Home > @datadog/browser-rum > RumViewEvent + +## RumViewEvent type + +Schema of all properties of a View event + +**Signature:** + +```typescript +export type RumViewEvent = CommonProperties & ViewContainerSchema & { + readonly type: 'view'; + readonly view: { + readonly loading_time?: number; + readonly network_settled_time?: number; + readonly interaction_to_next_view_time?: number; + readonly loading_type?: 'initial_load' | 'route_change' | 'activity_display' | 'activity_redisplay' | 'fragment_display' | 'fragment_redisplay' | 'view_controller_display' | 'view_controller_redisplay'; + readonly time_spent: number; + readonly first_contentful_paint?: number; + readonly largest_contentful_paint?: number; + readonly largest_contentful_paint_target_selector?: string; + readonly first_input_delay?: number; + readonly first_input_time?: number; + readonly first_input_target_selector?: string; + readonly interaction_to_next_paint?: number; + readonly interaction_to_next_paint_time?: number; + readonly interaction_to_next_paint_target_selector?: string; + readonly cumulative_layout_shift?: number; + readonly cumulative_layout_shift_time?: number; + readonly cumulative_layout_shift_target_selector?: string; + readonly dom_complete?: number; + readonly dom_content_loaded?: number; + readonly dom_interactive?: number; + readonly load_event?: number; + readonly first_byte?: number; + readonly custom_timings?: { + [k: string]: number; + }; + readonly is_active?: boolean; + readonly is_slow_rendered?: boolean; + readonly action: { + readonly count: number; + [k: string]: unknown; + }; + readonly error: { + readonly count: number; + [k: string]: unknown; + }; + readonly crash?: { + readonly count: number; + [k: string]: unknown; + }; + readonly long_task?: { + readonly count: number; + [k: string]: unknown; + }; + readonly frozen_frame?: { + readonly count: number; + [k: string]: unknown; + }; + readonly slow_frames?: { + readonly start: number; + readonly duration: number; + [k: string]: unknown; + }[]; + readonly resource: { + readonly count: number; + [k: string]: unknown; + }; + readonly frustration?: { + readonly count: number; + [k: string]: unknown; + }; + readonly in_foreground_periods?: { + readonly start: number; + readonly duration: number; + [k: string]: unknown; + }[]; + readonly memory_average?: number; + readonly memory_max?: number; + readonly cpu_ticks_count?: number; + readonly cpu_ticks_per_second?: number; + readonly refresh_rate_average?: number; + readonly refresh_rate_min?: number; + readonly slow_frames_rate?: number; + readonly freeze_rate?: number; + flutter_build_time?: RumPerfMetric; + flutter_raster_time?: RumPerfMetric; + js_refresh_rate?: RumPerfMetric; + performance?: ViewPerformanceData; + [k: string]: unknown; + }; + readonly session?: { + readonly is_active?: boolean; + readonly sampled_for_replay?: boolean; + [k: string]: unknown; + }; + readonly feature_flags?: { + [k: string]: unknown; + }; + readonly privacy?: { + readonly replay_level: 'allow' | 'mask' | 'mask-user-input'; + [k: string]: unknown; + }; + readonly _dd: { + readonly document_version: number; + readonly page_states?: { + readonly state: 'active' | 'passive' | 'hidden' | 'frozen' | 'terminated'; + readonly start: number; + [k: string]: unknown; + }[]; + replay_stats?: { + records_count?: number; + segments_count?: number; + segments_total_raw_size?: number; + [k: string]: unknown; + }; + readonly cls?: { + readonly device_pixel_ratio?: number; + [k: string]: unknown; + }; + readonly configuration?: { + readonly start_session_replay_recording_manually?: boolean; + [k: string]: unknown; + }; + [k: string]: unknown; + }; + readonly display?: { + readonly scroll?: { + readonly max_depth: number; + readonly max_depth_scroll_top: number; + readonly max_scroll_height: number; + readonly max_scroll_height_time: number; + [k: string]: unknown; + }; + [k: string]: unknown; + }; + [k: string]: unknown; +}; +``` +**References:** CommonProperties + diff --git a/docs/browser-rum.rumvieweventdomaincontext.location.md b/docs/browser-rum.rumvieweventdomaincontext.location.md new file mode 100644 index 0000000000..18377875d5 --- /dev/null +++ b/docs/browser-rum.rumvieweventdomaincontext.location.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumViewEventDomainContext.location property" +nav_order: 9 +permalink: /browser-rum.rumvieweventdomaincontext.location.html +--- + + + +Home > @datadog/browser-rum > RumViewEventDomainContext > location + +## RumViewEventDomainContext.location property + +The browser location object at the time the view was created. + +**Signature:** + +```typescript +location: Readonly; +``` diff --git a/docs/browser-rum.rumvieweventdomaincontext.md b/docs/browser-rum.rumvieweventdomaincontext.md new file mode 100644 index 0000000000..5c0eaaf3f3 --- /dev/null +++ b/docs/browser-rum.rumvieweventdomaincontext.md @@ -0,0 +1,64 @@ +--- +layout: default +title: "RumViewEventDomainContext interface" +nav_order: 8 +permalink: /browser-rum.rumvieweventdomaincontext.html +--- + + + +Home > @datadog/browser-rum > RumViewEventDomainContext + +## RumViewEventDomainContext interface + +Additional information available when the SDK dispatches a RUM View event. + +**Signature:** + +```typescript +export interface RumViewEventDomainContext +``` + +## Properties + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +location + + + + + + + +Readonly<Location> + + + + +The browser location object at the time the view was created. + + +
diff --git a/docs/browser-rum.rumvitalevent.md b/docs/browser-rum.rumvitalevent.md new file mode 100644 index 0000000000..ed9208296b --- /dev/null +++ b/docs/browser-rum.rumvitalevent.md @@ -0,0 +1,43 @@ +--- +layout: default +title: "RumVitalEvent type" +nav_order: 7 +permalink: /browser-rum.rumvitalevent.html +--- + + + +Home > @datadog/browser-rum > RumVitalEvent + +## RumVitalEvent type + +Schema of all properties of a Vital event + +**Signature:** + +```typescript +export type RumVitalEvent = CommonProperties & ViewContainerSchema & { + readonly type: 'vital'; + readonly vital: { + readonly type: 'duration'; + readonly id: string; + readonly name?: string; + readonly description?: string; + readonly duration?: number; + readonly custom?: { + [k: string]: number; + }; + [k: string]: unknown; + }; + readonly _dd?: { + readonly vital?: { + readonly computed_value?: boolean; + [k: string]: unknown; + }; + [k: string]: unknown; + }; + [k: string]: unknown; +}; +``` +**References:** CommonProperties + diff --git a/docs/browser-rum.rumxhrresourceeventdomaincontext.handlingstack.md b/docs/browser-rum.rumxhrresourceeventdomaincontext.handlingstack.md new file mode 100644 index 0000000000..5035524025 --- /dev/null +++ b/docs/browser-rum.rumxhrresourceeventdomaincontext.handlingstack.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumXhrResourceEventDomainContext.handlingStack property" +nav_order: 6 +permalink: /browser-rum.rumxhrresourceeventdomaincontext.handlingstack.html +--- + + + +Home > @datadog/browser-rum > RumXhrResourceEventDomainContext > handlingStack + +## RumXhrResourceEventDomainContext.handlingStack property + +Stack trace of where the resource was handled by the SDK. + +**Signature:** + +```typescript +handlingStack?: string; +``` diff --git a/docs/browser-rum.rumxhrresourceeventdomaincontext.isaborted.md b/docs/browser-rum.rumxhrresourceeventdomaincontext.isaborted.md new file mode 100644 index 0000000000..f03d879a9d --- /dev/null +++ b/docs/browser-rum.rumxhrresourceeventdomaincontext.isaborted.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumXhrResourceEventDomainContext.isAborted property" +nav_order: 5 +permalink: /browser-rum.rumxhrresourceeventdomaincontext.isaborted.html +--- + + + +Home > @datadog/browser-rum > RumXhrResourceEventDomainContext > isAborted + +## RumXhrResourceEventDomainContext.isAborted property + +Whether the XHR request was aborted. + +**Signature:** + +```typescript +isAborted: boolean; +``` diff --git a/docs/browser-rum.rumxhrresourceeventdomaincontext.md b/docs/browser-rum.rumxhrresourceeventdomaincontext.md new file mode 100644 index 0000000000..ca4cfeb6ac --- /dev/null +++ b/docs/browser-rum.rumxhrresourceeventdomaincontext.md @@ -0,0 +1,121 @@ +--- +layout: default +title: "RumXhrResourceEventDomainContext interface" +nav_order: 4 +permalink: /browser-rum.rumxhrresourceeventdomaincontext.html +--- + + + +Home > @datadog/browser-rum > RumXhrResourceEventDomainContext + +## RumXhrResourceEventDomainContext interface + +Additional information available when the SDK dispatches an XHR resource event. + +**Signature:** + +```typescript +export interface RumXhrResourceEventDomainContext +``` + +## Properties + + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +handlingStack? + + + + + + + +string + + + + +(Optional) Stack trace of where the resource was handled by the SDK. + + +
+ +isAborted + + + + + + + +boolean + + + + +Whether the XHR request was aborted. + + +
+ +performanceEntry? + + + + + + + +PerformanceEntry + + + + +(Optional) Browser performance entry for this resource. + + +
+ +xhr + + + + + + + +XMLHttpRequest + + + + +The XMLHttpRequest object that made the request. + + +
diff --git a/docs/browser-rum.rumxhrresourceeventdomaincontext.performanceentry.md b/docs/browser-rum.rumxhrresourceeventdomaincontext.performanceentry.md new file mode 100644 index 0000000000..71a6e0be9a --- /dev/null +++ b/docs/browser-rum.rumxhrresourceeventdomaincontext.performanceentry.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumXhrResourceEventDomainContext.performanceEntry property" +nav_order: 3 +permalink: /browser-rum.rumxhrresourceeventdomaincontext.performanceentry.html +--- + + + +Home > @datadog/browser-rum > RumXhrResourceEventDomainContext > performanceEntry + +## RumXhrResourceEventDomainContext.performanceEntry property + +Browser performance entry for this resource. + +**Signature:** + +```typescript +performanceEntry?: PerformanceEntry; +``` diff --git a/docs/browser-rum.rumxhrresourceeventdomaincontext.xhr.md b/docs/browser-rum.rumxhrresourceeventdomaincontext.xhr.md new file mode 100644 index 0000000000..90d8c675e3 --- /dev/null +++ b/docs/browser-rum.rumxhrresourceeventdomaincontext.xhr.md @@ -0,0 +1,20 @@ +--- +layout: default +title: "RumXhrResourceEventDomainContext.xhr property" +nav_order: 2 +permalink: /browser-rum.rumxhrresourceeventdomaincontext.xhr.html +--- + + + +Home > @datadog/browser-rum > RumXhrResourceEventDomainContext > xhr + +## RumXhrResourceEventDomainContext.xhr property + +The XMLHttpRequest object that made the request. + +**Signature:** + +```typescript +xhr: XMLHttpRequest; +``` diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000000..f7dcc35fa9 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,71 @@ +--- +layout: default +title: "API Reference" +nav_order: 1 +permalink: /index.html +--- + + + +Home + +## API Reference + +## Packages + + + + + + +
+ +Package + + + + +Description + + +
+ +@datadog/browser-logs + + + + +Datadog Browser Logs SDK for collecting and forwarding browser logs to Datadog. Provides comprehensive logging capabilities with automatic error tracking and custom log collection. + + +
+ +@datadog/browser-rum + + + + +Datadog Browser RUM SDK - Full version with Session Replay and Real User Profiling capabilities. Use this package to monitor your web application's performance and user experience. + + +
+ +@datadog/browser-rum-react + + + + +Datadog Browser RUM React Integration - Additional components and hooks for React applications. Provides React-specific features like Error Boundaries and component performance tracking. + + +
+ +@datadog/browser-rum-slim + + + + +Datadog Browser RUM SDK - Slim version without Session Replay and Real User Profiling. Lightweight alternative for basic RUM monitoring with reduced bundle size. + + +
diff --git a/etc/browser-logs.api.json b/etc/browser-logs.api.json new file mode 100644 index 0000000000..cf3fcf7218 --- /dev/null +++ b/etc/browser-logs.api.json @@ -0,0 +1,3521 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.38.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@datadog/browser-logs!", + "docComment": "/**\n * Datadog Browser Logs SDK for collecting and forwarding browser logs to Datadog. Provides comprehensive logging capabilities with automatic error tracking and custom log collection.\n *\n * @see\n *\n * {@link https://docs.datadoghq.com/logs/log_collection/javascript/ | Browser Log Collection}\n *\n * @packageDocumentation\n */\n", + "name": "@datadog/browser-logs", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@datadog/browser-logs!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Variable", + "canonicalReference": "@datadog/browser-logs!datadogLogs:var", + "docComment": "/**\n * The global Logs instance. Use this to call Logs methods.\n *\n * @see\n *\n * {@link https://docs.datadoghq.com/logs/log_collection/javascript/ | Browser Log Collection}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "datadogLogs: " + }, + { + "kind": "Reference", + "text": "LogsPublicApi", + "canonicalReference": "@datadog/browser-logs!LogsGlobal:interface" + } + ], + "fileUrlPath": "packages/logs/esm/entries/main.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "datadogLogs", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-logs!HandlerType:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type HandlerType = " + }, + { + "kind": "Content", + "text": "(typeof " + }, + { + "kind": "Reference", + "text": "HandlerType", + "canonicalReference": "@datadog/browser-logs!HandlerType:var" + }, + { + "kind": "Content", + "text": ")[keyof typeof " + }, + { + "kind": "Reference", + "text": "HandlerType", + "canonicalReference": "@datadog/browser-logs!HandlerType:var" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/logs/esm/domain/logger.d.ts", + "releaseTag": "Public", + "name": "HandlerType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Variable", + "canonicalReference": "@datadog/browser-logs!HandlerType:var", + "docComment": "/**\n * Defines the types of handlers for processing logs: console, HTTP, or silent.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HandlerType: " + }, + { + "kind": "Content", + "text": "{\n readonly console: \"console\";\n readonly http: \"http\";\n readonly silent: \"silent\";\n}" + } + ], + "fileUrlPath": "packages/logs/esm/domain/logger.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "HandlerType", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Class", + "canonicalReference": "@datadog/browser-logs!Logger:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class Logger " + } + ], + "fileUrlPath": "packages/logs/esm/domain/logger.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "Logger", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@datadog/browser-logs!Logger:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Logger` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(handleLogStrategy: " + }, + { + "kind": "Content", + "text": "(logsMessage: " + }, + { + "kind": "Reference", + "text": "LogsMessage", + "canonicalReference": "@datadog/browser-logs!LogsMessage:interface" + }, + { + "kind": "Content", + "text": ", logger: " + }, + { + "kind": "Reference", + "text": "Logger", + "canonicalReference": "@datadog/browser-logs!Logger:class" + }, + { + "kind": "Content", + "text": ", handlingStack?: string) => void" + }, + { + "kind": "Content", + "text": ", name?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", handlerType?: " + }, + { + "kind": "Reference", + "text": "HandlerType", + "canonicalReference": "@datadog/browser-logs!HandlerType:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "HandlerType", + "canonicalReference": "@datadog/browser-logs!HandlerType:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ", level?: " + }, + { + "kind": "Reference", + "text": "StatusType", + "canonicalReference": "@datadog/browser-logs!StatusType:type" + }, + { + "kind": "Content", + "text": ", loggerContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "handleLogStrategy", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": true + }, + { + "parameterName": "handlerType", + "parameterTypeTokenRange": { + "startIndex": 9, + "endIndex": 13 + }, + "isOptional": true + }, + { + "parameterName": "level", + "parameterTypeTokenRange": { + "startIndex": 14, + "endIndex": 15 + }, + "isOptional": true + }, + { + "parameterName": "loggerContext", + "parameterTypeTokenRange": { + "startIndex": 16, + "endIndex": 17 + }, + "isOptional": true + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#clearContext:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "clearContext(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "clearContext" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#getContext:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getContext(): " + }, + { + "kind": "Reference", + "text": "Context", + "canonicalReference": "@datadog/browser-core!Context:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getContext" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#getHandler:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getHandler(): " + }, + { + "kind": "Reference", + "text": "HandlerType", + "canonicalReference": "@datadog/browser-logs!HandlerType:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "HandlerType", + "canonicalReference": "@datadog/browser-logs!HandlerType:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getHandler" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#getLevel:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getLevel(): " + }, + { + "kind": "Reference", + "text": "StatusType", + "canonicalReference": "@datadog/browser-logs!StatusType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getLevel" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#log:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "log(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", status?: " + }, + { + "kind": "Reference", + "text": "StatusType", + "canonicalReference": "@datadog/browser-logs!StatusType:type" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "status", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "log" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#logImplementation:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "logImplementation(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", status?: " + }, + { + "kind": "Reference", + "text": "StatusType", + "canonicalReference": "@datadog/browser-logs!StatusType:type" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": ", handlingStack?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 11, + "endIndex": 12 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "status", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": true + }, + { + "parameterName": "handlingStack", + "parameterTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "logImplementation" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#removeContextProperty:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeContextProperty(key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "removeContextProperty" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#setContext:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "setContext(context: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "context", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "setContext" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#setContextProperty:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "setContextProperty(key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "setContextProperty" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#setHandler:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "setHandler(handler: " + }, + { + "kind": "Reference", + "text": "HandlerType", + "canonicalReference": "@datadog/browser-logs!HandlerType:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "HandlerType", + "canonicalReference": "@datadog/browser-logs!HandlerType:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "handler", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "setHandler" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-logs!Logger#setLevel:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "setLevel(level: " + }, + { + "kind": "Reference", + "text": "StatusType", + "canonicalReference": "@datadog/browser-logs!StatusType:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "level", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "setLevel" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-logs!Logger:interface", + "docComment": "/**\n * Provides convenience methods for logging at each supported level. Each method accepts a message, optional context, and an optional error.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface Logger " + } + ], + "fileUrlPath": "packages/logs/esm/domain/logger.d.ts", + "releaseTag": "Public", + "name": "Logger", + "preserveMemberOrder": false, + "members": [ + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!Logger#alert:member(1)", + "docComment": "/**\n * Add an ALERT log (action must be taken immediately).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "alert(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "alert" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!Logger#critical:member(1)", + "docComment": "/**\n * Add a CRITICAL log (serious failure).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "critical(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "critical" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!Logger#debug:member(1)", + "docComment": "/**\n * Add a DEBUG log (developer usage).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "debug(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "debug" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!Logger#emerg:member(1)", + "docComment": "/**\n * Add an EMERGENCY log (system is unusable).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "emerg(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "emerg" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!Logger#error:member(1)", + "docComment": "/**\n * Add an ERROR log (runtime error).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "error(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "error" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!Logger#info:member(1)", + "docComment": "/**\n * Add an INFO log (notable but expected).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "info(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "info" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!Logger#notice:member(1)", + "docComment": "/**\n * Add a NOTICE log (normal but significant).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "notice(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "notice" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!Logger#ok:member(1)", + "docComment": "/**\n * Add an OK log (success).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ok(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "ok" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!Logger#warn:member(1)", + "docComment": "/**\n * Add a WARN log (unexpected behaviour).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "warn(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", messageContext?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ", error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "messageContext", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "warn" + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-logs!LoggerConfiguration:interface", + "docComment": "/**\n * Configuration options for a logger. Includes the log level to determine the severity of logs, the handler(s) responsible for processing log messages, and an optional context object to provide additional metadata for logs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface LoggerConfiguration " + } + ], + "fileUrlPath": "packages/logs/esm/boot/logsPublicApi.d.ts", + "releaseTag": "Public", + "name": "LoggerConfiguration", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LoggerConfiguration#context:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "context?: " + }, + { + "kind": "Content", + "text": "object" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LoggerConfiguration#handler:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "handler?: " + }, + { + "kind": "Reference", + "text": "HandlerType", + "canonicalReference": "@datadog/browser-logs!HandlerType:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "HandlerType", + "canonicalReference": "@datadog/browser-logs!HandlerType:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "handler", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LoggerConfiguration#level:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "level?: " + }, + { + "kind": "Reference", + "text": "StatusType", + "canonicalReference": "@datadog/browser-logs!StatusType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "level", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-logs!LogsEvent:interface", + "docComment": "/**\n * Represents a log event collected by the Datadog Browser Logs SDK, containing information such as message, context, and metadata.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface LogsEvent " + } + ], + "fileUrlPath": "packages/logs/esm/logsEvent.types.d.ts", + "releaseTag": "Public", + "name": "LogsEvent", + "preserveMemberOrder": false, + "members": [ + { + "kind": "IndexSignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent:index(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "[k: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "]: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "k", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ] + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#application_id:member", + "docComment": "/**\n * UUID of the application\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "application_id?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "application_id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#date:member", + "docComment": "/**\n * Start of the log in ms from epoch\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "date: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "date", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#error:member", + "docComment": "/**\n * Error properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "error?: " + }, + { + "kind": "Content", + "text": "{\n kind?: string;\n stack?: string;\n fingerprint?: string;\n message?: string;\n causes?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<{\n message: string;\n source: string;\n type?: string;\n stack?: string;\n }>;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "error", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#http:member", + "docComment": "/**\n * Resource properties of the error\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "http?: " + }, + { + "kind": "Content", + "text": "{\n method: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH';\n status_code: number;\n url: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "http", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#logger:member", + "docComment": "/**\n * Logger properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "logger?: " + }, + { + "kind": "Content", + "text": "{\n name: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "logger", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#message:member", + "docComment": "/**\n * The log message\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "message", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#origin:member", + "docComment": "/**\n * Origin of the log\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "origin: " + }, + { + "kind": "Content", + "text": "'network' | 'source' | 'console' | 'logger' | 'agent' | 'report'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "origin", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#service:member", + "docComment": "/**\n * The service name\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "service?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "service", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#session_id:member", + "docComment": "/**\n * UUID of the session (deprecated in favor of session.id)\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "session_id?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "session_id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#session:member", + "docComment": "/**\n * Session properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "session?: " + }, + { + "kind": "Content", + "text": "{\n id?: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "session", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#status:member", + "docComment": "/**\n * The log status\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "status: " + }, + { + "kind": "Content", + "text": "'ok' | 'debug' | 'info' | 'notice' | 'warn' | 'error' | 'critical' | 'alert' | 'emerg'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "status", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsEvent#view:member", + "docComment": "/**\n * View properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "view: " + }, + { + "kind": "Content", + "text": "{\n referrer?: string;\n url: string;\n id?: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "view", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-logs!LogsEventDomainContext:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type LogsEventDomainContext = " + }, + { + "kind": "Content", + "text": "T extends typeof " + }, + { + "kind": "Reference", + "text": "ErrorSource.NETWORK", + "canonicalReference": "@datadog/browser-core!__type#NETWORK:member" + }, + { + "kind": "Content", + "text": " ? " + }, + { + "kind": "Reference", + "text": "NetworkLogsEventDomainContext", + "canonicalReference": "@datadog/browser-logs!~NetworkLogsEventDomainContext:type" + }, + { + "kind": "Content", + "text": " : T extends typeof " + }, + { + "kind": "Reference", + "text": "ErrorSource.CONSOLE", + "canonicalReference": "@datadog/browser-core!__type#CONSOLE:member" + }, + { + "kind": "Content", + "text": " ? " + }, + { + "kind": "Reference", + "text": "ConsoleLogsEventDomainContext", + "canonicalReference": "@datadog/browser-logs!~ConsoleLogsEventDomainContext:type" + }, + { + "kind": "Content", + "text": " : T extends typeof " + }, + { + "kind": "Reference", + "text": "ErrorSource.LOGGER", + "canonicalReference": "@datadog/browser-core!__type#LOGGER:member" + }, + { + "kind": "Content", + "text": " ? " + }, + { + "kind": "Reference", + "text": "LoggerLogsEventDomainContext", + "canonicalReference": "@datadog/browser-logs!~LoggerLogsEventDomainContext:type" + }, + { + "kind": "Content", + "text": " : never" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/logs/esm/domainContext.types.d.ts", + "releaseTag": "Public", + "name": "LogsEventDomainContext", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeTokenRange": { + "startIndex": 5, + "endIndex": 18 + } + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-logs!LogsGlobal:interface", + "docComment": "/**\n * The public API for the Datadog Browser Logs SDK. Provides methods to initialize the SDK, manage global/user/account contexts, and interact with loggers for collecting and forwarding logs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface LogsPublicApi extends " + }, + { + "kind": "Reference", + "text": "PublicApi", + "canonicalReference": "@datadog/browser-core!PublicApi:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/logs/esm/boot/logsPublicApi.d.ts", + "releaseTag": "Public", + "name": "LogsGlobal", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#clearAccount:member", + "docComment": "/**\n * Clear all account information\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clearAccount: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "clearAccount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#clearGlobalContext:member", + "docComment": "/**\n * Clear the global context\n *\n * See [Overwrite context](https://docs.datadoghq.com/logs/log_collection/javascript/#overwrite-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clearGlobalContext: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "clearGlobalContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#clearUser:member", + "docComment": "/**\n * Clear all user information\n *\n * See [User context](https://docs.datadoghq.com/logs/log_collection/javascript/#user-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clearUser: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "clearUser", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#createLogger:member", + "docComment": "/**\n * The Datadog browser logs SDK contains a default logger `DD_LOGS.logger`, but this API allows to create different ones.\n *\n * See [Define multiple loggers](https://docs.datadoghq.com/logs/log_collection/javascript/#define-multiple-loggers) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "createLogger: " + }, + { + "kind": "Content", + "text": "(name: string, conf?: " + }, + { + "kind": "Reference", + "text": "LoggerConfiguration", + "canonicalReference": "@datadog/browser-logs!LoggerConfiguration:interface" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "Logger", + "canonicalReference": "@datadog/browser-logs!Logger:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "createLogger", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#getAccount:member", + "docComment": "/**\n * Get account information\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getAccount: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Context", + "canonicalReference": "@datadog/browser-core!Context:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getAccount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#getGlobalContext:member", + "docComment": "/**\n * Get the global Context\n *\n * See [Overwrite context](https://docs.datadoghq.com/logs/log_collection/javascript/#overwrite-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getGlobalContext: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Context", + "canonicalReference": "@datadog/browser-core!Context:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getGlobalContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#getInitConfiguration:member", + "docComment": "/**\n * Get the init configuration\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getInitConfiguration: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "LogsInitConfiguration", + "canonicalReference": "@datadog/browser-logs!LogsInitConfiguration:interface" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getInitConfiguration", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#getInternalContext:member", + "docComment": "/**\n * [Internal API] Get the internal SDK context\n *\n * See [Access internal context](https://docs.datadoghq.com/logs/log_collection/javascript/#access-internal-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getInternalContext: " + }, + { + "kind": "Content", + "text": "(startTime?: number) => " + }, + { + "kind": "Reference", + "text": "InternalContext", + "canonicalReference": "@datadog/browser-logs!~InternalContext:interface" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getInternalContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#getLogger:member", + "docComment": "/**\n * Get a logger\n *\n * See [Define multiple loggers](https://docs.datadoghq.com/logs/log_collection/javascript/#define-multiple-loggers) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getLogger: " + }, + { + "kind": "Content", + "text": "(name: string) => " + }, + { + "kind": "Reference", + "text": "Logger", + "canonicalReference": "@datadog/browser-logs!Logger:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getLogger", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#getUser:member", + "docComment": "/**\n * Get user information\n *\n * See [User context](https://docs.datadoghq.com/logs/log_collection/javascript/#user-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getUser: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Context", + "canonicalReference": "@datadog/browser-core!Context:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getUser", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#init:member", + "docComment": "/**\n * Init the Logs browser SDK.\n *\n * @param initConfiguration - Configuration options of the SDK\n *\n * See [Browser Log Collection](https://docs.datadoghq.com/logs/log_collection/javascript) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "init: " + }, + { + "kind": "Content", + "text": "(initConfiguration: " + }, + { + "kind": "Reference", + "text": "LogsInitConfiguration", + "canonicalReference": "@datadog/browser-logs!LogsInitConfiguration:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "init", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#logger:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "logger: " + }, + { + "kind": "Reference", + "text": "Logger", + "canonicalReference": "@datadog/browser-logs!Logger:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "logger", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#removeAccountProperty:member", + "docComment": "/**\n * Remove an account property\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeAccountProperty: " + }, + { + "kind": "Content", + "text": "(key: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "removeAccountProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#removeGlobalContextProperty:member", + "docComment": "/**\n * Remove a global context property\n *\n * See [Overwrite context](https://docs.datadoghq.com/logs/log_collection/javascript/#overwrite-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeGlobalContextProperty: " + }, + { + "kind": "Content", + "text": "(key: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "removeGlobalContextProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#removeUserProperty:member", + "docComment": "/**\n * Remove a user property\n *\n * See [User context](https://docs.datadoghq.com/logs/log_collection/javascript/#user-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeUserProperty: " + }, + { + "kind": "Content", + "text": "(key: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "removeUserProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#setAccount:member", + "docComment": "/**\n * Set account information to all events, stored in `@account`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setAccount: " + }, + { + "kind": "Content", + "text": "(newAccount: " + }, + { + "kind": "Reference", + "text": "Account", + "canonicalReference": "@datadog/browser-core!Account:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setAccount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#setAccountProperty:member", + "docComment": "/**\n * Set or update the account property, stored in `@account.`\n *\n * @param key - Key of the property\n *\n * @param property - Value of the property\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setAccountProperty: " + }, + { + "kind": "Content", + "text": "(key: string, property: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setAccountProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#setGlobalContext:member", + "docComment": "/**\n * Set the global context information to all logs, stored in `@context`\n *\n * @param context - Global context\n *\n * See [Overwrite context](https://docs.datadoghq.com/logs/log_collection/javascript/#overwrite-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setGlobalContext: " + }, + { + "kind": "Content", + "text": "(context: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setGlobalContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#setGlobalContextProperty:member", + "docComment": "/**\n * Set or update a global context property, stored in `@context.`\n *\n * @param key - Key of the property\n *\n * @param property - Value of the property\n *\n * See [Overwrite context](https://docs.datadoghq.com/logs/log_collection/javascript/#overwrite-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setGlobalContextProperty: " + }, + { + "kind": "Content", + "text": "(key: any, value: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setGlobalContextProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#setTrackingConsent:member", + "docComment": "/**\n * Set the tracking consent of the current user.\n *\n * @param trackingConsent - The user tracking consent\n *\n * Logs will be sent only if it is set to \"granted\". This value won't be stored by the library across page loads: you will need to call this method or set the appropriate `trackingConsent` field in the init() method at each page load.\n *\n * If this method is called before the init() method, the provided value will take precedence over the one provided as initialization parameter.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTrackingConsent: " + }, + { + "kind": "Content", + "text": "(trackingConsent: " + }, + { + "kind": "Reference", + "text": "TrackingConsent", + "canonicalReference": "@datadog/browser-core!TrackingConsent:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setTrackingConsent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#setUser:member(1)", + "docComment": "/**\n * Set user information to all events, stored in `@usr`\n *\n * See [User context](https://docs.datadoghq.com/logs/log_collection/javascript/#user-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setUser(newUser: " + }, + { + "kind": "Reference", + "text": "User", + "canonicalReference": "@datadog/browser-core!User:interface" + }, + { + "kind": "Content", + "text": " & {\n id: string;\n }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "newUser", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "name": "setUser" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#setUser:member(2)", + "docComment": "/**\n * Set user information to all events, stored in `@usr`\n *\n * @deprecated\n *\n * You must specified a user id\n *\n * @see\n *\n * {@link setUser}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setUser(newUser: " + }, + { + "kind": "Reference", + "text": "User", + "canonicalReference": "@datadog/browser-core!User:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "newUser", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "setUser" + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsGlobal#setUserProperty:member", + "docComment": "/**\n * Set or update the user property, stored in `@usr.`\n *\n * @param key - Key of the property\n *\n * @param property - Value of the property\n *\n * See [User context](https://docs.datadoghq.com/logs/log_collection/javascript/#user-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setUserProperty: " + }, + { + "kind": "Content", + "text": "(key: any, property: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setUserProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 2 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-logs!LogsInitConfiguration:interface", + "docComment": "/**\n * Configuration options for initializing the Datadog Browser Logs SDK. Extends the base InitConfiguration and includes additional options specific to log collection, such as error forwarding, console log forwarding, and the ability to modify or discard logs before they are sent.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface LogsInitConfiguration extends " + }, + { + "kind": "Reference", + "text": "InitConfiguration", + "canonicalReference": "@datadog/browser-core!InitConfiguration:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/logs/esm/domain/configuration.d.ts", + "releaseTag": "Public", + "name": "LogsInitConfiguration", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsInitConfiguration#beforeSend:member", + "docComment": "/**\n * Access to every logs collected by the Logs SDK before they are sent to Datadog. It allows: - Enrich your logs with additional context attributes - Modify your logs to modify their content, or redact sensitive sequences (see the list of editable properties) - Discard selected logs\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "beforeSend?: " + }, + { + "kind": "Content", + "text": "((event: " + }, + { + "kind": "Reference", + "text": "LogsEvent", + "canonicalReference": "@datadog/browser-logs!LogsEvent:interface" + }, + { + "kind": "Content", + "text": ", context: " + }, + { + "kind": "Reference", + "text": "LogsEventDomainContext", + "canonicalReference": "@datadog/browser-logs!LogsEventDomainContext:type" + }, + { + "kind": "Content", + "text": ") => boolean) | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "beforeSend", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsInitConfiguration#forwardConsoleLogs:member", + "docComment": "/**\n * Forward logs from console.* to Datadog. Use \"all\" to forward everything or an array of console API names to forward only a subset.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "forwardConsoleLogs?: " + }, + { + "kind": "Reference", + "text": "ConsoleApiName", + "canonicalReference": "@datadog/browser-core!ConsoleApiName:type" + }, + { + "kind": "Content", + "text": "[] | 'all' | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "forwardConsoleLogs", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsInitConfiguration#forwardErrorsToLogs:member", + "docComment": "/**\n * Forward console.error logs, uncaught exceptions and network errors to Datadog. @default true\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "forwardErrorsToLogs?: " + }, + { + "kind": "Content", + "text": "boolean | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "forwardErrorsToLogs", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsInitConfiguration#forwardReports:member", + "docComment": "/**\n * Forward reports from the [Reporting API](https://developer.mozilla.org/en-US/docs/Web/API/Reporting_API) to Datadog. Use \"all\" to forward everything or an array of report types to forward only a subset.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "forwardReports?: " + }, + { + "kind": "Reference", + "text": "RawReportType", + "canonicalReference": "@datadog/browser-core!RawReportType:type" + }, + { + "kind": "Content", + "text": "[] | 'all' | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "forwardReports", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsInitConfiguration#usePciIntake:member", + "docComment": "/**\n * Use PCI-compliant intake. See [PCI DSS Compliance](https://docs.datadoghq.com/data_security/pci_compliance/?tab=logmanagement) for further information. @default false\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "usePciIntake?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "usePciIntake", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 2 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-logs!LogsMessage:interface", + "docComment": "/**\n * Structure passed to the internal log handling strategy.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface LogsMessage " + } + ], + "fileUrlPath": "packages/logs/esm/domain/logger.d.ts", + "releaseTag": "Public", + "name": "LogsMessage", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsMessage#context:member", + "docComment": "/**\n * Optional context attached to the log\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "context?: " + }, + { + "kind": "Reference", + "text": "Context", + "canonicalReference": "@datadog/browser-core!Context:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsMessage#message:member", + "docComment": "/**\n * Raw message provided by the customer\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "message", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-logs!LogsMessage#status:member", + "docComment": "/**\n * Severity of the log\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "status: " + }, + { + "kind": "Reference", + "text": "StatusType", + "canonicalReference": "@datadog/browser-logs!StatusType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "status", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-logs!StatusType:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type StatusType = " + }, + { + "kind": "Content", + "text": "(typeof " + }, + { + "kind": "Reference", + "text": "StatusType", + "canonicalReference": "@datadog/browser-logs!StatusType:var" + }, + { + "kind": "Content", + "text": ")[keyof typeof " + }, + { + "kind": "Reference", + "text": "StatusType", + "canonicalReference": "@datadog/browser-logs!StatusType:var" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/logs/esm/domain/logger/isAuthorized.d.ts", + "releaseTag": "Public", + "name": "StatusType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Variable", + "canonicalReference": "@datadog/browser-logs!StatusType:var", + "docComment": "/**\n * Defines the severity levels for log messages, ranging from debug to emergency.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "StatusType: " + }, + { + "kind": "Content", + "text": "{\n readonly ok: \"ok\";\n readonly debug: \"debug\";\n readonly info: \"info\";\n readonly notice: \"notice\";\n readonly warn: \"warn\";\n readonly error: \"error\";\n readonly critical: \"critical\";\n readonly alert: \"alert\";\n readonly emerg: \"emerg\";\n}" + } + ], + "fileUrlPath": "packages/logs/esm/domain/logger/isAuthorized.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "StatusType", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + } + ] +} diff --git a/etc/browser-rum-react.api.json b/etc/browser-rum-react.api.json new file mode 100644 index 0000000000..7d02738fa9 --- /dev/null +++ b/etc/browser-rum-react.api.json @@ -0,0 +1,625 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.38.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@datadog/browser-rum-react!", + "docComment": "/**\n * Datadog Browser RUM React Integration - Additional components and hooks for React applications. Provides React-specific features like Error Boundaries and component performance tracking.\n *\n * @see\n *\n * {@link https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#react | RUM React Integration}\n *\n * @packageDocumentation\n */\n", + "name": "@datadog/browser-rum-react", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@datadog/browser-rum-react!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@datadog/browser-rum-react!addReactError:function(1)", + "docComment": "/**\n * Reports an error originating from React (Error Boundary or `componentDidCatch`) to Datadog RUM with relevant context and stack information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function addReactError(error: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": ", info: " + }, + { + "kind": "Reference", + "text": "ErrorInfo", + "canonicalReference": "@types/react!React.ErrorInfo:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/rum-react/esm/domain/error/addReactError.d.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "info", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "addReactError" + }, + { + "kind": "Class", + "canonicalReference": "@datadog/browser-rum-react!ErrorBoundary:class", + "docComment": "/**\n * A React Error Boundary that captures runtime errors in its child components and reports them to Datadog RUM, rendering the `fallback` component when an error occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class ErrorBoundary extends " + }, + { + "kind": "Reference", + "text": "React.Component", + "canonicalReference": "@types/react!React.Component:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Props", + "canonicalReference": "@datadog/browser-rum-react!~Props:interface" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "State", + "canonicalReference": "@datadog/browser-rum-react!~State:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/rum-react/esm/domain/error/errorBoundary.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "ErrorBoundary", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@datadog/browser-rum-react!ErrorBoundary:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `ErrorBoundary` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(props: " + }, + { + "kind": "Reference", + "text": "Props", + "canonicalReference": "@datadog/browser-rum-react!~Props:interface" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "props", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-rum-react!ErrorBoundary#componentDidCatch:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "componentDidCatch(error: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": ", errorInfo: " + }, + { + "kind": "Reference", + "text": "ErrorInfo", + "canonicalReference": "@types/react!React.ErrorInfo:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "errorInfo", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "componentDidCatch" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-rum-react!ErrorBoundary.getDerivedStateFromError:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getDerivedStateFromError(error: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "State", + "canonicalReference": "@datadog/browser-rum-react!~State:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getDerivedStateFromError" + }, + { + "kind": "Method", + "canonicalReference": "@datadog/browser-rum-react!ErrorBoundary#render:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "render(): " + }, + { + "kind": "Reference", + "text": "React.ReactNode", + "canonicalReference": "@types/react!React.ReactNode:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "render" + }, + { + "kind": "Property", + "canonicalReference": "@datadog/browser-rum-react!ErrorBoundary#resetError:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "resetError: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "resetError", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 7 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@datadog/browser-rum-react!reactPlugin:function(1)", + "docComment": "/**\n * Factory function that creates the React plugin for Datadog RUM, enabling features like ErrorBoundary integration, optional react-router view tracking, and component performance tracking utilities.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function reactPlugin(configuration?: " + }, + { + "kind": "Reference", + "text": "ReactPluginConfiguration", + "canonicalReference": "@datadog/browser-rum-react!~ReactPluginConfiguration:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{\n name: string;\n onInit({ publicApi, initConfiguration }: {\n initConfiguration: import(\"@datadog/browser-rum-core\")." + }, + { + "kind": "Reference", + "text": "RumInitConfiguration", + "canonicalReference": "@datadog/browser-rum-core!RumInitConfiguration:interface" + }, + { + "kind": "Content", + "text": ";\n publicApi: " + }, + { + "kind": "Reference", + "text": "RumPublicApi", + "canonicalReference": "@datadog/browser-rum-core!RumPublicApi:interface" + }, + { + "kind": "Content", + "text": ";\n }): void;\n onRumStart({ strategy }: {\n strategy: " + }, + { + "kind": "Reference", + "text": "Strategy", + "canonicalReference": "@datadog/browser-rum-core!Strategy:interface" + }, + { + "kind": "Content", + "text": ";\n }): void;\n getConfigurationTelemetry(): {\n router: boolean;\n };\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/rum-react/esm/domain/reactPlugin.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "configuration", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ], + "name": "reactPlugin" + }, + { + "kind": "Variable", + "canonicalReference": "@datadog/browser-rum-react!UNSTABLE_ReactComponentTracker:var", + "docComment": "/**\n * Experimental component that tracks the render lifecycle of its children and reports a duration vital named `reactComponentRender`.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "UNSTABLE_ReactComponentTracker: " + }, + { + "kind": "Content", + "text": "({ " + }, + { + "kind": "Reference", + "text": "name", + "canonicalReference": "@datadog/browser-rum-react!~__type#name" + }, + { + "kind": "Content", + "text": ": componentName, children, }: {\n name: string;\n children?: " + }, + { + "kind": "Reference", + "text": "React.ReactNode", + "canonicalReference": "@types/react!React.ReactNode:type" + }, + { + "kind": "Content", + "text": ";\n}) => " + }, + { + "kind": "Reference", + "text": "React.JSX.Element", + "canonicalReference": "@types/react!React.JSX.Element:interface" + } + ], + "fileUrlPath": "packages/rum-react/esm/domain/performance/reactComponentTracker.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "UNSTABLE_ReactComponentTracker", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + } + ] + } + ] +} diff --git a/etc/browser-rum-slim.api.json b/etc/browser-rum-slim.api.json new file mode 100644 index 0000000000..e4653fc1f1 --- /dev/null +++ b/etc/browser-rum-slim.api.json @@ -0,0 +1,202 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.38.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@datadog/browser-rum-slim!", + "docComment": "/**\n * Datadog Browser RUM SDK - Slim version without Session Replay and Real User Profiling. Lightweight alternative for basic RUM monitoring with reduced bundle size.\n *\n * @see\n *\n * {@link https://docs.datadoghq.com/real_user_monitoring/browser/ | RUM Browser Monitoring Setup}\n *\n * @packageDocumentation\n */\n", + "name": "@datadog/browser-rum-slim", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@datadog/browser-rum-slim!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Variable", + "canonicalReference": "@datadog/browser-rum-slim!datadogRum:var", + "docComment": "/**\n * The global RUM instance (slim version without Session Replay and Profiling). Use this to call RUM methods.\n *\n * @see\n *\n * {@link https://docs.datadoghq.com/real_user_monitoring/browser/ | RUM Browser Monitoring Setup}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "datadogRum: " + }, + { + "kind": "Reference", + "text": "RumPublicApi", + "canonicalReference": "@datadog/browser-rum-core!RumPublicApi:interface" + } + ], + "fileUrlPath": "packages/rum-slim/esm/entries/main.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "datadogRum", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + } + ] +} diff --git a/etc/browser-rum.api.json b/etc/browser-rum.api.json new file mode 100644 index 0000000000..b1f9c8a9b9 --- /dev/null +++ b/etc/browser-rum.api.json @@ -0,0 +1,3845 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.38.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@datadog/browser-rum!", + "docComment": "/**\n * Datadog Browser RUM SDK - Full version with Session Replay and Real User Profiling capabilities. Use this package to monitor your web application's performance and user experience.\n *\n * @see\n *\n * {@link https://docs.datadoghq.com/real_user_monitoring/browser/ | RUM Browser Monitoring Setup}\n *\n * @packageDocumentation\n */\n", + "name": "@datadog/browser-rum", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@datadog/browser-rum!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-rum!CommonProperties:interface", + "docComment": "/**\n * Schema of common properties of RUM events\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface CommonProperties " + } + ], + "fileUrlPath": "packages/rum-core/esm/rumEvent.types.d.ts", + "releaseTag": "Public", + "name": "CommonProperties", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#_dd:member", + "docComment": "/**\n * Internal properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly _dd: " + }, + { + "kind": "Content", + "text": "{\n readonly format_version: 2;\n session?: {\n plan?: 1 | 2;\n readonly session_precondition?: 'user_app_launch' | 'inactivity_timeout' | 'max_duration' | 'background_launch' | 'prewarm' | 'from_non_interactive_session' | 'explicit_stop';\n [k: string]: unknown;\n };\n readonly configuration?: {\n readonly session_sample_rate: number;\n readonly session_replay_sample_rate?: number;\n [k: string]: unknown;\n };\n readonly browser_sdk_version?: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "_dd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "IndexSignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties:index(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "[k: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "]: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "k", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ] + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#account:member", + "docComment": "/**\n * Account properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly account?: " + }, + { + "kind": "Content", + "text": "{\n readonly id: string;\n readonly name?: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": true, + "releaseTag": "Public", + "name": "account", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#application:member", + "docComment": "/**\n * Application properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly application: " + }, + { + "kind": "Content", + "text": "{\n readonly id: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "application", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#build_id:member", + "docComment": "/**\n * Generated unique ID of the application build. Unlike version or build_version this field is not meant to be coming from the user, but rather generated by the tooling for each build.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly build_id?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": true, + "releaseTag": "Public", + "name": "build_id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#build_version:member", + "docComment": "/**\n * The build version for this application\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly build_version?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": true, + "releaseTag": "Public", + "name": "build_version", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#ci_test:member", + "docComment": "/**\n * CI Visibility properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly ci_test?: " + }, + { + "kind": "Content", + "text": "{\n readonly test_execution_id: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": true, + "releaseTag": "Public", + "name": "ci_test", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#connectivity:member", + "docComment": "/**\n * Device connectivity properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "connectivity?: " + }, + { + "kind": "Content", + "text": "{\n readonly status: 'connected' | 'not_connected' | 'maybe';\n readonly interfaces?: ('bluetooth' | 'cellular' | 'ethernet' | 'wifi' | 'wimax' | 'mixed' | 'other' | 'unknown' | 'none')[];\n readonly effective_type?: 'slow-2g' | '2g' | '3g' | '4g';\n readonly cellular?: {\n readonly technology?: string;\n readonly carrier_name?: string;\n [k: string]: unknown;\n };\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "connectivity", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#context:member", + "docComment": "/**\n * User provided context\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "context?: " + }, + { + "kind": "Content", + "text": "{\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#date:member", + "docComment": "/**\n * Start of the event in ms from epoch\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly date: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "date", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#device:member", + "docComment": "/**\n * Device properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "device?: " + }, + { + "kind": "Content", + "text": "{\n readonly type: 'mobile' | 'desktop' | 'tablet' | 'tv' | 'gaming_console' | 'bot' | 'other';\n readonly name?: string;\n readonly model?: string;\n readonly brand?: string;\n readonly architecture?: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "device", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#display:member", + "docComment": "/**\n * Display properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "display?: " + }, + { + "kind": "Content", + "text": "{\n readonly viewport?: {\n readonly width: number;\n readonly height: number;\n [k: string]: unknown;\n };\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "display", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#os:member", + "docComment": "/**\n * Operating system properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "os?: " + }, + { + "kind": "Content", + "text": "{\n readonly name: string;\n readonly version: string;\n readonly build?: string;\n readonly version_major: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "os", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#service:member", + "docComment": "/**\n * The service name for this application\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "service?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "service", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#session:member", + "docComment": "/**\n * Session properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly session: " + }, + { + "kind": "Content", + "text": "{\n readonly id: string;\n readonly type: 'user' | 'synthetics' | 'ci_test';\n readonly has_replay?: boolean;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "session", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#source:member", + "docComment": "/**\n * The source of this event\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly source?: " + }, + { + "kind": "Content", + "text": "'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": true, + "releaseTag": "Public", + "name": "source", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#synthetics:member", + "docComment": "/**\n * Synthetics properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly synthetics?: " + }, + { + "kind": "Content", + "text": "{\n readonly test_id: string;\n readonly result_id: string;\n readonly injected?: boolean;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": true, + "releaseTag": "Public", + "name": "synthetics", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#usr:member", + "docComment": "/**\n * User properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly usr?: " + }, + { + "kind": "Content", + "text": "{\n readonly id?: string;\n readonly name?: string;\n readonly email?: string;\n readonly anonymous_id?: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": true, + "releaseTag": "Public", + "name": "usr", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#version:member", + "docComment": "/**\n * The version for this application\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "version?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "version", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!CommonProperties#view:member", + "docComment": "/**\n * View properties\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly view: " + }, + { + "kind": "Content", + "text": "{\n readonly id: string;\n referrer?: string;\n url: string;\n name?: string;\n [k: string]: unknown;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "view", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@datadog/browser-rum!datadogRum:var", + "docComment": "/**\n * The global RUM instance. Use this to call RUM methods.\n *\n * @see\n *\n * {@link https://docs.datadoghq.com/real_user_monitoring/browser/ | RUM Browser Monitoring Setup}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "datadogRum: " + }, + { + "kind": "Reference", + "text": "RumPublicApi", + "canonicalReference": "@datadog/browser-rum!RumGlobal:interface" + } + ], + "fileUrlPath": "packages/rum/esm/entries/main.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "datadogRum", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-rum!RumActionEvent:type", + "docComment": "/**\n * Schema of all properties of an Action event\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RumActionEvent = " + }, + { + "kind": "Reference", + "text": "CommonProperties", + "canonicalReference": "@datadog/browser-rum!CommonProperties:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "ViewContainerSchema", + "canonicalReference": "@datadog/browser-rum!ViewContainerSchema:interface" + }, + { + "kind": "Content", + "text": " & {\n readonly type: 'action';\n readonly action: {\n readonly type: 'custom' | 'click' | 'tap' | 'scroll' | 'swipe' | 'application_start' | 'back';\n readonly id?: string;\n readonly loading_time?: number;\n readonly target?: {\n name: string;\n [k: string]: unknown;\n };\n readonly frustration?: {\n readonly type: ('rage_click' | 'dead_click' | 'error_click' | 'rage_tap' | 'error_tap')[];\n [k: string]: unknown;\n };\n readonly error?: {\n readonly count: number;\n [k: string]: unknown;\n };\n readonly crash?: {\n readonly count: number;\n [k: string]: unknown;\n };\n readonly long_task?: {\n readonly count: number;\n [k: string]: unknown;\n };\n readonly resource?: {\n readonly count: number;\n [k: string]: unknown;\n };\n [k: string]: unknown;\n };\n readonly view?: {\n readonly in_foreground?: boolean;\n [k: string]: unknown;\n };\n _dd?: {\n readonly action?: {\n readonly position?: {\n readonly x: number;\n readonly y: number;\n [k: string]: unknown;\n };\n target?: {\n readonly selector?: string;\n readonly width?: number;\n readonly height?: number;\n [k: string]: unknown;\n };\n name_source?: 'custom_attribute' | 'mask_placeholder' | 'standard_attribute' | 'text_content' | 'mask_disallowed' | 'blank';\n [k: string]: unknown;\n };\n [k: string]: unknown;\n };\n [k: string]: unknown;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/rum-core/esm/rumEvent.types.d.ts", + "releaseTag": "Public", + "name": "RumActionEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-rum!RumActionEventDomainContext:interface", + "docComment": "/**\n * Additional information available when the SDK dispatches a RUM Action event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface RumActionEventDomainContext " + } + ], + "fileUrlPath": "packages/rum-core/esm/domainContext.types.d.ts", + "releaseTag": "Public", + "name": "RumActionEventDomainContext", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumActionEventDomainContext#events:member", + "docComment": "/**\n * DOM events that triggered this action.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "events?: " + }, + { + "kind": "Reference", + "text": "Event", + "canonicalReference": "!Event:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "events", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumActionEventDomainContext#handlingStack:member", + "docComment": "/**\n * Stack trace of where the action was handled by the SDK.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "handlingStack?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "handlingStack", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-rum!RumErrorEvent:type", + "docComment": "/**\n * Schema of all properties of an Error event\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RumErrorEvent = " + }, + { + "kind": "Reference", + "text": "CommonProperties", + "canonicalReference": "@datadog/browser-rum!CommonProperties:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "ActionChildProperties", + "canonicalReference": "@datadog/browser-rum!ActionChildProperties:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "ViewContainerSchema", + "canonicalReference": "@datadog/browser-rum!ViewContainerSchema:interface" + }, + { + "kind": "Content", + "text": " & {\n readonly type: 'error';\n readonly error: {\n readonly id?: string;\n message: string;\n readonly source: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'webview' | 'custom' | 'report';\n stack?: string;\n causes?: {\n message: string;\n readonly type?: string;\n stack?: string;\n readonly source: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'webview' | 'custom' | 'report';\n [k: string]: unknown;\n }[];\n readonly is_crash?: boolean;\n fingerprint?: string;\n readonly type?: string;\n readonly category?: 'ANR' | 'App Hang' | 'Exception' | 'Watchdog Termination' | 'Memory Warning';\n readonly handling?: 'handled' | 'unhandled';\n readonly handling_stack?: string;\n readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp';\n readonly resource?: {\n readonly method: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'TRACE' | 'OPTIONS' | 'CONNECT';\n readonly status_code: number;\n url: string;\n readonly provider?: {\n readonly domain?: string;\n readonly name?: string;\n readonly type?: 'ad' | 'advertising' | 'analytics' | 'cdn' | 'content' | 'customer-success' | 'first party' | 'hosting' | 'marketing' | 'other' | 'social' | 'tag-manager' | 'utility' | 'video';\n [k: string]: unknown;\n };\n [k: string]: unknown;\n };\n threads?: {\n readonly name: string;\n readonly crashed: boolean;\n readonly stack: string;\n readonly state?: string;\n [k: string]: unknown;\n }[];\n readonly binary_images?: {\n readonly uuid: string;\n readonly name: string;\n readonly is_system: boolean;\n readonly load_address?: string;\n readonly max_address?: string;\n readonly arch?: string;\n [k: string]: unknown;\n }[];\n readonly was_truncated?: boolean;\n readonly meta?: {\n readonly code_type?: string;\n readonly parent_process?: string;\n readonly incident_identifier?: string;\n readonly process?: string;\n readonly exception_type?: string;\n readonly exception_codes?: string;\n readonly path?: string;\n [k: string]: unknown;\n };\n readonly csp?: {\n readonly disposition?: 'enforce' | 'report';\n [k: string]: unknown;\n };\n readonly time_since_app_start?: number;\n [k: string]: unknown;\n };\n readonly freeze?: {\n readonly duration: number;\n [k: string]: unknown;\n };\n readonly view?: {\n readonly in_foreground?: boolean;\n [k: string]: unknown;\n };\n readonly feature_flags?: {\n [k: string]: unknown;\n };\n [k: string]: unknown;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/rum-core/esm/rumEvent.types.d.ts", + "releaseTag": "Public", + "name": "RumErrorEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-rum!RumErrorEventDomainContext:interface", + "docComment": "/**\n * Additional information available when the SDK dispatches an Error event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface RumErrorEventDomainContext " + } + ], + "fileUrlPath": "packages/rum-core/esm/domainContext.types.d.ts", + "releaseTag": "Public", + "name": "RumErrorEventDomainContext", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumErrorEventDomainContext#error:member", + "docComment": "/**\n * The original error object that was captured.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "error: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "error", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumErrorEventDomainContext#handlingStack:member", + "docComment": "/**\n * Stack trace of where the error was handled by the SDK.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "handlingStack?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "handlingStack", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-rum!RumEvent:type", + "docComment": "/**\n * Schema of all properties of a RUM event\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RumEvent = " + }, + { + "kind": "Reference", + "text": "RumActionEvent", + "canonicalReference": "@datadog/browser-rum!RumActionEvent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "RumErrorEvent", + "canonicalReference": "@datadog/browser-rum!RumErrorEvent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "RumLongTaskEvent", + "canonicalReference": "@datadog/browser-rum!RumLongTaskEvent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "RumResourceEvent", + "canonicalReference": "@datadog/browser-rum!RumResourceEvent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "RumViewEvent", + "canonicalReference": "@datadog/browser-rum!RumViewEvent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "RumVitalEvent", + "canonicalReference": "@datadog/browser-rum!RumVitalEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/rum-core/esm/rumEvent.types.d.ts", + "releaseTag": "Public", + "name": "RumEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-rum!RumEventDomainContext:type", + "docComment": "/**\n * Additional context data that varies based on the type of RUM event being dispatched.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RumEventDomainContext = " + }, + { + "kind": "Content", + "text": "T extends " + }, + { + "kind": "Reference", + "text": "RumEventType.VIEW", + "canonicalReference": "@datadog/browser-rum!RumEventType.VIEW:member" + }, + { + "kind": "Content", + "text": " ? " + }, + { + "kind": "Reference", + "text": "RumViewEventDomainContext", + "canonicalReference": "@datadog/browser-rum!RumViewEventDomainContext:interface" + }, + { + "kind": "Content", + "text": " : T extends " + }, + { + "kind": "Reference", + "text": "RumEventType.ACTION", + "canonicalReference": "@datadog/browser-rum!RumEventType.ACTION:member" + }, + { + "kind": "Content", + "text": " ? " + }, + { + "kind": "Reference", + "text": "RumActionEventDomainContext", + "canonicalReference": "@datadog/browser-rum!RumActionEventDomainContext:interface" + }, + { + "kind": "Content", + "text": " : T extends " + }, + { + "kind": "Reference", + "text": "RumEventType.RESOURCE", + "canonicalReference": "@datadog/browser-rum!RumEventType.RESOURCE:member" + }, + { + "kind": "Content", + "text": " ? " + }, + { + "kind": "Reference", + "text": "RumFetchResourceEventDomainContext", + "canonicalReference": "@datadog/browser-rum!RumFetchResourceEventDomainContext:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "RumXhrResourceEventDomainContext", + "canonicalReference": "@datadog/browser-rum!RumXhrResourceEventDomainContext:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "RumOtherResourceEventDomainContext", + "canonicalReference": "@datadog/browser-rum!RumOtherResourceEventDomainContext:interface" + }, + { + "kind": "Content", + "text": " : T extends " + }, + { + "kind": "Reference", + "text": "RumEventType.ERROR", + "canonicalReference": "@datadog/browser-rum!RumEventType.ERROR:member" + }, + { + "kind": "Content", + "text": " ? " + }, + { + "kind": "Reference", + "text": "RumErrorEventDomainContext", + "canonicalReference": "@datadog/browser-rum!RumErrorEventDomainContext:interface" + }, + { + "kind": "Content", + "text": " : T extends " + }, + { + "kind": "Reference", + "text": "RumEventType.LONG_TASK", + "canonicalReference": "@datadog/browser-rum!RumEventType.LONG_TASK:member" + }, + { + "kind": "Content", + "text": " ? " + }, + { + "kind": "Reference", + "text": "RumLongTaskEventDomainContext", + "canonicalReference": "@datadog/browser-rum!RumLongTaskEventDomainContext:interface" + }, + { + "kind": "Content", + "text": " : T extends " + }, + { + "kind": "Reference", + "text": "RumEventType.VITAL", + "canonicalReference": "@datadog/browser-rum!RumEventType.VITAL:member" + }, + { + "kind": "Content", + "text": " ? " + }, + { + "kind": "Reference", + "text": "RumVitalEventDomainContext", + "canonicalReference": "@datadog/browser-rum!RumVitalEventDomainContext:type" + }, + { + "kind": "Content", + "text": " : never" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/rum-core/esm/domainContext.types.d.ts", + "releaseTag": "Public", + "name": "RumEventDomainContext", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeTokenRange": { + "startIndex": 5, + "endIndex": 34 + } + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-rum!RumFetchResourceEventDomainContext:interface", + "docComment": "/**\n * Additional information available when the SDK dispatches a Fetch resource event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface RumFetchResourceEventDomainContext " + } + ], + "fileUrlPath": "packages/rum-core/esm/domainContext.types.d.ts", + "releaseTag": "Public", + "name": "RumFetchResourceEventDomainContext", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumFetchResourceEventDomainContext#error:member", + "docComment": "/**\n * Error that occurred during the fetch call.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "error?: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "error", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumFetchResourceEventDomainContext#handlingStack:member", + "docComment": "/**\n * Stack trace of where the resource was handled by the SDK.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "handlingStack?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "handlingStack", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumFetchResourceEventDomainContext#isAborted:member", + "docComment": "/**\n * Whether the fetch call was aborted.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isAborted: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isAborted", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumFetchResourceEventDomainContext#performanceEntry:member", + "docComment": "/**\n * Browser performance entry for this resource.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "performanceEntry?: " + }, + { + "kind": "Reference", + "text": "PerformanceEntry", + "canonicalReference": "!PerformanceEntry:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "performanceEntry", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumFetchResourceEventDomainContext#requestInit:member", + "docComment": "/**\n * Init object passed to the fetch call.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "requestInit?: " + }, + { + "kind": "Reference", + "text": "RequestInit", + "canonicalReference": "!RequestInit:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "requestInit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumFetchResourceEventDomainContext#requestInput:member", + "docComment": "/**\n * Input parameter passed to the fetch call.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "requestInput: " + }, + { + "kind": "Reference", + "text": "RequestInfo", + "canonicalReference": "!RequestInfo:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "requestInput", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumFetchResourceEventDomainContext#response:member", + "docComment": "/**\n * Response object returned by the fetch call.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "response?: " + }, + { + "kind": "Reference", + "text": "Response", + "canonicalReference": "!Response:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "response", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-rum!RumGlobal:interface", + "docComment": "/**\n * The RUM Browser SDK global object that provides all the public methods.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface RumPublicApi extends " + }, + { + "kind": "Reference", + "text": "PublicApi", + "canonicalReference": "@datadog/browser-core!PublicApi:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/rum-core/esm/boot/rumPublicApi.d.ts", + "releaseTag": "Public", + "name": "RumGlobal", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#addAction:member", + "docComment": "/**\n * Add a custom action, stored in `@action`\n *\n * @param name - Name of the action\n *\n * @param context - Context of the action\n *\n * See [Send RUM Custom Actions](https://docs.datadoghq.com/real_user_monitoring/guide/send-rum-custom-actions) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addAction: " + }, + { + "kind": "Content", + "text": "(name: string, context?: object) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "addAction", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#addDurationVital:member", + "docComment": "/**\n * Add a custom duration vital\n *\n * @param name - name of the custom vital\n *\n * @param - options.startTime epoch timestamp of the start of the custom vital\n *\n * @param - options.duration duration of the custom vital in millisecond\n *\n * @param - options.context custom context attached to the vital\n *\n * @param - options.description Description of the vital\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addDurationVital: " + }, + { + "kind": "Content", + "text": "(name: string, options: {\n startTime: number;\n duration: number;\n context?: object;\n description?: string;\n }) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "addDurationVital", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#addError:member", + "docComment": "/**\n * Add a custom error, stored in `@error`.\n *\n * @param error - Error. Favor sending a [Javascript Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) to have a stack trace attached to the error event.\n *\n * @param context - Context of the error\n *\n * See [Send RUM Custom Actions](https://docs.datadoghq.com/real_user_monitoring/guide/send-rum-custom-actions) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addError: " + }, + { + "kind": "Content", + "text": "(error: unknown, context?: object) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "addError", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#addFeatureFlagEvaluation:member", + "docComment": "/**\n * Add a feature flag evaluation, stored in `@feature_flags.`\n *\n * @param key - The key of the feature flag.\n *\n * @param value - The value of the feature flag.\n *\n * We recommend enabling the intake request compression when using feature flags `compressIntakeRequests: true`.\n *\n * See [Feature Flag Tracking](https://docs.datadoghq.com/real_user_monitoring/feature_flag_tracking/) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addFeatureFlagEvaluation: " + }, + { + "kind": "Content", + "text": "(key: string, value: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "addFeatureFlagEvaluation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#addTiming:member", + "docComment": "/**\n * Add a custom timing relative to the start of the current view, stored in `@view.custom_timings.`\n *\n * @param name - Name of the custom timing\n *\n * @param time - Epoch timestamp of the custom timing (if not set, will use current time)\n *\n * Note: passing a relative time is discouraged since it is actually used as-is but displayed relative to the view start. We currently don't provide a way to retrieve the view start time, so it can be challenging to provide a timing relative to the view start. see https://github.com/DataDog/browser-sdk/issues/2552\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addTiming: " + }, + { + "kind": "Content", + "text": "(name: string, time?: number) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "addTiming", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#clearAccount:member", + "docComment": "/**\n * Clear all account information\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clearAccount: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "clearAccount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#clearGlobalContext:member", + "docComment": "/**\n * Clear the global context\n *\n * See [Global context](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#global-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clearGlobalContext: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "clearGlobalContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#clearUser:member", + "docComment": "/**\n * Clear all user information\n *\n * See [User session](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#user-session) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clearUser: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "clearUser", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#getAccount:member", + "docComment": "/**\n * Get account information\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getAccount: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Context", + "canonicalReference": "@datadog/browser-core!Context:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getAccount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#getGlobalContext:member", + "docComment": "/**\n * Get the global Context\n *\n * See [Global context](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#global-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getGlobalContext: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Context", + "canonicalReference": "@datadog/browser-core!Context:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getGlobalContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#getInitConfiguration:member", + "docComment": "/**\n * Get the init configuration\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getInitConfiguration: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "RumInitConfiguration", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration:interface" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getInitConfiguration", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#getInternalContext:member", + "docComment": "/**\n * [Internal API] Get the internal SDK context\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getInternalContext: " + }, + { + "kind": "Content", + "text": "(startTime?: number) => " + }, + { + "kind": "Reference", + "text": "InternalContext", + "canonicalReference": "@datadog/browser-rum!InternalContext:interface" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getInternalContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#getSessionReplayLink:member", + "docComment": "/**\n * Get the Session Replay Link.\n *\n * See [Connect Session Replay To Your Third-Party Tools](https://docs.datadoghq.com/real_user_monitoring/guide/connect-session-replay-to-your-third-party-tools) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getSessionReplayLink: " + }, + { + "kind": "Content", + "text": "() => string | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getSessionReplayLink", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#getUser:member", + "docComment": "/**\n * Get user information\n *\n * See [User session](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#user-session) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getUser: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Context", + "canonicalReference": "@datadog/browser-core!Context:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getUser", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#getViewContext:member", + "docComment": "/**\n * Get View Context.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getViewContext: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Context", + "canonicalReference": "@datadog/browser-core!Context:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getViewContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#init:member", + "docComment": "/**\n * Init the RUM browser SDK.\n *\n * @param initConfiguration - Configuration options of the SDK\n *\n * See [RUM Browser Monitoring Setup](https://docs.datadoghq.com/real_user_monitoring/browser) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "init: " + }, + { + "kind": "Content", + "text": "(initConfiguration: " + }, + { + "kind": "Reference", + "text": "RumInitConfiguration", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "init", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#removeAccountProperty:member", + "docComment": "/**\n * Remove an account property\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeAccountProperty: " + }, + { + "kind": "Content", + "text": "(key: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "removeAccountProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#removeGlobalContextProperty:member", + "docComment": "/**\n * Remove a global context property\n *\n * See [Global context](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#global-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeGlobalContextProperty: " + }, + { + "kind": "Content", + "text": "(key: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "removeGlobalContextProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#removeUserProperty:member", + "docComment": "/**\n * Remove a user property\n *\n * See [User session](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#user-session) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeUserProperty: " + }, + { + "kind": "Content", + "text": "(key: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "removeUserProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setAccount:member", + "docComment": "/**\n * Set account information to all events, stored in `@account`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setAccount: " + }, + { + "kind": "Content", + "text": "(newAccount: " + }, + { + "kind": "Reference", + "text": "Account", + "canonicalReference": "@datadog/browser-core!Account:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setAccount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setAccountProperty:member", + "docComment": "/**\n * Set or update the account property, stored in `@account.`\n *\n * @param key - Key of the property\n *\n * @param property - Value of the property\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setAccountProperty: " + }, + { + "kind": "Content", + "text": "(key: string, property: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setAccountProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setGlobalContext:member", + "docComment": "/**\n * Set the global context information to all events, stored in `@context`\n *\n * @param context - Global context\n *\n * See [Global context](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#global-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setGlobalContext: " + }, + { + "kind": "Content", + "text": "(context: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setGlobalContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setGlobalContextProperty:member", + "docComment": "/**\n * Set or update a global context property, stored in `@context.`\n *\n * @param key - Key of the property\n *\n * @param property - Value of the property\n *\n * See [Global context](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#global-context) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setGlobalContextProperty: " + }, + { + "kind": "Content", + "text": "(key: any, value: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setGlobalContextProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setTrackingConsent:member", + "docComment": "/**\n * Set the tracking consent of the current user.\n *\n * @param trackingConsent - The user tracking consent\n *\n * Data will be sent only if it is set to \"granted\". This value won't be stored by the library across page loads: you will need to call this method or set the appropriate `trackingConsent` field in the init() method at each page load.\n *\n * If this method is called before the init() method, the provided value will take precedence over the one provided as initialization parameter.\n *\n * See [User tracking consent](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#user-tracking-consent) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTrackingConsent: " + }, + { + "kind": "Content", + "text": "(trackingConsent: " + }, + { + "kind": "Reference", + "text": "TrackingConsent", + "canonicalReference": "@datadog/browser-core!TrackingConsent:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setTrackingConsent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setUser:member(1)", + "docComment": "/**\n * Set user information to all events, stored in `@usr`\n *\n * See [User session](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#user-session) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setUser(newUser: " + }, + { + "kind": "Reference", + "text": "User", + "canonicalReference": "@datadog/browser-core!User:interface" + }, + { + "kind": "Content", + "text": " & {\n id: string;\n }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "newUser", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "name": "setUser" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setUser:member(2)", + "docComment": "/**\n * Set user information to all events, stored in `@usr`\n *\n * @deprecated\n *\n * You must specify a user id\n *\n * @see\n *\n * {@link setUser}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setUser(newUser: " + }, + { + "kind": "Reference", + "text": "User", + "canonicalReference": "@datadog/browser-core!User:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "newUser", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "setUser" + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setUserProperty:member", + "docComment": "/**\n * Set or update the user property, stored in `@usr.`\n *\n * @param key - Key of the property\n *\n * @param property - Value of the property\n *\n * See [User session](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#user-session) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setUserProperty: " + }, + { + "kind": "Content", + "text": "(key: any, property: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setUserProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setViewContext:member", + "docComment": "/**\n * Set View Context.\n *\n * Enable to manually set the context of the current view.\n *\n * @param context - context of the view\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setViewContext: " + }, + { + "kind": "Content", + "text": "(context: " + }, + { + "kind": "Reference", + "text": "Context", + "canonicalReference": "@datadog/browser-core!Context:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setViewContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setViewContextProperty:member", + "docComment": "/**\n * Set View Context Property.\n *\n * Enable to manually set a property of the context of the current view.\n *\n * @param key - key of the property\n *\n * @param value - value of the property\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setViewContextProperty: " + }, + { + "kind": "Content", + "text": "(key: string, value: any) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setViewContextProperty", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#setViewName:member", + "docComment": "/**\n * Set View Name.\n *\n * Enable to manually change the name of the current view.\n *\n * @param name - name of the view See [Override default RUM view names](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#override-default-rum-view-names) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setViewName: " + }, + { + "kind": "Content", + "text": "(name: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "setViewName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#startDurationVital:member", + "docComment": "/**\n * Start a custom duration vital.\n *\n * If you plan to have multiple durations for the same vital, you should use the reference returned by this method.\n *\n * @param name - name of the custom vital\n *\n * @param - options.context custom context attached to the vital\n *\n * @param - options.description Description of the vital\n *\n * @returns reference to the custom vital\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "startDurationVital: " + }, + { + "kind": "Content", + "text": "(name: string, options?: {\n context?: object;\n description?: string;\n }) => " + }, + { + "kind": "Reference", + "text": "DurationVitalReference", + "canonicalReference": "@datadog/browser-rum!DurationVitalReference:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "startDurationVital", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#startSessionReplayRecording:member", + "docComment": "/**\n * Start Session Replay recording. Enable to conditionally start the recording, use the `startSessionReplayRecordingManually:true` init parameter and call `startSessionReplayRecording()`\n *\n * See [Browser Session Replay](https://docs.datadoghq.com/real_user_monitoring/session_replay/browser) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "startSessionReplayRecording: " + }, + { + "kind": "Content", + "text": "(options?: " + }, + { + "kind": "Reference", + "text": "StartRecordingOptions", + "canonicalReference": "@datadog/browser-rum!StartRecordingOptions:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "startSessionReplayRecording", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#startView:member", + "docComment": "/**\n * Start a view manually. Enable to manual start a view, use `trackViewsManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you've defined them in your SPA application routing.\n *\n * @param - options.name name of the view\n *\n * @param - options.service service of the view\n *\n * @param - options.version version of the view\n *\n * See [Override default RUM view names](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#override-default-rum-view-names) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "startView: " + }, + { + "kind": "Content", + "text": "{\n (name?: string): void;\n (options: " + }, + { + "kind": "Reference", + "text": "ViewOptions", + "canonicalReference": "@datadog/browser-rum!ViewOptions:interface" + }, + { + "kind": "Content", + "text": "): void;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "startView", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#stopDurationVital:member", + "docComment": "/**\n * Stop a custom duration vital\n *\n * @param nameOrRef - name of the custom vital or the reference to it\n *\n * @param - options.context custom context attached to the vital\n *\n * @param - options.description Description of the vital\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "stopDurationVital: " + }, + { + "kind": "Content", + "text": "(nameOrRef: string | " + }, + { + "kind": "Reference", + "text": "DurationVitalReference", + "canonicalReference": "@datadog/browser-rum!DurationVitalReference:interface" + }, + { + "kind": "Content", + "text": ", options?: {\n context?: object;\n description?: string;\n }) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "stopDurationVital", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#stopSession:member", + "docComment": "/**\n * Stop the session. A new session will start at the next user interaction with the page.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "stopSession: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "stopSession", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumGlobal#stopSessionReplayRecording:member", + "docComment": "/**\n * Stop Session Replay recording.\n *\n * See [Browser Session Replay](https://docs.datadoghq.com/real_user_monitoring/session_replay/browser) for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "stopSessionReplayRecording: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "stopSessionReplayRecording", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 2 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration:interface", + "docComment": "/**\n * Configuration options to pass to the `init()` method when initializing the RUM SDK.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface RumInitConfiguration extends " + }, + { + "kind": "Reference", + "text": "InitConfiguration", + "canonicalReference": "@datadog/browser-core!InitConfiguration:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/rum-core/esm/domain/configuration/configuration.d.ts", + "releaseTag": "Public", + "name": "RumInitConfiguration", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#actionNameAttribute:member", + "docComment": "/**\n * Specify your own attribute to use to name actions. See {@link https://docs.datadoghq.com/real_user_monitoring/browser/tracking_user_actions/#declare-a-name-for-click-actions | Declare a name for click actions} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "actionNameAttribute?: " + }, + { + "kind": "Content", + "text": "string | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "actionNameAttribute", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#allowedTracingUrls:member", + "docComment": "/**\n * A list of request URLs used to inject tracing headers. See {@link https://docs.datadoghq.com/real_user_monitoring/platform/connect_rum_and_traces/?tab=browserrum | Connect RUM and Traces} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "allowedTracingUrls?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "MatchOption", + "canonicalReference": "@datadog/browser-core!MatchOption:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TracingOption", + "canonicalReference": "@datadog/browser-rum!TracingOption:type" + }, + { + "kind": "Content", + "text": "> | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "allowedTracingUrls", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#applicationId:member", + "docComment": "/**\n * The RUM application ID.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "applicationId: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "applicationId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#beforeSend:member", + "docComment": "/**\n * Access to every event collected by the RUM SDK before they are sent to Datadog. It allows: - Enrich your RUM events with additional context attributes - Modify your RUM events to modify their content, or redact sensitive sequences (see the list of editable properties) - Discard selected RUM events\n *\n * See {@link https://docs.datadoghq.com/real_user_monitoring/guide/enrich-and-control-rum-data | Enrich And Control Browser RUM Data With beforeSend} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "beforeSend?: " + }, + { + "kind": "Content", + "text": "((event: " + }, + { + "kind": "Reference", + "text": "RumEvent", + "canonicalReference": "@datadog/browser-rum!RumEvent:type" + }, + { + "kind": "Content", + "text": ", context: " + }, + { + "kind": "Reference", + "text": "RumEventDomainContext", + "canonicalReference": "@datadog/browser-rum!RumEventDomainContext:type" + }, + { + "kind": "Content", + "text": ") => boolean) | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "beforeSend", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#compressIntakeRequests:member", + "docComment": "/**\n * Compress requests sent to the Datadog intake to reduce bandwidth usage when sending large amounts of data. The compression is done in a Worker thread. See {@link https://docs.datadoghq.com/integrations/content_security_policy_logs/?tab=firefox#use-csp-with-real-user-monitoring-and-session-replay | Content Security Policy guidelines} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "compressIntakeRequests?: " + }, + { + "kind": "Content", + "text": "boolean | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "compressIntakeRequests", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#defaultPrivacyLevel:member", + "docComment": "/**\n * Allow to protect end user privacy and prevent sensitive organizational information from being collected. @default mask See {@link https://docs.datadoghq.com/real_user_monitoring/session_replay/browser/privacy_options | Replay Privacy Options} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "defaultPrivacyLevel?: " + }, + { + "kind": "Reference", + "text": "DefaultPrivacyLevel", + "canonicalReference": "@datadog/browser-core!DefaultPrivacyLevel:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "defaultPrivacyLevel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#enablePrivacyForActionName:member", + "docComment": "/**\n * Enables privacy control for action names.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "enablePrivacyForActionName?: " + }, + { + "kind": "Content", + "text": "boolean | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "enablePrivacyForActionName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#excludedActivityUrls:member", + "docComment": "/**\n * A list of request origins ignored when computing the page activity. See {@link https://docs.datadoghq.com/real_user_monitoring/browser/monitoring_page_performance/#how-page-activity-is-calculated | How page activity is calculated} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "excludedActivityUrls?: " + }, + { + "kind": "Reference", + "text": "MatchOption", + "canonicalReference": "@datadog/browser-core!MatchOption:type" + }, + { + "kind": "Content", + "text": "[] | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "excludedActivityUrls", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#plugins:member", + "docComment": "/**\n * List of plugins to enable. The plugins API is unstable and experimental, and may change without notice. Please use only plugins provided by Datadog matching the version of the SDK you are using.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "plugins?: " + }, + { + "kind": "Reference", + "text": "RumPlugin", + "canonicalReference": "@datadog/browser-rum!RumPlugin:interface" + }, + { + "kind": "Content", + "text": "[] | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "plugins", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#profilingSampleRate:member", + "docComment": "/**\n * Not ready for production. The percentage of users profiled. A value between 0 and 100. @default 0\n *\n * @experimental\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "profilingSampleRate?: " + }, + { + "kind": "Content", + "text": "number | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "profilingSampleRate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#propagateTraceBaggage:member", + "docComment": "/**\n * Whether to propagate user and account IDs in the baggage header of trace requests. @default false\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "propagateTraceBaggage?: " + }, + { + "kind": "Content", + "text": "boolean | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "propagateTraceBaggage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#remoteConfigurationId:member", + "docComment": "/**\n * Identifier of the remote configuration to fetch dynamic settings for your application at runtime. Unless you have been instructed by Datadog support to use this feature, you should leave this parameter undefined.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "remoteConfigurationId?: " + }, + { + "kind": "Content", + "text": "string | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "remoteConfigurationId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#sessionReplaySampleRate:member", + "docComment": "/**\n * The percentage of tracked sessions with [Browser RUM & Session Replay pricing](https://www.datadoghq.com/pricing/?product=real-user-monitoring--session-replay#real-user-monitoring--session-replay) features: 100 for all, 0 for none. See {@link https://docs.datadoghq.com/real_user_monitoring/guide/sampling-browser-plans | Configure Your Setup For Browser RUM and Browser RUM & Session Replay Sampling} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "sessionReplaySampleRate?: " + }, + { + "kind": "Content", + "text": "number | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "sessionReplaySampleRate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#startSessionReplayRecordingManually:member", + "docComment": "/**\n * If the session is sampled for Session Replay, only start the recording when `startSessionReplayRecording()` is called, instead of at the beginning of the session. Default: if startSessionReplayRecording is 0, true; otherwise, false. See {@link https://docs.datadoghq.com/real_user_monitoring/session_replay/browser/#usage | Session Replay Usage} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "startSessionReplayRecordingManually?: " + }, + { + "kind": "Content", + "text": "boolean | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "startSessionReplayRecordingManually", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#subdomain:member", + "docComment": "/**\n * If you are accessing Datadog through a custom subdomain, you can set `subdomain` to include your custom domain in the `getSessionReplayLink()` returned URL . See {@link https://docs.datadoghq.com/real_user_monitoring/guide/connect-session-replay-to-your-third-party-tools | Connect Session Replay To Your Third-Party Tools} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "subdomain?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "subdomain", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#traceContextInjection:member", + "docComment": "/**\n * If you set a `traceSampleRate`, to ensure backend services' sampling decisions are still applied, configure the `traceContextInjection` initialization parameter to sampled. @default sampled See {@link https://docs.datadoghq.com/real_user_monitoring/platform/connect_rum_and_traces/?tab=browserrum | Connect RUM and Traces} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "traceContextInjection?: " + }, + { + "kind": "Reference", + "text": "TraceContextInjection", + "canonicalReference": "@datadog/browser-core!TraceContextInjection:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "traceContextInjection", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#traceSampleRate:member", + "docComment": "/**\n * The percentage of requests to trace: 100 for all, 0 for none. See {@link https://docs.datadoghq.com/real_user_monitoring/platform/connect_rum_and_traces/?tab=browserrum | Connect RUM and Traces} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "traceSampleRate?: " + }, + { + "kind": "Content", + "text": "number | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "traceSampleRate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#trackFeatureFlagsForEvents:member", + "docComment": "/**\n * Enables collection of features flags in chosen events.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "trackFeatureFlagsForEvents?: " + }, + { + "kind": "Reference", + "text": "FeatureFlagsForEvents", + "canonicalReference": "@datadog/browser-rum!FeatureFlagsForEvents:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "trackFeatureFlagsForEvents", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#trackLongTasks:member", + "docComment": "/**\n * Enables collection of long task events. @default true\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "trackLongTasks?: " + }, + { + "kind": "Content", + "text": "boolean | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "trackLongTasks", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#trackResources:member", + "docComment": "/**\n * Enables collection of resource events. @default true\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "trackResources?: " + }, + { + "kind": "Content", + "text": "boolean | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "trackResources", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#trackUserInteractions:member", + "docComment": "/**\n * Enables automatic collection of users actions. See {@link https://docs.datadoghq.com/real_user_monitoring/browser/tracking_user_actions | Tracking User Actions} for further information. @default true\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "trackUserInteractions?: " + }, + { + "kind": "Content", + "text": "boolean | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "trackUserInteractions", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#trackViewsManually:member", + "docComment": "/**\n * Allows you to control RUM views creation. See {@link https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/?tab=npm#override-default-rum-view-names | Override default RUM view names} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "trackViewsManually?: " + }, + { + "kind": "Content", + "text": "boolean | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "trackViewsManually", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumInitConfiguration#workerUrl:member", + "docComment": "/**\n * URL pointing to the Datadog Browser SDK Worker JavaScript file. The URL can be relative or absolute, but is required to have the same origin as the web application. See {@link https://docs.datadoghq.com/integrations/content_security_policy_logs/?tab=firefox#use-csp-with-real-user-monitoring-and-session-replay | Content Security Policy guidelines} for further information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "workerUrl?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "workerUrl", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 2 + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-rum!RumLongTaskEvent:type", + "docComment": "/**\n * Schema of all properties of a Long Task event\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RumLongTaskEvent = " + }, + { + "kind": "Reference", + "text": "CommonProperties", + "canonicalReference": "@datadog/browser-rum!CommonProperties:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "ActionChildProperties", + "canonicalReference": "@datadog/browser-rum!ActionChildProperties:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "ViewContainerSchema", + "canonicalReference": "@datadog/browser-rum!ViewContainerSchema:interface" + }, + { + "kind": "Content", + "text": " & {\n readonly type: 'long_task';\n readonly long_task: {\n readonly id?: string;\n readonly start_time?: number;\n readonly entry_type?: 'long-task' | 'long-animation-frame';\n readonly duration: number;\n readonly blocking_duration?: number;\n readonly render_start?: number;\n readonly style_and_layout_start?: number;\n readonly first_ui_event_timestamp?: number;\n readonly is_frozen_frame?: boolean;\n readonly scripts?: {\n readonly duration?: number;\n readonly pause_duration?: number;\n readonly forced_style_and_layout_duration?: number;\n readonly start_time?: number;\n readonly execution_start?: number;\n source_url?: string;\n readonly source_function_name?: string;\n readonly source_char_position?: number;\n invoker?: string;\n readonly invoker_type?: 'user-callback' | 'event-listener' | 'resolve-promise' | 'reject-promise' | 'classic-script' | 'module-script';\n readonly window_attribution?: string;\n [k: string]: unknown;\n }[];\n [k: string]: unknown;\n };\n readonly _dd?: {\n readonly discarded?: boolean;\n [k: string]: unknown;\n };\n [k: string]: unknown;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/rum-core/esm/rumEvent.types.d.ts", + "releaseTag": "Public", + "name": "RumLongTaskEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-rum!RumLongTaskEventDomainContext:interface", + "docComment": "/**\n * Additional information available when the SDK dispatches a Long Task event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface RumLongTaskEventDomainContext " + } + ], + "fileUrlPath": "packages/rum-core/esm/domainContext.types.d.ts", + "releaseTag": "Public", + "name": "RumLongTaskEventDomainContext", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumLongTaskEventDomainContext#performanceEntry:member", + "docComment": "/**\n * Browser performance entry for this long task.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "performanceEntry: " + }, + { + "kind": "Reference", + "text": "PerformanceEntry", + "canonicalReference": "!PerformanceEntry:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "performanceEntry", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-rum!RumOtherResourceEventDomainContext:interface", + "docComment": "/**\n * Additional information available when the SDK dispatches a Resource event that is neither fetch nor XHR.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface RumOtherResourceEventDomainContext " + } + ], + "fileUrlPath": "packages/rum-core/esm/domainContext.types.d.ts", + "releaseTag": "Public", + "name": "RumOtherResourceEventDomainContext", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumOtherResourceEventDomainContext#performanceEntry:member", + "docComment": "/**\n * Browser performance entry for this resource.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "performanceEntry: " + }, + { + "kind": "Reference", + "text": "PerformanceEntry", + "canonicalReference": "!PerformanceEntry:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "performanceEntry", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-rum!RumResourceEvent:type", + "docComment": "/**\n * Schema of all properties of a Resource event\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RumResourceEvent = " + }, + { + "kind": "Reference", + "text": "CommonProperties", + "canonicalReference": "@datadog/browser-rum!CommonProperties:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "ActionChildProperties", + "canonicalReference": "@datadog/browser-rum!ActionChildProperties:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "ViewContainerSchema", + "canonicalReference": "@datadog/browser-rum!ViewContainerSchema:interface" + }, + { + "kind": "Content", + "text": " & {\n readonly type: 'resource';\n readonly resource: {\n readonly id?: string;\n readonly type: 'document' | 'xhr' | 'beacon' | 'fetch' | 'css' | 'js' | 'image' | 'font' | 'media' | 'other' | 'native';\n readonly method?: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'TRACE' | 'OPTIONS' | 'CONNECT';\n url: string;\n readonly status_code?: number;\n readonly duration?: number;\n readonly size?: number;\n readonly encoded_body_size?: number;\n readonly decoded_body_size?: number;\n readonly transfer_size?: number;\n readonly render_blocking_status?: 'blocking' | 'non-blocking';\n readonly worker?: {\n readonly duration: number;\n readonly start: number;\n [k: string]: unknown;\n };\n readonly redirect?: {\n readonly duration: number;\n readonly start: number;\n [k: string]: unknown;\n };\n readonly dns?: {\n readonly duration: number;\n readonly start: number;\n [k: string]: unknown;\n };\n readonly connect?: {\n readonly duration: number;\n readonly start: number;\n [k: string]: unknown;\n };\n readonly ssl?: {\n readonly duration: number;\n readonly start: number;\n [k: string]: unknown;\n };\n readonly first_byte?: {\n readonly duration: number;\n readonly start: number;\n [k: string]: unknown;\n };\n readonly download?: {\n readonly duration: number;\n readonly start: number;\n [k: string]: unknown;\n };\n readonly protocol?: string;\n readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other';\n readonly provider?: {\n readonly domain?: string;\n readonly name?: string;\n readonly type?: 'ad' | 'advertising' | 'analytics' | 'cdn' | 'content' | 'customer-success' | 'first party' | 'hosting' | 'marketing' | 'other' | 'social' | 'tag-manager' | 'utility' | 'video';\n [k: string]: unknown;\n };\n readonly graphql?: {\n readonly operationType: 'query' | 'mutation' | 'subscription';\n readonly operationName?: string;\n payload?: string;\n variables?: string;\n [k: string]: unknown;\n };\n [k: string]: unknown;\n };\n readonly _dd?: {\n readonly span_id?: string;\n readonly trace_id?: string;\n readonly rule_psr?: number;\n readonly discarded?: boolean;\n [k: string]: unknown;\n };\n [k: string]: unknown;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/rum-core/esm/rumEvent.types.d.ts", + "releaseTag": "Public", + "name": "RumResourceEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-rum!RumViewEvent:type", + "docComment": "/**\n * Schema of all properties of a View event\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RumViewEvent = " + }, + { + "kind": "Reference", + "text": "CommonProperties", + "canonicalReference": "@datadog/browser-rum!CommonProperties:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "ViewContainerSchema", + "canonicalReference": "@datadog/browser-rum!ViewContainerSchema:interface" + }, + { + "kind": "Content", + "text": " & {\n readonly type: 'view';\n readonly view: {\n readonly loading_time?: number;\n readonly network_settled_time?: number;\n readonly interaction_to_next_view_time?: number;\n readonly loading_type?: 'initial_load' | 'route_change' | 'activity_display' | 'activity_redisplay' | 'fragment_display' | 'fragment_redisplay' | 'view_controller_display' | 'view_controller_redisplay';\n readonly time_spent: number;\n readonly first_contentful_paint?: number;\n readonly largest_contentful_paint?: number;\n readonly largest_contentful_paint_target_selector?: string;\n readonly first_input_delay?: number;\n readonly first_input_time?: number;\n readonly first_input_target_selector?: string;\n readonly interaction_to_next_paint?: number;\n readonly interaction_to_next_paint_time?: number;\n readonly interaction_to_next_paint_target_selector?: string;\n readonly cumulative_layout_shift?: number;\n readonly cumulative_layout_shift_time?: number;\n readonly cumulative_layout_shift_target_selector?: string;\n readonly dom_complete?: number;\n readonly dom_content_loaded?: number;\n readonly dom_interactive?: number;\n readonly load_event?: number;\n readonly first_byte?: number;\n readonly custom_timings?: {\n [k: string]: number;\n };\n readonly is_active?: boolean;\n readonly is_slow_rendered?: boolean;\n readonly action: {\n readonly count: number;\n [k: string]: unknown;\n };\n readonly error: {\n readonly count: number;\n [k: string]: unknown;\n };\n readonly crash?: {\n readonly count: number;\n [k: string]: unknown;\n };\n readonly long_task?: {\n readonly count: number;\n [k: string]: unknown;\n };\n readonly frozen_frame?: {\n readonly count: number;\n [k: string]: unknown;\n };\n readonly slow_frames?: {\n readonly start: number;\n readonly duration: number;\n [k: string]: unknown;\n }[];\n readonly resource: {\n readonly count: number;\n [k: string]: unknown;\n };\n readonly frustration?: {\n readonly count: number;\n [k: string]: unknown;\n };\n readonly in_foreground_periods?: {\n readonly start: number;\n readonly duration: number;\n [k: string]: unknown;\n }[];\n readonly memory_average?: number;\n readonly memory_max?: number;\n readonly cpu_ticks_count?: number;\n readonly cpu_ticks_per_second?: number;\n readonly refresh_rate_average?: number;\n readonly refresh_rate_min?: number;\n readonly slow_frames_rate?: number;\n readonly freeze_rate?: number;\n flutter_build_time?: " + }, + { + "kind": "Reference", + "text": "RumPerfMetric", + "canonicalReference": "@datadog/browser-rum!RumPerfMetric:interface" + }, + { + "kind": "Content", + "text": ";\n flutter_raster_time?: " + }, + { + "kind": "Reference", + "text": "RumPerfMetric", + "canonicalReference": "@datadog/browser-rum!RumPerfMetric:interface" + }, + { + "kind": "Content", + "text": ";\n js_refresh_rate?: " + }, + { + "kind": "Reference", + "text": "RumPerfMetric", + "canonicalReference": "@datadog/browser-rum!RumPerfMetric:interface" + }, + { + "kind": "Content", + "text": ";\n performance?: " + }, + { + "kind": "Reference", + "text": "ViewPerformanceData", + "canonicalReference": "@datadog/browser-rum!ViewPerformanceData:interface" + }, + { + "kind": "Content", + "text": ";\n [k: string]: unknown;\n };\n readonly session?: {\n readonly is_active?: boolean;\n readonly sampled_for_replay?: boolean;\n [k: string]: unknown;\n };\n readonly feature_flags?: {\n [k: string]: unknown;\n };\n readonly privacy?: {\n readonly replay_level: 'allow' | 'mask' | 'mask-user-input';\n [k: string]: unknown;\n };\n readonly _dd: {\n readonly document_version: number;\n readonly page_states?: {\n readonly state: 'active' | 'passive' | 'hidden' | 'frozen' | 'terminated';\n readonly start: number;\n [k: string]: unknown;\n }[];\n replay_stats?: {\n records_count?: number;\n segments_count?: number;\n segments_total_raw_size?: number;\n [k: string]: unknown;\n };\n readonly cls?: {\n readonly device_pixel_ratio?: number;\n [k: string]: unknown;\n };\n readonly configuration?: {\n readonly start_session_replay_recording_manually?: boolean;\n [k: string]: unknown;\n };\n [k: string]: unknown;\n };\n readonly display?: {\n readonly scroll?: {\n readonly max_depth: number;\n readonly max_depth_scroll_top: number;\n readonly max_scroll_height: number;\n readonly max_scroll_height_time: number;\n [k: string]: unknown;\n };\n [k: string]: unknown;\n };\n [k: string]: unknown;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/rum-core/esm/rumEvent.types.d.ts", + "releaseTag": "Public", + "name": "RumViewEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 13 + } + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-rum!RumViewEventDomainContext:interface", + "docComment": "/**\n * Additional information available when the SDK dispatches a RUM View event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface RumViewEventDomainContext " + } + ], + "fileUrlPath": "packages/rum-core/esm/domainContext.types.d.ts", + "releaseTag": "Public", + "name": "RumViewEventDomainContext", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumViewEventDomainContext#location:member", + "docComment": "/**\n * The browser location object at the time the view was created.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "location: " + }, + { + "kind": "Reference", + "text": "Readonly", + "canonicalReference": "!Readonly:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Location", + "canonicalReference": "!Location:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "location", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@datadog/browser-rum!RumVitalEvent:type", + "docComment": "/**\n * Schema of all properties of a Vital event\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RumVitalEvent = " + }, + { + "kind": "Reference", + "text": "CommonProperties", + "canonicalReference": "@datadog/browser-rum!CommonProperties:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "ViewContainerSchema", + "canonicalReference": "@datadog/browser-rum!ViewContainerSchema:interface" + }, + { + "kind": "Content", + "text": " & {\n readonly type: 'vital';\n readonly vital: {\n readonly type: 'duration';\n readonly id: string;\n readonly name?: string;\n readonly description?: string;\n readonly duration?: number;\n readonly custom?: {\n [k: string]: number;\n };\n [k: string]: unknown;\n };\n readonly _dd?: {\n readonly vital?: {\n readonly computed_value?: boolean;\n [k: string]: unknown;\n };\n [k: string]: unknown;\n };\n [k: string]: unknown;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/rum-core/esm/rumEvent.types.d.ts", + "releaseTag": "Public", + "name": "RumVitalEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@datadog/browser-rum!RumXhrResourceEventDomainContext:interface", + "docComment": "/**\n * Additional information available when the SDK dispatches an XHR resource event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface RumXhrResourceEventDomainContext " + } + ], + "fileUrlPath": "packages/rum-core/esm/domainContext.types.d.ts", + "releaseTag": "Public", + "name": "RumXhrResourceEventDomainContext", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumXhrResourceEventDomainContext#handlingStack:member", + "docComment": "/**\n * Stack trace of where the resource was handled by the SDK.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "handlingStack?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "handlingStack", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumXhrResourceEventDomainContext#isAborted:member", + "docComment": "/**\n * Whether the XHR request was aborted.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isAborted: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isAborted", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumXhrResourceEventDomainContext#performanceEntry:member", + "docComment": "/**\n * Browser performance entry for this resource.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "performanceEntry?: " + }, + { + "kind": "Reference", + "text": "PerformanceEntry", + "canonicalReference": "!PerformanceEntry:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "performanceEntry", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@datadog/browser-rum!RumXhrResourceEventDomainContext#xhr:member", + "docComment": "/**\n * The XMLHttpRequest object that made the request.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "xhr: " + }, + { + "kind": "Reference", + "text": "XMLHttpRequest", + "canonicalReference": "!XMLHttpRequest:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "xhr", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + } + ] + } + ] +} diff --git a/package.json b/package.json index 310043a42f..bb90619407 100644 --- a/package.json +++ b/package.json @@ -34,11 +34,19 @@ "test:compat:ssr": "scripts/cli check_server_side_rendering_compatibility", "rum-events-format:sync": "scripts/cli update_submodule && scripts/cli build_json2type && node scripts/generate-schema-types.js", "size": "node scripts/show-bundle-size.js", - "woke": "scripts/cli woke" + "woke": "scripts/cli woke", + "build:types": "lerna run build:esm --stream", + "docs:api": "yarn build:types && api-extractor run --local -c packages/rum/api-extractor.json && api-extractor run --local -c packages/logs/api-extractor.json && api-extractor run --local -c packages/rum-slim/api-extractor.json && api-extractor run --local -c packages/rum-react/api-extractor.json && api-documenter markdown -i etc -o docs && node scripts/docs-jekyll.js", + "docs:api:clean": "CLEANUP_MD=true yarn docs:api", + "docs:release": "yarn docs:api && echo 'Documentation ready for release'", + "docs:serve": "bundle exec jekyll serve --source docs --destination _site --config _config_docs.yml", + "docs:build": "bundle exec jekyll build --source docs --destination _site --config _config_docs.yml" }, "devDependencies": { "@eslint/js": "9.26.0", "@jsdevtools/coverage-istanbul-loader": "3.0.5", + "@microsoft/api-documenter": "7.25.9", + "@microsoft/api-extractor": "7.38.0", "@playwright/test": "1.52.0", "@swc/core": "1.11.24", "@types/chrome": "0.0.321", diff --git a/packages/core/src/domain/configuration/configuration.ts b/packages/core/src/domain/configuration/configuration.ts index 493ec134f4..8ec74e0352 100644 --- a/packages/core/src/domain/configuration/configuration.ts +++ b/packages/core/src/domain/configuration/configuration.ts @@ -65,7 +65,7 @@ export interface InitConfiguration { * Allows the use of localStorage when cookies cannot be set. This enables the RUM Browser SDK to run in environments that do not provide cookie support. * * Important: If you are using the RUM and Logs Browser SDKs, this option must be configured with identical values - * See [Monitor Electron Applications Using the Browser SDK](https://docs.datadoghq.com/real_user_monitoring/guide/monitor-electron-applications-using-browser-sdk) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/guide/monitor-electron-applications-using-browser-sdk | Monitor Electron Applications Using the Browser SDK} for further information. * @deprecated use `sessionPersistence: local-storage` where you want to use localStorage instead */ allowFallbackToLocalStorage?: boolean | undefined @@ -77,13 +77,13 @@ export interface InitConfiguration { allowUntrustedEvents?: boolean | undefined /** * Store global context and user context in localStorage to preserve them along the user navigation. - * See [Contexts life cycle](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/?tab=npm#contexts-life-cycle) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/?tab=npm#contexts-life-cycle | Contexts life cycle} for further information. * @default false */ storeContextsAcrossPages?: boolean | undefined /** * Set the initial user tracking consent state. - * See [User tracking consent](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/?tab=npm#user-tracking-consent) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/?tab=npm#user-tracking-consent | User tracking consent} for further information. * @default granted */ trackingConsent?: TrackingConsent | undefined @@ -91,7 +91,7 @@ export interface InitConfiguration { // transport options /** * Optional proxy URL, for example: https://www.proxy.com/path. - * See [Proxy Your Browser RUM Data](https://docs.datadoghq.com/real_user_monitoring/guide/proxy-rum-data) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/guide/proxy-rum-data | Proxy Your Browser RUM Data} for further information. */ proxy?: string | ProxyFn | undefined /** @@ -106,11 +106,11 @@ export interface InitConfiguration { */ service?: string | undefined | null /** - * The application’s environment, for example: prod, pre-prod, and staging. Follows the [tag syntax requirements](https://docs.datadoghq.com/getting_started/tagging/#define-tags). + * The application's environment, for example: prod, pre-prod, and staging. Follows the [tag syntax requirements](https://docs.datadoghq.com/getting_started/tagging/#define-tags). */ env?: string | undefined | null /** - * The application’s version, for example: 1.2.3, 6c44da20, and 2020.02.13. Follows the [tag syntax requirements](https://docs.datadoghq.com/getting_started/tagging/#define-tags). + * The application's version, for example: 1.2.3, 6c44da20, and 2020.02.13. Follows the [tag syntax requirements](https://docs.datadoghq.com/getting_started/tagging/#define-tags). */ version?: string | undefined | null diff --git a/packages/logs/api-extractor.json b/packages/logs/api-extractor.json new file mode 100644 index 0000000000..78d8fc9925 --- /dev/null +++ b/packages/logs/api-extractor.json @@ -0,0 +1,36 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./esm/entries/main.d.ts", + "compiler": { + "tsconfigFilePath": "./tsconfig.esm.json" + }, + "dtsRollup": { + "enabled": false + }, + "apiReport": { + "enabled": false + }, + "bundledPackages": ["@datadog/browser-logs"], + "docModel": { + "enabled": true, + "apiJsonFilePath": "/etc/.api.json" + }, + "messages": { + "compilerMessageReporting": { + "default": { + "logLevel": "warning" + } + }, + "extractorMessageReporting": { + "default": { + "logLevel": "warning", + "addToApiReportFile": false + } + }, + "tsdocMessageReporting": { + "default": { + "logLevel": "warning" + } + } + } +} diff --git a/packages/logs/src/boot/logsPublicApi.ts b/packages/logs/src/boot/logsPublicApi.ts index 35584855e8..4f7cc17c0b 100644 --- a/packages/logs/src/boot/logsPublicApi.ts +++ b/packages/logs/src/boot/logsPublicApi.ts @@ -20,12 +20,22 @@ import type { InternalContext } from '../domain/contexts/internalContext' import type { StartLogs, StartLogsResult } from './startLogs' import { createPreStartStrategy } from './preStartLogs' +/** + * Configuration options for a logger. + * Includes the log level to determine the severity of logs, + * the handler(s) responsible for processing log messages, + * and an optional context object to provide additional metadata for logs. + */ export interface LoggerConfiguration { level?: StatusType handler?: HandlerType | HandlerType[] context?: object } - +/** + * The public API for the Datadog Browser Logs SDK. + * Provides methods to initialize the SDK, manage global/user/account contexts, + * and interact with loggers for collecting and forwarding logs. + */ export interface LogsPublicApi extends PublicApi { logger: Logger diff --git a/packages/logs/src/domain/configuration.ts b/packages/logs/src/domain/configuration.ts index 8c9ff1bae0..1495d4580b 100644 --- a/packages/logs/src/domain/configuration.ts +++ b/packages/logs/src/domain/configuration.ts @@ -12,6 +12,12 @@ import { import type { LogsEvent } from '../logsEvent.types' import type { LogsEventDomainContext } from '../domainContext.types' +/** + * Configuration options for initializing the Datadog Browser Logs SDK. + * Extends the base InitConfiguration and includes additional options + * specific to log collection, such as error forwarding, console log forwarding, + * and the ability to modify or discard logs before they are sent. + */ export interface LogsInitConfiguration extends InitConfiguration { /** * Access to every logs collected by the Logs SDK before they are sent to Datadog. diff --git a/packages/logs/src/domain/logger.ts b/packages/logs/src/domain/logger.ts index 8efbe115e7..730c5b1a0c 100644 --- a/packages/logs/src/domain/logger.ts +++ b/packages/logs/src/domain/logger.ts @@ -15,12 +15,23 @@ import { import { isAuthorized, StatusType } from './logger/isAuthorized' import { createErrorFieldFromRawError } from './createErrorFieldFromRawError' +/** + * Structure passed to the internal log handling strategy. + * + * @public + */ export interface LogsMessage { + /** Raw message provided by the customer */ message: string + /** Severity of the log */ status: StatusType + /** Optional context attached to the log */ context?: Context } +/** + * Defines the types of handlers for processing logs: console, HTTP, or silent. + */ export const HandlerType = { console: 'console', http: 'http', @@ -149,17 +160,29 @@ Logger.prototype.alert = createLoggerMethod(StatusType.alert) Logger.prototype.emerg = createLoggerMethod(StatusType.emerg) /* eslint-enable local-rules/disallow-side-effects */ -// note: it is safe to merge declarations as long as the methods are actually defined on the prototype +/** + * Provides convenience methods for logging at each supported level. + * Each method accepts a message, optional context, and an optional error. + */ // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging export interface Logger { + /** Add an OK log (success). */ ok(message: string, messageContext?: object, error?: Error): void + /** Add a DEBUG log (developer usage). */ debug(message: string, messageContext?: object, error?: Error): void + /** Add an INFO log (notable but expected). */ info(message: string, messageContext?: object, error?: Error): void + /** Add a NOTICE log (normal but significant). */ notice(message: string, messageContext?: object, error?: Error): void + /** Add a WARN log (unexpected behaviour). */ warn(message: string, messageContext?: object, error?: Error): void + /** Add an ERROR log (runtime error). */ error(message: string, messageContext?: object, error?: Error): void + /** Add a CRITICAL log (serious failure). */ critical(message: string, messageContext?: object, error?: Error): void + /** Add an ALERT log (action must be taken immediately). */ alert(message: string, messageContext?: object, error?: Error): void + /** Add an EMERGENCY log (system is unusable). */ emerg(message: string, messageContext?: object, error?: Error): void } diff --git a/packages/logs/src/domain/logger/isAuthorized.ts b/packages/logs/src/domain/logger/isAuthorized.ts index 50886848e5..5ed2100ffb 100644 --- a/packages/logs/src/domain/logger/isAuthorized.ts +++ b/packages/logs/src/domain/logger/isAuthorized.ts @@ -6,6 +6,9 @@ export function isAuthorized(status: StatusType, handlerType: HandlerType, logge return STATUS_PRIORITIES[status] >= STATUS_PRIORITIES[logger.getLevel()] && sanitizedHandlerType.includes(handlerType) } +/** + * Defines the severity levels for log messages, ranging from debug to emergency. + */ export const StatusType = { ok: 'ok', debug: 'debug', diff --git a/packages/logs/src/entries/main.ts b/packages/logs/src/entries/main.ts index 253cd489cc..2314d4c14c 100644 --- a/packages/logs/src/entries/main.ts +++ b/packages/logs/src/entries/main.ts @@ -1,3 +1,11 @@ +/** + * @packageDocumentation + * Datadog Browser Logs SDK for collecting and forwarding browser logs to Datadog. + * Provides comprehensive logging capabilities with automatic error tracking and custom log collection. + * + * @see {@link https://docs.datadoghq.com/logs/log_collection/javascript/ | Browser Log Collection} + */ + import { defineGlobal, getGlobalObject } from '@datadog/browser-core' import type { LogsPublicApi } from '../boot/logsPublicApi' import { makeLogsPublicApi } from '../boot/logsPublicApi' @@ -11,6 +19,10 @@ export type { LogsInitConfiguration } from '../domain/configuration' export type { LogsEvent } from '../logsEvent.types' export type { LogsEventDomainContext } from '../domainContext.types' +/** + * The global Logs instance. Use this to call Logs methods. + * @see {@link https://docs.datadoghq.com/logs/log_collection/javascript/ | Browser Log Collection} + */ export const datadogLogs = makeLogsPublicApi(startLogs) interface BrowserWindow extends Window { diff --git a/packages/logs/src/logsEvent.types.ts b/packages/logs/src/logsEvent.types.ts index f537feef0a..bfa2babd83 100644 --- a/packages/logs/src/logsEvent.types.ts +++ b/packages/logs/src/logsEvent.types.ts @@ -1,3 +1,7 @@ +/** + * Represents a log event collected by the Datadog Browser Logs SDK, + * containing information such as message, context, and metadata. + */ export interface LogsEvent { /** * Start of the log in ms from epoch diff --git a/packages/rum-core/api-extractor.json b/packages/rum-core/api-extractor.json new file mode 100644 index 0000000000..c41540aa27 --- /dev/null +++ b/packages/rum-core/api-extractor.json @@ -0,0 +1,35 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./esm/index.d.ts", + "compiler": { + "tsconfigFilePath": "./tsconfig.esm.json" + }, + "dtsRollup": { + "enabled": false + }, + "apiReport": { + "enabled": false + }, + "docModel": { + "enabled": true, + "apiJsonFilePath": "/etc/.api.json" + }, + "messages": { + "compilerMessageReporting": { + "default": { + "logLevel": "warning" + } + }, + "extractorMessageReporting": { + "default": { + "logLevel": "warning", + "addToApiReportFile": false + } + }, + "tsdocMessageReporting": { + "default": { + "logLevel": "warning" + } + } + } +} diff --git a/packages/rum-core/package.json b/packages/rum-core/package.json index 5d3fb4b0ea..72467b3466 100644 --- a/packages/rum-core/package.json +++ b/packages/rum-core/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "main": "cjs/index.js", "module": "esm/index.js", - "types": "cjs/index.d.ts", + "types": "esm/index.d.ts", "scripts": { "pack": "yarn pack", "build": "run-p build:cjs build:esm", diff --git a/packages/rum-core/src/boot/rumPublicApi.ts b/packages/rum-core/src/boot/rumPublicApi.ts index cb6f47e643..e2d45d63bb 100644 --- a/packages/rum-core/src/boot/rumPublicApi.ts +++ b/packages/rum-core/src/boot/rumPublicApi.ts @@ -48,6 +48,10 @@ import type { StartRum, StartRumResult } from './startRum' export interface StartRecordingOptions { force: boolean } + +/** + * The RUM Browser SDK global object that provides all the public methods. + */ export interface RumPublicApi extends PublicApi { /** * Init the RUM browser SDK. @@ -259,7 +263,7 @@ export interface RumPublicApi extends PublicApi { /** * Start a view manually. - * Enable to manual start a view, use `trackViewsManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you’ve defined them in your SPA application routing. + * Enable to manual start a view, use `trackViewsManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you've defined them in your SPA application routing. * * @param options.name name of the view * @param options.service service of the view diff --git a/packages/rum-core/src/domain/configuration/configuration.ts b/packages/rum-core/src/domain/configuration/configuration.ts index 36061961e9..17fcf5d9e3 100644 --- a/packages/rum-core/src/domain/configuration/configuration.ts +++ b/packages/rum-core/src/domain/configuration/configuration.ts @@ -21,6 +21,9 @@ import type { PropagatorType, TracingOption } from '../tracing/tracer.types' export const DEFAULT_PROPAGATOR_TYPES: PropagatorType[] = ['tracecontext', 'datadog'] +/** + * Configuration options to pass to the `init()` method when initializing the RUM SDK. + */ export interface RumInitConfiguration extends InitConfiguration { // global options /** @@ -39,42 +42,47 @@ export interface RumInitConfiguration extends InitConfiguration { * - Modify your RUM events to modify their content, or redact sensitive sequences (see the list of editable properties) * - Discard selected RUM events * - * See [Enrich And Control Browser RUM Data With beforeSend](https://docs.datadoghq.com/real_user_monitoring/guide/enrich-and-control-rum-data) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/guide/enrich-and-control-rum-data | Enrich And Control Browser RUM Data With beforeSend} for further information. */ beforeSend?: ((event: RumEvent, context: RumEventDomainContext) => boolean) | undefined /** * A list of request origins ignored when computing the page activity. - * See [How page activity is calculated](https://docs.datadoghq.com/real_user_monitoring/browser/monitoring_page_performance/#how-page-activity-is-calculated) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/browser/monitoring_page_performance/#how-page-activity-is-calculated | How page activity is calculated} for further information. */ excludedActivityUrls?: MatchOption[] | undefined /** * URL pointing to the Datadog Browser SDK Worker JavaScript file. The URL can be relative or absolute, but is required to have the same origin as the web application. - * See [Content Security Policy guidelines](https://docs.datadoghq.com/integrations/content_security_policy_logs/?tab=firefox#use-csp-with-real-user-monitoring-and-session-replay) for further information. + * See {@link https://docs.datadoghq.com/integrations/content_security_policy_logs/?tab=firefox#use-csp-with-real-user-monitoring-and-session-replay | Content Security Policy guidelines} for further information. */ workerUrl?: string /** * Compress requests sent to the Datadog intake to reduce bandwidth usage when sending large amounts of data. The compression is done in a Worker thread. - * See [Content Security Policy guidelines](https://docs.datadoghq.com/integrations/content_security_policy_logs/?tab=firefox#use-csp-with-real-user-monitoring-and-session-replay) for further information. + * See {@link https://docs.datadoghq.com/integrations/content_security_policy_logs/?tab=firefox#use-csp-with-real-user-monitoring-and-session-replay | Content Security Policy guidelines} for further information. */ compressIntakeRequests?: boolean | undefined + /** + * Identifier of the remote configuration to fetch dynamic settings for your application at runtime. + * Unless you have been instructed by Datadog support to use this feature, you should leave this + * parameter undefined. + */ remoteConfigurationId?: string | undefined // tracing options /** * A list of request URLs used to inject tracing headers. - * See [Connect RUM and Traces](https://docs.datadoghq.com/real_user_monitoring/platform/connect_rum_and_traces/?tab=browserrum) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/platform/connect_rum_and_traces/?tab=browserrum | Connect RUM and Traces} for further information. */ allowedTracingUrls?: Array | undefined /** * The percentage of requests to trace: 100 for all, 0 for none. - * See [Connect RUM and Traces](https://docs.datadoghq.com/real_user_monitoring/platform/connect_rum_and_traces/?tab=browserrum) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/platform/connect_rum_and_traces/?tab=browserrum | Connect RUM and Traces} for further information. */ traceSampleRate?: number | undefined /** * If you set a `traceSampleRate`, to ensure backend services' sampling decisions are still applied, configure the `traceContextInjection` initialization parameter to sampled. * @default sampled - * See [Connect RUM and Traces](https://docs.datadoghq.com/real_user_monitoring/platform/connect_rum_and_traces/?tab=browserrum) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/platform/connect_rum_and_traces/?tab=browserrum | Connect RUM and Traces} for further information. */ traceContextInjection?: TraceContextInjection | undefined @@ -82,22 +90,22 @@ export interface RumInitConfiguration extends InitConfiguration { /** * Allow to protect end user privacy and prevent sensitive organizational information from being collected. * @default mask - * See [Replay Privacy Options](https://docs.datadoghq.com/real_user_monitoring/session_replay/browser/privacy_options) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/session_replay/browser/privacy_options | Replay Privacy Options} for further information. */ defaultPrivacyLevel?: DefaultPrivacyLevel | undefined /** * If you are accessing Datadog through a custom subdomain, you can set `subdomain` to include your custom domain in the `getSessionReplayLink()` returned URL . - * See [Connect Session Replay To Your Third-Party Tools](https://docs.datadoghq.com/real_user_monitoring/guide/connect-session-replay-to-your-third-party-tools) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/guide/connect-session-replay-to-your-third-party-tools | Connect Session Replay To Your Third-Party Tools} for further information. */ subdomain?: string /** * The percentage of tracked sessions with [Browser RUM & Session Replay pricing](https://www.datadoghq.com/pricing/?product=real-user-monitoring--session-replay#real-user-monitoring--session-replay) features: 100 for all, 0 for none. - * See [Configure Your Setup For Browser RUM and Browser RUM & Session Replay Sampling](https://docs.datadoghq.com/real_user_monitoring/guide/sampling-browser-plans) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/guide/sampling-browser-plans | Configure Your Setup For Browser RUM and Browser RUM & Session Replay Sampling} for further information. */ sessionReplaySampleRate?: number | undefined /** * If the session is sampled for Session Replay, only start the recording when `startSessionReplayRecording()` is called, instead of at the beginning of the session. Default: if startSessionReplayRecording is 0, true; otherwise, false. - * See [Session Replay Usage](https://docs.datadoghq.com/real_user_monitoring/session_replay/browser/#usage) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/session_replay/browser/#usage | Session Replay Usage} for further information. */ startSessionReplayRecordingManually?: boolean | undefined @@ -107,19 +115,19 @@ export interface RumInitConfiguration extends InitConfiguration { enablePrivacyForActionName?: boolean | undefined // TODO next major: remove this option and make privacy for action name the default behavior /** * Enables automatic collection of users actions. - * See [Tracking User Actions](https://docs.datadoghq.com/real_user_monitoring/browser/tracking_user_actions) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/browser/tracking_user_actions | Tracking User Actions} for further information. * @default true */ trackUserInteractions?: boolean | undefined /** * Specify your own attribute to use to name actions. - * See [Declare a name for click actions](https://docs.datadoghq.com/real_user_monitoring/browser/tracking_user_actions/#declare-a-name-for-click-actions) for further information. + * See {@link https://docs.datadoghq.com/real_user_monitoring/browser/tracking_user_actions/#declare-a-name-for-click-actions | Declare a name for click actions} for further information. */ actionNameAttribute?: string | undefined // view options /** - * Allows you to control RUM views creation. See [Override default RUM view names](https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/?tab=npm#override-default-rum-view-names) for further information. + * Allows you to control RUM views creation. See {@link https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/?tab=npm#override-default-rum-view-names | Override default RUM view names} for further information. */ trackViewsManually?: boolean | undefined /** diff --git a/packages/rum-core/src/domainContext.types.ts b/packages/rum-core/src/domainContext.types.ts index 478e639154..f5a861df56 100644 --- a/packages/rum-core/src/domainContext.types.ts +++ b/packages/rum-core/src/domainContext.types.ts @@ -4,6 +4,9 @@ import type { RumEventType } from './rawRumEvent.types' +/** + * Additional context data that varies based on the type of RUM event being dispatched. + */ export type RumEventDomainContext = T extends RumEventType.VIEW ? RumViewEventDomainContext : T extends RumEventType.ACTION @@ -18,44 +21,121 @@ export type RumEventDomainContext = T extends RumE ? RumVitalEventDomainContext : never +/** + * Additional information available when the SDK dispatches a RUM View event. + */ export interface RumViewEventDomainContext { + /** + * The browser location object at the time the view was created. + */ location: Readonly } +/** + * Additional information available when the SDK dispatches a RUM Action event. + */ export interface RumActionEventDomainContext { + /** + * DOM events that triggered this action. + */ events?: Event[] + /** + * Stack trace of where the action was handled by the SDK. + */ handlingStack?: string } +/** + * Additional information available when the SDK dispatches a Fetch resource event. + */ export interface RumFetchResourceEventDomainContext { + /** + * Init object passed to the fetch call. + */ requestInit?: RequestInit + /** + * Input parameter passed to the fetch call. + */ requestInput: RequestInfo + /** + * Response object returned by the fetch call. + */ response?: Response + /** + * Error that occurred during the fetch call. + */ error?: Error + /** + * Browser performance entry for this resource. + */ performanceEntry?: PerformanceEntry + /** + * Whether the fetch call was aborted. + */ isAborted: boolean + /** + * Stack trace of where the resource was handled by the SDK. + */ handlingStack?: string } +/** + * Additional information available when the SDK dispatches an XHR resource event. + */ export interface RumXhrResourceEventDomainContext { + /** + * The XMLHttpRequest object that made the request. + */ xhr: XMLHttpRequest + /** + * Browser performance entry for this resource. + */ performanceEntry?: PerformanceEntry + /** + * Whether the XHR request was aborted. + */ isAborted: boolean + /** + * Stack trace of where the resource was handled by the SDK. + */ handlingStack?: string } +/** + * Additional information available when the SDK dispatches a Resource event that is neither fetch nor XHR. + */ export interface RumOtherResourceEventDomainContext { + /** + * Browser performance entry for this resource. + */ performanceEntry: PerformanceEntry } +/** + * Additional information available when the SDK dispatches an Error event. + */ export interface RumErrorEventDomainContext { + /** + * The original error object that was captured. + */ error: unknown + /** + * Stack trace of where the error was handled by the SDK. + */ handlingStack?: string } +/** + * Additional information available when the SDK dispatches a Long Task event. + */ export interface RumLongTaskEventDomainContext { + /** + * Browser performance entry for this long task. + */ performanceEntry: PerformanceEntry } -// eslint-disable-next-line @typescript-eslint/no-empty-object-type -export interface RumVitalEventDomainContext {} +/** + * Additional information available when the SDK dispatches a Vital event. + */ +export type RumVitalEventDomainContext = Record diff --git a/packages/rum-react/api-extractor.json b/packages/rum-react/api-extractor.json new file mode 100644 index 0000000000..2fbdfa699b --- /dev/null +++ b/packages/rum-react/api-extractor.json @@ -0,0 +1,36 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./esm/entries/main.d.ts", + "compiler": { + "tsconfigFilePath": "./tsconfig.esm.json" + }, + "dtsRollup": { + "enabled": false + }, + "apiReport": { + "enabled": false + }, + "bundledPackages": ["@datadog/browser-rum-react"], + "docModel": { + "enabled": true, + "apiJsonFilePath": "/etc/.api.json" + }, + "messages": { + "compilerMessageReporting": { + "default": { + "logLevel": "warning" + } + }, + "extractorMessageReporting": { + "default": { + "logLevel": "warning", + "addToApiReportFile": false + } + }, + "tsdocMessageReporting": { + "default": { + "logLevel": "warning" + } + } + } +} diff --git a/packages/rum-react/src/domain/error/addReactError.ts b/packages/rum-react/src/domain/error/addReactError.ts index 2930aa4571..fa5e9402a8 100644 --- a/packages/rum-react/src/domain/error/addReactError.ts +++ b/packages/rum-react/src/domain/error/addReactError.ts @@ -2,6 +2,10 @@ import type { ErrorInfo } from 'react' import { callMonitored, clocksNow, createHandlingStack } from '@datadog/browser-core' import { onRumStart } from '../reactPlugin' +/** + * Reports an error originating from React (Error Boundary or `componentDidCatch`) + * to Datadog RUM with relevant context and stack information. + */ export function addReactError(error: Error, info: ErrorInfo) { const handlingStack = createHandlingStack('react error') const startClocks = clocksNow() diff --git a/packages/rum-react/src/domain/error/errorBoundary.ts b/packages/rum-react/src/domain/error/errorBoundary.ts index 920a565fbc..58360b50d1 100644 --- a/packages/rum-react/src/domain/error/errorBoundary.ts +++ b/packages/rum-react/src/domain/error/errorBoundary.ts @@ -2,11 +2,24 @@ import React from 'react' import type { ErrorInfo } from 'react' import { addReactError } from './addReactError' +/** + * React Error Boundary that captures uncaught errors thrown by its children + * and reports them as RUM *Error* events. + * + * @public + */ interface Props { + /** React component rendered when an error is caught. */ fallback: Fallback + /** Elements to render inside the boundary. */ children: React.ReactNode } +/** + * Signature of the fallback component rendered by {@link ErrorBoundary} when an + * error occurs. + * + */ export type Fallback = React.ComponentType<{ error: Error; resetError: () => void }> type State = @@ -21,6 +34,10 @@ type State = const INITIAL_STATE: State = { didCatch: false, error: null } +/** + * A React Error Boundary that captures runtime errors in its child components + * and reports them to Datadog RUM, rendering the `fallback` component when an error occurs. + */ // eslint-disable-next-line no-restricted-syntax export class ErrorBoundary extends React.Component { constructor(props: Props) { diff --git a/packages/rum-react/src/domain/performance/reactComponentTracker.tsx b/packages/rum-react/src/domain/performance/reactComponentTracker.tsx index a070e01ff9..2ce7a363e1 100644 --- a/packages/rum-react/src/domain/performance/reactComponentTracker.tsx +++ b/packages/rum-react/src/domain/performance/reactComponentTracker.tsx @@ -2,6 +2,10 @@ import * as React from 'react' import { createTimer } from './timer' import { addDurationVital } from './addDurationVital' +/** + * Experimental component that tracks the render lifecycle of its children + * and reports a duration vital named `reactComponentRender`. + */ // eslint-disable-next-line export const UNSTABLE_ReactComponentTracker = ({ name: componentName, diff --git a/packages/rum-react/src/domain/reactPlugin.ts b/packages/rum-react/src/domain/reactPlugin.ts index a35c122240..c49de36cda 100644 --- a/packages/rum-react/src/domain/reactPlugin.ts +++ b/packages/rum-react/src/domain/reactPlugin.ts @@ -9,13 +9,25 @@ type StartSubscriber = (strategy: Strategy) => void const onRumInitSubscribers: InitSubscriber[] = [] const onRumStartSubscribers: StartSubscriber[] = [] +/** + * Configuration options for the React integration plugin. + * + * @public + */ export interface ReactPluginConfiguration { /** - * Enable react-router integration + * Enable react-router integration (v6+). When set, the underlying RUM SDK + * will switch to manual view tracking so that view updates follow your SPA + * routing logic. */ router?: boolean } +/** + * Factory function that creates the React plugin for Datadog RUM, + * enabling features like ErrorBoundary integration, optional react-router view tracking, + * and component performance tracking utilities. + */ export function reactPlugin(configuration: ReactPluginConfiguration = {}) { return { name: 'react', diff --git a/packages/rum-react/src/entries/main.ts b/packages/rum-react/src/entries/main.ts index b188d536c4..5fdd91b09f 100644 --- a/packages/rum-react/src/entries/main.ts +++ b/packages/rum-react/src/entries/main.ts @@ -1,3 +1,11 @@ +/** + * @packageDocumentation + * Datadog Browser RUM React Integration - Additional components and hooks for React applications. + * Provides React-specific features like Error Boundaries and component performance tracking. + * + * @see {@link https://docs.datadoghq.com/real_user_monitoring/browser/advanced_configuration/#react | RUM React Integration} + */ + export { ErrorBoundary, addReactError } from '../domain/error' export { reactPlugin } from '../domain/reactPlugin' // eslint-disable-next-line camelcase diff --git a/packages/rum-slim/api-extractor.json b/packages/rum-slim/api-extractor.json new file mode 100644 index 0000000000..63502c1b6c --- /dev/null +++ b/packages/rum-slim/api-extractor.json @@ -0,0 +1,36 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./esm/entries/main.d.ts", + "compiler": { + "tsconfigFilePath": "./tsconfig.esm.json" + }, + "dtsRollup": { + "enabled": false + }, + "apiReport": { + "enabled": false + }, + "bundledPackages": ["@datadog/browser-rum-slim"], + "docModel": { + "enabled": true, + "apiJsonFilePath": "/etc/.api.json" + }, + "messages": { + "compilerMessageReporting": { + "default": { + "logLevel": "warning" + } + }, + "extractorMessageReporting": { + "default": { + "logLevel": "warning", + "addToApiReportFile": false + } + }, + "tsdocMessageReporting": { + "default": { + "logLevel": "warning" + } + } + } +} diff --git a/packages/rum-slim/src/entries/main.ts b/packages/rum-slim/src/entries/main.ts index 128d227535..670fbf80e5 100644 --- a/packages/rum-slim/src/entries/main.ts +++ b/packages/rum-slim/src/entries/main.ts @@ -1,4 +1,11 @@ -// Keep the following in sync with packages/rum/src/entries/main.ts +/** + * @packageDocumentation + * Datadog Browser RUM SDK - Slim version without Session Replay and Real User Profiling. + * Lightweight alternative for basic RUM monitoring with reduced bundle size. + * + * @see {@link https://docs.datadoghq.com/real_user_monitoring/browser/ | RUM Browser Monitoring Setup} + */ + import { defineGlobal, getGlobalObject } from '@datadog/browser-core' import type { RumPublicApi } from '@datadog/browser-rum-core' import { makeRumPublicApi, startRum } from '@datadog/browser-rum-core' @@ -28,6 +35,10 @@ export type { } from '@datadog/browser-rum-core' export { DefaultPrivacyLevel } from '@datadog/browser-core' +/** + * The global RUM instance (slim version without Session Replay and Profiling). Use this to call RUM methods. + * @see {@link https://docs.datadoghq.com/real_user_monitoring/browser/ | RUM Browser Monitoring Setup} + */ export const datadogRum = makeRumPublicApi(startRum, makeRecorderApiStub(), makeProfilerApiStub()) interface BrowserWindow extends Window { diff --git a/packages/rum/api-extractor.json b/packages/rum/api-extractor.json new file mode 100644 index 0000000000..4ae766e76f --- /dev/null +++ b/packages/rum/api-extractor.json @@ -0,0 +1,36 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./esm/entries/main.d.ts", + "compiler": { + "tsconfigFilePath": "./tsconfig.esm.json" + }, + "dtsRollup": { + "enabled": false + }, + "apiReport": { + "enabled": false + }, + "bundledPackages": ["@datadog/browser-rum-core"], + "docModel": { + "enabled": true, + "apiJsonFilePath": "/etc/.api.json" + }, + "messages": { + "compilerMessageReporting": { + "default": { + "logLevel": "warning" + } + }, + "extractorMessageReporting": { + "default": { + "logLevel": "warning", + "addToApiReportFile": false + } + }, + "tsdocMessageReporting": { + "default": { + "logLevel": "warning" + } + } + } +} diff --git a/packages/rum/src/entries/main.ts b/packages/rum/src/entries/main.ts index 7a49f92fbd..ec467de6ab 100644 --- a/packages/rum/src/entries/main.ts +++ b/packages/rum/src/entries/main.ts @@ -1,3 +1,11 @@ +/** + * @packageDocumentation + * Datadog Browser RUM SDK - Full version with Session Replay and Real User Profiling capabilities. + * Use this package to monitor your web application's performance and user experience. + * + * @see {@link https://docs.datadoghq.com/real_user_monitoring/browser/ | RUM Browser Monitoring Setup} + */ + // Keep the following in sync with packages/rum-slim/src/entries/main.ts import { defineGlobal, getGlobalObject } from '@datadog/browser-core' import type { RumPublicApi } from '@datadog/browser-rum-core' @@ -34,6 +42,10 @@ const recorderApi = makeRecorderApi(lazyLoadRecorder) const profilerApi = makeProfilerApi() +/** + * The global RUM instance. Use this to call RUM methods. + * @see {@link https://docs.datadoghq.com/real_user_monitoring/browser/ | RUM Browser Monitoring Setup} + */ export const datadogRum = makeRumPublicApi(startRum, recorderApi, profilerApi, { startDeflateWorker, createDeflateEncoder, diff --git a/scripts/docs-jekyll.js b/scripts/docs-jekyll.js new file mode 100644 index 0000000000..fb7cfc90c3 --- /dev/null +++ b/scripts/docs-jekyll.js @@ -0,0 +1,66 @@ +const fs = require('fs') +const path = require('path') +const { globSync } = require('glob') + +const DOCS_DIR = path.join(__dirname, '..', 'docs') +let navOrder = 1 + +function titleFromContent(content, fallback) { + const m = content.match(/^#{1,2}\s+(.+)$/m) + return m ? m[1].replace(/[<>]/g, '') : fallback +} + +function addJekyllFrontMatter(content, filename) { + const title = titleFromContent(content, path.basename(filename, '.md')) + return ( + `---\n` + + `layout: default\n` + + `title: "${title}"\n` + + `nav_order: ${navOrder++}\n` + + `permalink: /${filename.replace('.md', '.html')}\n` + + `---\n\n` + + content + ) +} + +function cleanMarkdownForJekyll(md) { + return md + .replace(/_\(Optional\)_/g, '(Optional)') + .replace(/\[([^\]]+)]\(\s*(https?:\/\/[^\s)]+?)\s*\)/g, (_, label, rawUrl) => { + const url = rawUrl.replace(/\\([)#])/g, '$1') + return `${label}` + }) + .replace( + /\[([^\]]+)]\(\s*(?:\{\{\s*["']?\/([^"')]+\.html)["']?\s*\|\s*relative_url\s*}}|\/([^)]+\.html)|\.\/([^)]+?)(?:\.md|\.html))\s*\)/g, + (_, txt, f1, f2, f3) => { + const file = (f1 || f2 || f3).replace(/\.md$/, '.html') + return `${txt}` + } + ) + .replace(/\\([_*`\\])/g, '$1') + .replace(/\\\|/g, '|') +} + +function processDocFile(file) { + let content = fs.readFileSync(file, 'utf8') + content = cleanMarkdownForJekyll(content) + content = addJekyllFrontMatter(content, path.basename(file)) + fs.writeFileSync(file, content, 'utf8') +} + +function cleanupMarkdownFiles() { + globSync(`${DOCS_DIR}/*.md`) + .filter((f) => !f.endsWith('index.md')) + .forEach((f) => { + fs.unlinkSync(f) + }) +} + +function main() { + const files = globSync(`${DOCS_DIR}/*.md`) + files.forEach(processDocFile) + if (process.env.CLEANUP_MD === 'true') cleanupMarkdownFiles() +} + +if (require.main === module) main() +module.exports = { addJekyllFrontMatter, cleanMarkdownForJekyll } diff --git a/yarn.lock b/yarn.lock index d0c49f7d65..8d58388299 100644 --- a/yarn.lock +++ b/yarn.lock @@ -831,6 +831,105 @@ __metadata: languageName: node linkType: hard +"@microsoft/api-documenter@npm:7.25.9": + version: 7.25.9 + resolution: "@microsoft/api-documenter@npm:7.25.9" + dependencies: + "@microsoft/api-extractor-model": "npm:7.29.4" + "@microsoft/tsdoc": "npm:~0.15.0" + "@rushstack/node-core-library": "npm:5.5.1" + "@rushstack/terminal": "npm:0.13.3" + "@rushstack/ts-command-line": "npm:4.22.3" + js-yaml: "npm:~3.13.1" + resolve: "npm:~1.22.1" + bin: + api-documenter: bin/api-documenter + checksum: 10c0/b5c7efa3af0dda152d99f24114e2218a5c7daed6c155585cc51817bcf19e51e28297867981ec2cd44d5e59479e1c6946e45fb440a2d227d423bd2eef70491360 + languageName: node + linkType: hard + +"@microsoft/api-extractor-model@npm:7.28.2": + version: 7.28.2 + resolution: "@microsoft/api-extractor-model@npm:7.28.2" + dependencies: + "@microsoft/tsdoc": "npm:0.14.2" + "@microsoft/tsdoc-config": "npm:~0.16.1" + "@rushstack/node-core-library": "npm:3.61.0" + checksum: 10c0/b97cfd8b8968143ef2deea25cfefab84d6d064b9378a04270e2a6f7e00ea4a781876264ddc51835ffda9eedb6962403afbe01b4447ffe42388a065cd42532a31 + languageName: node + linkType: hard + +"@microsoft/api-extractor-model@npm:7.29.4": + version: 7.29.4 + resolution: "@microsoft/api-extractor-model@npm:7.29.4" + dependencies: + "@microsoft/tsdoc": "npm:~0.15.0" + "@microsoft/tsdoc-config": "npm:~0.17.0" + "@rushstack/node-core-library": "npm:5.5.1" + checksum: 10c0/daa657d2b6ab7cdf711a7b59306a8bd29d637ac8460795a177f186ef9691bfc3d9d1a2f0300a2dc28b37e80cc04e35d810dd0e24a92d8b3968ac51689e532ab5 + languageName: node + linkType: hard + +"@microsoft/api-extractor@npm:7.38.0": + version: 7.38.0 + resolution: "@microsoft/api-extractor@npm:7.38.0" + dependencies: + "@microsoft/api-extractor-model": "npm:7.28.2" + "@microsoft/tsdoc": "npm:0.14.2" + "@microsoft/tsdoc-config": "npm:~0.16.1" + "@rushstack/node-core-library": "npm:3.61.0" + "@rushstack/rig-package": "npm:0.5.1" + "@rushstack/ts-command-line": "npm:4.16.1" + colors: "npm:~1.2.1" + lodash: "npm:~4.17.15" + resolve: "npm:~1.22.1" + semver: "npm:~7.5.4" + source-map: "npm:~0.6.1" + typescript: "npm:~5.0.4" + bin: + api-extractor: bin/api-extractor + checksum: 10c0/3bb4336efdbcad1d0c789dbdd9d85a3d3142a733c66b7cf3136d7a3404bb3ba440bb9e077fa927c981447ca5f8bc76d0fb790b2385b7b66a01c05fe41e2fb59c + languageName: node + linkType: hard + +"@microsoft/tsdoc-config@npm:~0.16.1": + version: 0.16.2 + resolution: "@microsoft/tsdoc-config@npm:0.16.2" + dependencies: + "@microsoft/tsdoc": "npm:0.14.2" + ajv: "npm:~6.12.6" + jju: "npm:~1.4.0" + resolve: "npm:~1.19.0" + checksum: 10c0/9e8c176b68f01c8bb38e6365d5b543e471bba59fced6070d9bd35b32461fbd650c2e1a6f686e8dca0cf22bc5e7d796e4213e66bce4426c8cb9864c1f6ca6836c + languageName: node + linkType: hard + +"@microsoft/tsdoc-config@npm:~0.17.0": + version: 0.17.1 + resolution: "@microsoft/tsdoc-config@npm:0.17.1" + dependencies: + "@microsoft/tsdoc": "npm:0.15.1" + ajv: "npm:~8.12.0" + jju: "npm:~1.4.0" + resolve: "npm:~1.22.2" + checksum: 10c0/a686355796f492f27af17e2a17d615221309caf4d9f9047a5a8f17f8625c467c4c81e2a7923ddafd71b892631d5e5013c4b8cc49c5867d3cc1d260fd90c1413d + languageName: node + linkType: hard + +"@microsoft/tsdoc@npm:0.14.2": + version: 0.14.2 + resolution: "@microsoft/tsdoc@npm:0.14.2" + checksum: 10c0/c018857ad439144559ce34a397a29ace7cf5b24b999b8e3c1b88d878338088b3a453eaac4435beaf2c7eae13c4c0aac81e42f96f0f1d48e8d4eeb438eb3bb82f + languageName: node + linkType: hard + +"@microsoft/tsdoc@npm:0.15.1, @microsoft/tsdoc@npm:~0.15.0": + version: 0.15.1 + resolution: "@microsoft/tsdoc@npm:0.15.1" + checksum: 10c0/09948691fac56c45a0d1920de478d66a30371a325bd81addc92eea5654d95106ce173c440fea1a1bd5bb95b3a544b6d4def7bb0b5a846c05d043575d8369a20c + languageName: node + linkType: hard + "@modelcontextprotocol/sdk@npm:^1.8.0": version: 1.11.2 resolution: "@modelcontextprotocol/sdk@npm:1.11.2" @@ -1382,6 +1481,96 @@ __metadata: languageName: node linkType: hard +"@rushstack/node-core-library@npm:3.61.0": + version: 3.61.0 + resolution: "@rushstack/node-core-library@npm:3.61.0" + dependencies: + colors: "npm:~1.2.1" + fs-extra: "npm:~7.0.1" + import-lazy: "npm:~4.0.0" + jju: "npm:~1.4.0" + resolve: "npm:~1.22.1" + semver: "npm:~7.5.4" + z-schema: "npm:~5.0.2" + peerDependencies: + "@types/node": "*" + peerDependenciesMeta: + "@types/node": + optional: true + checksum: 10c0/6ae8205e57b13b2898fcc07754a70d2c716ecd5c853310a7a75c6321c1f1be79695eb7571d975243f2f83df1ba5d15342c0fa50715b8f146f7ae544f94d89eb6 + languageName: node + linkType: hard + +"@rushstack/node-core-library@npm:5.5.1": + version: 5.5.1 + resolution: "@rushstack/node-core-library@npm:5.5.1" + dependencies: + ajv: "npm:~8.13.0" + ajv-draft-04: "npm:~1.0.0" + ajv-formats: "npm:~3.0.1" + fs-extra: "npm:~7.0.1" + import-lazy: "npm:~4.0.0" + jju: "npm:~1.4.0" + resolve: "npm:~1.22.1" + semver: "npm:~7.5.4" + peerDependencies: + "@types/node": "*" + peerDependenciesMeta: + "@types/node": + optional: true + checksum: 10c0/cd433fe0857f1a827910ffa97670df161bc2dc25255252a1cb23f2e7796b8000ac3c39df6723b1d31cf9629ad348291ba1591da3a200a9ff754ca266b785f010 + languageName: node + linkType: hard + +"@rushstack/rig-package@npm:0.5.1": + version: 0.5.1 + resolution: "@rushstack/rig-package@npm:0.5.1" + dependencies: + resolve: "npm:~1.22.1" + strip-json-comments: "npm:~3.1.1" + checksum: 10c0/a296125a5170dd11c37c3d679eb6e61db4d0c0741b3947902d9eab34e9ff34d5d8e94fbf6b45757141ea077029490198b7eb35d311ba46eaac5e1d4145e9780c + languageName: node + linkType: hard + +"@rushstack/terminal@npm:0.13.3": + version: 0.13.3 + resolution: "@rushstack/terminal@npm:0.13.3" + dependencies: + "@rushstack/node-core-library": "npm:5.5.1" + supports-color: "npm:~8.1.1" + peerDependencies: + "@types/node": "*" + peerDependenciesMeta: + "@types/node": + optional: true + checksum: 10c0/dced0c935672c73787e277dacc2b8b826496c6f85d4f4ff24cce73ebbfd3ad1c0bb7e6dda46a918527da3024779ffd61aa35c5b91ad06b0044b0b51dbec7d726 + languageName: node + linkType: hard + +"@rushstack/ts-command-line@npm:4.16.1": + version: 4.16.1 + resolution: "@rushstack/ts-command-line@npm:4.16.1" + dependencies: + "@types/argparse": "npm:1.0.38" + argparse: "npm:~1.0.9" + colors: "npm:~1.2.1" + string-argv: "npm:~0.3.1" + checksum: 10c0/aa77950c72085f0571ffa9bbe18649f86a8d0da7918ee6cbce67de073aad5a7e2643c80aea485b852e474d08de12c0aeaece6efd942b8045d66733dca88d3108 + languageName: node + linkType: hard + +"@rushstack/ts-command-line@npm:4.22.3": + version: 4.22.3 + resolution: "@rushstack/ts-command-line@npm:4.22.3" + dependencies: + "@rushstack/terminal": "npm:0.13.3" + "@types/argparse": "npm:1.0.38" + argparse: "npm:~1.0.9" + string-argv: "npm:~0.3.1" + checksum: 10c0/02b318832d80829b749e7123511f3828945bca4cd07e59d4afbfc07c5140acbf9cab28b1f36c1023f14c16280fdb992198b132a679e4d240710fc02138a0ba3a + languageName: node + linkType: hard + "@sigstore/bundle@npm:^2.3.2": version: 2.3.2 resolution: "@sigstore/bundle@npm:2.3.2" @@ -1665,6 +1854,13 @@ __metadata: languageName: node linkType: hard +"@types/argparse@npm:1.0.38": + version: 1.0.38 + resolution: "@types/argparse@npm:1.0.38" + checksum: 10c0/4fc892da5df16923f48180da2d1f4562fa8b0507cf636b24780444fa0a1d7321d4dc0c0ecbee6152968823f5a2ae0d321b4f8c705a489bf1ae1245bdeb0868fd + languageName: node + linkType: hard + "@types/body-parser@npm:*": version: 1.19.5 resolution: "@types/body-parser@npm:1.19.5" @@ -2461,6 +2657,18 @@ __metadata: languageName: node linkType: hard +"ajv-draft-04@npm:~1.0.0": + version: 1.0.0 + resolution: "ajv-draft-04@npm:1.0.0" + peerDependencies: + ajv: ^8.5.0 + peerDependenciesMeta: + ajv: + optional: true + checksum: 10c0/6044310bd38c17d77549fd326bd40ce1506fa10b0794540aa130180808bf94117fac8c9b448c621512bea60e4a947278f6a978e87f10d342950c15b33ddd9271 + languageName: node + linkType: hard + "ajv-formats@npm:^2.1.1": version: 2.1.1 resolution: "ajv-formats@npm:2.1.1" @@ -2475,6 +2683,20 @@ __metadata: languageName: node linkType: hard +"ajv-formats@npm:~3.0.1": + version: 3.0.1 + resolution: "ajv-formats@npm:3.0.1" + dependencies: + ajv: "npm:^8.0.0" + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + checksum: 10c0/168d6bca1ea9f163b41c8147bae537e67bd963357a5488a1eaf3abe8baa8eec806d4e45f15b10767e6020679315c7e1e5e6803088dfb84efa2b4e9353b83dd0a + languageName: node + linkType: hard + "ajv-keywords@npm:^3.5.2": version: 3.5.2 resolution: "ajv-keywords@npm:3.5.2" @@ -2507,7 +2729,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^6.12.4, ajv@npm:^6.12.6": +"ajv@npm:^6.12.4, ajv@npm:^6.12.6, ajv@npm:~6.12.6": version: 6.12.6 resolution: "ajv@npm:6.12.6" dependencies: @@ -2519,6 +2741,30 @@ __metadata: languageName: node linkType: hard +"ajv@npm:~8.12.0": + version: 8.12.0 + resolution: "ajv@npm:8.12.0" + dependencies: + fast-deep-equal: "npm:^3.1.1" + json-schema-traverse: "npm:^1.0.0" + require-from-string: "npm:^2.0.2" + uri-js: "npm:^4.2.2" + checksum: 10c0/ac4f72adf727ee425e049bc9d8b31d4a57e1c90da8d28bcd23d60781b12fcd6fc3d68db5df16994c57b78b94eed7988f5a6b482fd376dc5b084125e20a0a622e + languageName: node + linkType: hard + +"ajv@npm:~8.13.0": + version: 8.13.0 + resolution: "ajv@npm:8.13.0" + dependencies: + fast-deep-equal: "npm:^3.1.3" + json-schema-traverse: "npm:^1.0.0" + require-from-string: "npm:^2.0.2" + uri-js: "npm:^4.4.1" + checksum: 10c0/14c6497b6f72843986d7344175a1aa0e2c35b1e7f7475e55bc582cddb765fca7e6bf950f465dc7846f817776d9541b706f4b5b3fbedd8dfdeb5fce6f22864264 + languageName: node + linkType: hard + "ansi-colors@npm:^4.1.1": version: 4.1.3 resolution: "ansi-colors@npm:4.1.3" @@ -2619,7 +2865,7 @@ __metadata: languageName: node linkType: hard -"argparse@npm:^1.0.7": +"argparse@npm:^1.0.7, argparse@npm:~1.0.9": version: 1.0.10 resolution: "argparse@npm:1.0.10" dependencies: @@ -3011,6 +3257,8 @@ __metadata: dependencies: "@eslint/js": "npm:9.26.0" "@jsdevtools/coverage-istanbul-loader": "npm:3.0.5" + "@microsoft/api-documenter": "npm:7.25.9" + "@microsoft/api-extractor": "npm:7.38.0" "@playwright/test": "npm:1.52.0" "@swc/core": "npm:1.11.24" "@types/chrome": "npm:0.0.321" @@ -3563,6 +3811,13 @@ __metadata: languageName: node linkType: hard +"colors@npm:~1.2.1": + version: 1.2.5 + resolution: "colors@npm:1.2.5" + checksum: 10c0/f4acebf2d2da9b4f8afb770361d14c01034bcb43add4cae493e7d186dcd7e0c5e2b440520fbfdf636e872606a0eb86b1f69fcf2f087df2876a4e222612539ee0 + languageName: node + linkType: hard + "columnify@npm:1.6.0": version: 1.6.0 resolution: "columnify@npm:1.6.0" @@ -3603,6 +3858,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^9.4.1": + version: 9.5.0 + resolution: "commander@npm:9.5.0" + checksum: 10c0/5f7784fbda2aaec39e89eb46f06a999e00224b3763dc65976e05929ec486e174fe9aac2655f03ba6a5e83875bd173be5283dc19309b7c65954701c02025b3c1d + languageName: node + linkType: hard + "comment-parser@npm:1.4.1": version: 1.4.1 resolution: "comment-parser@npm:1.4.1" @@ -5552,6 +5814,17 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:~7.0.1": + version: 7.0.1 + resolution: "fs-extra@npm:7.0.1" + dependencies: + graceful-fs: "npm:^4.1.2" + jsonfile: "npm:^4.0.0" + universalify: "npm:^0.1.0" + checksum: 10c0/1943bb2150007e3739921b8d13d4109abdc3cc481e53b97b7ea7f77eda1c3c642e27ae49eac3af074e3496ea02fde30f411ef410c760c70a38b92e656e5da784 + languageName: node + linkType: hard + "fs-minipass@npm:^2.0.0": version: 2.1.0 resolution: "fs-minipass@npm:2.1.0" @@ -6320,6 +6593,13 @@ __metadata: languageName: node linkType: hard +"import-lazy@npm:~4.0.0": + version: 4.0.0 + resolution: "import-lazy@npm:4.0.0" + checksum: 10c0/a3520313e2c31f25c0b06aa66d167f329832b68a4f957d7c9daf6e0fa41822b6e84948191648b9b9d8ca82f94740cdf15eecf2401a5b42cd1c33fd84f2225cca + languageName: node + linkType: hard + "import-local@npm:3.1.0": version: 3.1.0 resolution: "import-local@npm:3.1.0" @@ -6555,7 +6835,7 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.13.0, is-core-module@npm:^2.15.1, is-core-module@npm:^2.16.0, is-core-module@npm:^2.5.0": +"is-core-module@npm:^2.1.0, is-core-module@npm:^2.13.0, is-core-module@npm:^2.15.1, is-core-module@npm:^2.16.0, is-core-module@npm:^2.5.0": version: 2.16.1 resolution: "is-core-module@npm:2.16.1" dependencies: @@ -7027,6 +7307,13 @@ __metadata: languageName: node linkType: hard +"jju@npm:~1.4.0": + version: 1.4.0 + resolution: "jju@npm:1.4.0" + checksum: 10c0/f3f444557e4364cfc06b1abf8331bf3778b26c0c8552ca54429bc0092652172fdea26cbffe33e1017b303d5aa506f7ede8571857400efe459cb7439180e2acad + languageName: node + linkType: hard + "js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" @@ -7057,6 +7344,18 @@ __metadata: languageName: node linkType: hard +"js-yaml@npm:~3.13.1": + version: 3.13.1 + resolution: "js-yaml@npm:3.13.1" + dependencies: + argparse: "npm:^1.0.7" + esprima: "npm:^4.0.0" + bin: + js-yaml: bin/js-yaml.js + checksum: 10c0/6a4f78b998d2eb58964cc5e051c031865bf292dc3c156a8057cf468d9e60a8739f4e8f607a267e97f09eb8d08263b8262df57eddb16b920ec5a04a259c3b4960 + languageName: node + linkType: hard + "jsbn@npm:1.1.0": version: 1.1.0 resolution: "jsbn@npm:1.1.0" @@ -7600,6 +7899,20 @@ __metadata: languageName: node linkType: hard +"lodash.get@npm:^4.4.2": + version: 4.4.2 + resolution: "lodash.get@npm:4.4.2" + checksum: 10c0/48f40d471a1654397ed41685495acb31498d5ed696185ac8973daef424a749ca0c7871bf7b665d5c14f5cc479394479e0307e781f61d5573831769593411be6e + languageName: node + linkType: hard + +"lodash.isequal@npm:^4.5.0": + version: 4.5.0 + resolution: "lodash.isequal@npm:4.5.0" + checksum: 10c0/dfdb2356db19631a4b445d5f37868a095e2402292d59539a987f134a8778c62a2810c2452d11ae9e6dcac71fc9de40a6fedcb20e2952a15b431ad8b29e50e28f + languageName: node + linkType: hard + "lodash.ismatch@npm:^4.4.0": version: 4.4.0 resolution: "lodash.ismatch@npm:4.4.0" @@ -7614,7 +7927,7 @@ __metadata: languageName: node linkType: hard -"lodash@npm:^4.17.15, lodash@npm:^4.17.20, lodash@npm:^4.17.21": +"lodash@npm:^4.17.15, lodash@npm:^4.17.20, lodash@npm:^4.17.21, lodash@npm:~4.17.15": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: 10c0/d8cbea072bb08655bb4c989da418994b073a608dffa608b09ac04b43a791b12aeae7cd7ad919aa4c925f33b48490b5cfe6c1f71d827956071dae2e7bb3a6b74c @@ -9207,7 +9520,7 @@ __metadata: languageName: node linkType: hard -"path-parse@npm:^1.0.7": +"path-parse@npm:^1.0.6, path-parse@npm:^1.0.7": version: 1.0.7 resolution: "path-parse@npm:1.0.7" checksum: 10c0/11ce261f9d294cc7a58d6a574b7f1b935842355ec66fba3c3fd79e0f036462eaf07d0aa95bb74ff432f9afef97ce1926c720988c6a7451d8a584930ae7de86e1 @@ -10187,7 +10500,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.10.0, resolve@npm:^1.20.0, resolve@npm:^1.22.4": +"resolve@npm:^1.10.0, resolve@npm:^1.20.0, resolve@npm:^1.22.4, resolve@npm:~1.22.1, resolve@npm:~1.22.2": version: 1.22.10 resolution: "resolve@npm:1.22.10" dependencies: @@ -10200,7 +10513,17 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": +"resolve@npm:~1.19.0": + version: 1.19.0 + resolution: "resolve@npm:1.19.0" + dependencies: + is-core-module: "npm:^2.1.0" + path-parse: "npm:^1.0.6" + checksum: 10c0/1c8afdfb88c9adab0a19b6f16756d47f5917f64047bf5a38c17aa543aae5ccca2a0631671b19ce8460a7a3e65ead98ee70e046d3056ec173d3377a27487848a8 + languageName: node + linkType: hard + +"resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin, resolve@patch:resolve@npm%3A~1.22.1#optional!builtin, resolve@patch:resolve@npm%3A~1.22.2#optional!builtin": version: 1.22.10 resolution: "resolve@patch:resolve@npm%3A1.22.10#optional!builtin::version=1.22.10&hash=c3c19d" dependencies: @@ -10213,6 +10536,16 @@ __metadata: languageName: node linkType: hard +"resolve@patch:resolve@npm%3A~1.19.0#optional!builtin": + version: 1.19.0 + resolution: "resolve@patch:resolve@npm%3A1.19.0#optional!builtin::version=1.19.0&hash=c3c19d" + dependencies: + is-core-module: "npm:^2.1.0" + path-parse: "npm:^1.0.6" + checksum: 10c0/254980f60dd9fdb28b34a511e70df6e3027d9627efce86a40757eea9b87252d172829c84517554560c4541ebfe207868270c19a0f086997b41209367aa8ef74f + languageName: node + linkType: hard + "restore-cursor@npm:^3.1.0": version: 3.1.0 resolution: "restore-cursor@npm:3.1.0" @@ -10438,6 +10771,17 @@ __metadata: languageName: node linkType: hard +"semver@npm:~7.5.4": + version: 7.5.4 + resolution: "semver@npm:7.5.4" + dependencies: + lru-cache: "npm:^6.0.0" + bin: + semver: bin/semver.js + checksum: 10c0/5160b06975a38b11c1ab55950cb5b8a23db78df88275d3d8a42ccf1f29e55112ac995b3a26a522c36e3b5f76b0445f1eef70d696b8c7862a2b4303d7b0e7609e + languageName: node + linkType: hard + "send@npm:^1.1.0, send@npm:^1.2.0": version: 1.2.0 resolution: "send@npm:1.2.0" @@ -10928,6 +11272,13 @@ __metadata: languageName: node linkType: hard +"string-argv@npm:~0.3.1": + version: 0.3.2 + resolution: "string-argv@npm:0.3.2" + checksum: 10c0/75c02a83759ad1722e040b86823909d9a2fc75d15dd71ec4b537c3560746e33b5f5a07f7332d1e3f88319909f82190843aa2f0a0d8c8d591ec08e93d5b8dec82 + languageName: node + linkType: hard + "string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": version: 4.2.3 resolution: "string-width@npm:4.2.3" @@ -11075,7 +11426,7 @@ __metadata: languageName: node linkType: hard -"strip-json-comments@npm:^3.1.1": +"strip-json-comments@npm:^3.1.1, strip-json-comments@npm:~3.1.1": version: 3.1.1 resolution: "strip-json-comments@npm:3.1.1" checksum: 10c0/9681a6257b925a7fa0f285851c0e613cc934a50661fa7bb41ca9cbbff89686bb4a0ee366e6ecedc4daafd01e83eee0720111ab294366fe7c185e935475ebcecd @@ -11122,7 +11473,7 @@ __metadata: languageName: node linkType: hard -"supports-color@npm:^8.0.0": +"supports-color@npm:^8.0.0, supports-color@npm:~8.1.1": version: 8.1.1 resolution: "supports-color@npm:8.1.1" dependencies: @@ -11713,6 +12064,16 @@ __metadata: languageName: node linkType: hard +"typescript@npm:~5.0.4": + version: 5.0.4 + resolution: "typescript@npm:5.0.4" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/2f5bd1cead194905957cb34e220b1d6ff1662399adef8ec1864f74620922d860ee35b6e50eafb3b636ea6fd437195e454e1146cb630a4236b5095ed7617395c2 + languageName: node + linkType: hard + "typescript@patch:typescript@npm%3A5.8.3#optional!builtin, typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin": version: 5.8.3 resolution: "typescript@patch:typescript@npm%3A5.8.3#optional!builtin::version=5.8.3&hash=5786d5" @@ -11723,6 +12084,16 @@ __metadata: languageName: node linkType: hard +"typescript@patch:typescript@npm%3A~5.0.4#optional!builtin": + version: 5.0.4 + resolution: "typescript@patch:typescript@npm%3A5.0.4#optional!builtin::version=5.0.4&hash=b5f058" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/c3f7b80577bddf6fab202a7925131ac733bfc414aec298c2404afcddc7a6f242cfa8395cf2d48192265052e11a7577c27f6e5fac8d8fe6a6602023c83d6b3292 + languageName: node + linkType: hard + "ua-parser-js@npm:^0.7.30": version: 0.7.40 resolution: "ua-parser-js@npm:0.7.40" @@ -11845,7 +12216,7 @@ __metadata: languageName: node linkType: hard -"uri-js@npm:^4.2.2": +"uri-js@npm:^4.2.2, uri-js@npm:^4.4.1": version: 4.4.1 resolution: "uri-js@npm:4.4.1" dependencies: @@ -11977,6 +12348,13 @@ __metadata: languageName: node linkType: hard +"validator@npm:^13.7.0": + version: 13.15.0 + resolution: "validator@npm:13.15.0" + checksum: 10c0/0f13fd7031ac575e8d7828431da8ef5859bac6a38ee65e1d7fdd367dbf1c3d94d95182aecc3183f7fa7a30ff4474bf864d1aff54707620227a2cdbfd36d894c2 + languageName: node + linkType: hard + "vary@npm:^1, vary@npm:^1.1.2": version: 1.1.2 resolution: "vary@npm:1.1.2" @@ -12517,6 +12895,23 @@ __metadata: languageName: node linkType: hard +"z-schema@npm:~5.0.2": + version: 5.0.5 + resolution: "z-schema@npm:5.0.5" + dependencies: + commander: "npm:^9.4.1" + lodash.get: "npm:^4.4.2" + lodash.isequal: "npm:^4.5.0" + validator: "npm:^13.7.0" + dependenciesMeta: + commander: + optional: true + bin: + z-schema: bin/z-schema + checksum: 10c0/e4c812cfe6468c19b2a21d07d4ff8fb70359062d33400b45f89017eaa3efe9d51e85963f2b115eaaa99a16b451782249bf9b1fa8b31d35cc473e7becb3e44264 + languageName: node + linkType: hard + "zod-to-json-schema@npm:^3.24.1": version: 3.24.5 resolution: "zod-to-json-schema@npm:3.24.5"