From 3a296d623c78f303dc06132dcf5b6d50b5b1e747 Mon Sep 17 00:00:00 2001 From: niuweili <957905827@qq.com> Date: Thu, 15 May 2025 14:16:49 +0800 Subject: [PATCH 1/2] rename flashcat --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/ISSUE_TEMPLATE/feature_request.md | 2 +- .github/ISSUE_TEMPLATE/support-needed.md | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .gitmodules | 2 +- CONTRIBUTING.md | 2 +- README.md | 90 +++++++++---------- developer-extension/README.md | 95 --------------------- developer-extension/src/panel/monitoring.ts | 14 ++- packages/core/README.md | 2 +- packages/logs/README.md | 22 +++-- packages/logs/src/entries/main.ts | 6 +- packages/rum-core/README.md | 2 +- packages/rum-react/README.md | 30 +++---- packages/rum/README.md | 16 ++-- packages/worker/README.md | 2 +- performances/README.md | 4 +- test/app/app.ts | 10 +-- 18 files changed, 99 insertions(+), 206 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index acdd346d02..53071509b1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -7,7 +7,7 @@ assignees: '' --- - + **Describe the bug** diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index aff630fa6f..ee5b76d35e 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -6,4 +6,4 @@ labels: enhancement assignees: '' --- -Please contact [support](https://www.datadoghq.com/support/) to open a feature request. +Please contact [support](https://flashcat.cloud/about/) to open a feature request. diff --git a/.github/ISSUE_TEMPLATE/support-needed.md b/.github/ISSUE_TEMPLATE/support-needed.md index f938c698a1..837c3c6e2d 100644 --- a/.github/ISSUE_TEMPLATE/support-needed.md +++ b/.github/ISSUE_TEMPLATE/support-needed.md @@ -7,7 +7,7 @@ assignees: '' --- - + **What are you trying to achieve and what is your issue? Please describe.** diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 62fa9145b6..3219bf5ce0 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -17,4 +17,4 @@ --- -I have gone over the [contributing](https://github.com/DataDog/browser-sdk/blob/main/CONTRIBUTING.md) documentation. +I have gone over the [contributing](https://github.com/flashcatcloud/browser-sdk/blob/main/CONTRIBUTING.md) documentation. diff --git a/.gitmodules b/.gitmodules index 56d90933b5..a60512ad5c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "rum-events-format"] path = rum-events-format - url = https://github.com/DataDog/rum-events-format + url = https://github.com/flashcatcloud/rum-events-format branch = master diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 19b8c49ba3..019cd9a2a0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -63,5 +63,5 @@ label our Commit messages and Pull Request titles: 👌 - Updating code due to code review changes. -[1]: https://docs.datadoghq.com/help/ +[1]: https://flashcat.cloud/contact/ [2]: https://gitmoji.carloscuesta.me/ diff --git a/README.md b/README.md index bf7bcf4c81..ffe12c7941 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,7 @@ Collect and send browser data to Datadog. ## Getting Started -### Log collection - -See the dedicated [Datadog Browser Log Collection documentation][08] to learn how to forward logs from your browser application to Datadog. - -### Real User Monitoring - -See the dedicated [Datadog Browser RUM Collection documentation][18] to learn how to send RUM data from your browser application to Datadog. +See the dedicated [Flashcat Browser RUM Collection documentation][18] to learn how to send RUM data from your browser application to Flashcat. ## npm packages @@ -25,45 +19,43 @@ This repository contains several packages: | browser-worker | [![npm version][61]][62] | [![bundle size][63]][64] | | browser-core | [![npm version][41]][42] | [![bundle size][43]][44] | -## CDN bundles - -Datadog provides one CDN bundle per [site][70]: - -| Site | logs | rum | rum-slim | -| ------- | -------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------ | -| US1 | https://www.datadoghq-browser-agent.com/us1/v5/datadog-logs.js | https://www.datadoghq-browser-agent.com/us1/v5/datadog-rum.js | https://www.datadoghq-browser-agent.com/us1/v5/datadog-rum-slim.js | -| US3 | https://www.datadoghq-browser-agent.com/us3/v5/datadog-logs.js | https://www.datadoghq-browser-agent.com/us3/v5/datadog-rum.js | https://www.datadoghq-browser-agent.com/us3/v5/datadog-rum-slim.js | -| US5 | https://www.datadoghq-browser-agent.com/us5/v5/datadog-logs.js | https://www.datadoghq-browser-agent.com/us5/v5/datadog-rum.js | https://www.datadoghq-browser-agent.com/us5/v5/datadog-rum-slim.js | -| EU1 | https://www.datadoghq-browser-agent.com/eu1/v5/datadog-logs.js | https://www.datadoghq-browser-agent.com/eu1/v5/datadog-rum.js | https://www.datadoghq-browser-agent.com/eu1/v5/datadog-rum-slim.js | -| US1-FED | https://www.datadoghq-browser-agent.com/datadog-logs-v5.js | https://www.datadoghq-browser-agent.com/datadog-rum-v5.js | https://www.datadoghq-browser-agent.com/datadog-rum-slim-v5.js | - -[1]: https://github.githubassets.com/favicons/favicon.png -[2]: https://imgix.datadoghq.com/img/favicons/favicon-32x32.png -[01]: https://badge.fury.io/js/%40datadog%2Fbrowser-logs.svg -[02]: https://badge.fury.io/js/%40datadog%2Fbrowser-logs - -[03]: https://deno.bundlejs.com/badge?q=@datadog/browser-logs&treeshake=[*] -[04]: https://bundlejs.com/?q=@datadog/browser-logs&treeshake=[*] -[08]: https://docs.datadoghq.com/logs/log_collection/javascript -[11]: https://badge.fury.io/js/%40datadog%2Fbrowser-rum.svg -[12]: https://badge.fury.io/js/%40datadog%2Fbrowser-rum -[13]: https://deno.bundlejs.com/badge?q=@datadog/browser-rum&treeshake=[*] -[14]: https://bundlejs.com/?q=@datadog/browser-rum&treeshake=[*] -[18]: https://docs.datadoghq.com/real_user_monitoring/browser/ -[21]: https://badge.fury.io/js/%40datadog%2Fbrowser-rum-slim.svg -[22]: https://badge.fury.io/js/%40datadog%2Fbrowser-rum-slim -[23]: https://deno.bundlejs.com/badge?q=@datadog/browser-rum-slim&treeshake=[*] -[24]: https://bundlejs.com/?q=@datadog/browser-rum-slim&treeshake=[*] -[41]: https://badge.fury.io/js/%40datadog%2Fbrowser-core.svg -[42]: https://badge.fury.io/js/%40datadog%2Fbrowser-core -[43]: https://deno.bundlejs.com/badge?q=@datadog/browser-core&treeshake=[*] -[44]: https://bundlejs.com/?q=@datadog/browser-core&treeshake=[*] -[51]: https://badge.fury.io/js/%40datadog%2Fbrowser-rum-core.svg -[52]: https://badge.fury.io/js/%40datadog%2Fbrowser-rum-core -[53]: https://deno.bundlejs.com/badge?q=@datadog/browser-rum-core&treeshake=[*] -[54]: https://bundlejs.com/?q=@datadog/browser-rum-core&treeshake=[*] -[61]: https://badge.fury.io/js/%40datadog%2Fbrowser-worker.svg -[62]: https://badge.fury.io/js/%40datadog%2Fbrowser-worker -[63]: https://deno.bundlejs.com/badge?q=@datadog/browser-worker&treeshake=[*] -[64]: https://bundlejs.com/?q=@datadog/browser-worker&treeshake=[*] -[70]: https://docs.datadoghq.com/getting_started/site/ +## CDN bundle + +https://static.flashcat.cloud/browser-sdk/v0/flashcat-rum.js + +## License Information + +This project is based on Datadog Browser SDK, with original copyright owned by Datadog, Inc. + +This project is modified and distributed by flashcat under the Apache License 2.0. + +For complete license information, please refer to the [LICENSE](./LICENSE) file. + +[18]: https://docs.flashcat.cloud/zh/flashduty/rum/introduction + +[01]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-logs.svg +[02]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-logs + +[03]: https://deno.bundlejs.com/badge?q=@flashcatcloud/browser-logs&treeshake=[*] +[04]: https://bundlejs.com/?q=@flashcatcloud/browser-logs&treeshake=[*] +[11]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-rum.svg +[12]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-rum +[13]: https://deno.bundlejs.com/badge?q=@flashcatcloud/browser-rum&treeshake=[*] +[14]: https://bundlejs.com/?q=@flashcatcloud/browser-rum&treeshake=[*] +[21]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-rum-slim.svg +[22]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-rum-slim +[23]: https://deno.bundlejs.com/badge?q=@flashcatcloud/browser-rum-slim&treeshake=[*] +[24]: https://bundlejs.com/?q=@flashcatcloud/browser-rum-slim&treeshake=[*] +[41]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-core.svg +[42]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-core +[43]: https://deno.bundlejs.com/badge?q=@flashcatcloud/browser-core&treeshake=[*] +[44]: https://bundlejs.com/?q=@flashcatcloud/browser-core&treeshake=[*] +[51]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-rum-core.svg +[52]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-rum-core +[53]: https://deno.bundlejs.com/badge?q=@flashcatcloud/browser-rum-core&treeshake=[*] +[54]: https://bundlejs.com/?q=@flashcatcloud/browser-rum-core&treeshake=[*] +[61]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-worker.svg +[62]: https://badge.fury.io/js/%40flashcatcloud%2Fbrowser-worker +[63]: https://deno.bundlejs.com/badge?q=@flashcatcloud/browser-worker&treeshake=[*] +[64]: https://bundlejs.com/?q=@flashcatcloud/browser-worker&treeshake=[*] +[70]: https://docs.flashcatcloudhq.com/getting_started/site/ diff --git a/developer-extension/README.md b/developer-extension/README.md index 4baf7add83..3433092b30 100644 --- a/developer-extension/README.md +++ b/developer-extension/README.md @@ -1,98 +1,3 @@ # Browser SDK developer extension Browser extension to investigate your Browser SDK integration. - -## Getting started - -### From the Chrome Web Store - -The extension is available to **Datadog employees** on the [Chrome Web Store](https://chrome.google.com/webstore/detail/datadog-browser-sdk-devel/boceobohkgenpcpogecpjlnmnfbdigda). - -### By loading the extension unpacked - -The packed extension is not (yet?) published publicly. You will need to clone this repository and -build the extension manually. - -``` -$ git clone https://github.com/DataDog/browser-sdk -$ cd browser-sdk -$ yarn -$ yarn build -``` - -Then, in Google Chrome: - -- Open the _Extension Management_ page by navigating to [chrome://extensions](chrome://extensions). -- Enable _Developer Mode_ by clicking the toggle switch next to _Developer mode_. -- Click the _LOAD UNPACKED_ button and select the `browser-sdk/developer-extension/dist` - directory. -- Open devtools and the extension features are located on the `Browser SDK` panel. - -## Features - -- Log events sent by the SDK in the devtools console -- Flush buffered events -- End current session -- Load the SDK development bundles instead of production ones -- Switch between `rum` and `rum-slim` bundles -- Retrieve Logs/RUM configuration - -## Browser compatibility - -For now, only Google Chrome is supported. - -## Usage tips - -### Event Tab - -The Event Tab contains a list of events sent by the SDK and a menu of event types for quick filtering. - -#### Search syntax - -We support a basic `key:value` search syntax, which means you can search within the limits of [RUM event structures](https://docs.datadoghq.com/real_user_monitoring/explorer/search/), such as `action.target.name:action_name`. - -We split each search key based on whitespace. To search with multiple conditions, simply add whitespace characters in between, such as: - -``` -type:view application.id:2 action.target.name:my_action_name -``` - -#### Event columns - -The Events List offers an interactive experience to visualize RUM events: - -- Drag and drop to reorder columns in the event list -- Remove (by clicking on `x` in the column title) or add new columns: - - Add a new column from searching for a field by clicking on the `+column` icon at the right side of the header row. - - Add a new column from values in existing columns by right clicking on any attribute in the event json. -- Copy queries and objects from the list by clicking on any cell - -### Info Tab - -**⚠️Don’t forget to reset everything in the Info Tab after experimenting.** - -Info tab contains information about Session and RUM SDK configurations - -- **RUM/LOGS Configuration**: edit configuration files on the fly. When configuration changes apply, the extension will automatically reload the page. But for some configurations you might want to click on End Current Session to ensure that the changes kicked in. -- **End current session**: manually end the current session within the extension. This will also end the current replay session. - -### Setting Tab - -> [!IMPORTANT] -> Don’t forget to reset everything in the Setting Tab after experimenting. - -- **Request Interception**: override the current SDK bundle with local build, or ​​switch between `rum` and `rum-slim` bundles on any site that is using RUM SDK. (note: if the SDK is installed from NPM, this override might not work, as it is still in an experimental stage.) - -- **Debug Mode**: This option enables debug mode from the developer extension to display errors happening in RUM and LOGS in the developer console. - -## Contribution tips - -To work on the developer extension and debug it easily: - -1. In a terminal, cd into the `developer-extension` folder. - -2. Run `yarn dev`. - -3. In Chrome, load the `developer-extension/dist` folder as an unpacked extension. - -4. After you make a change, right-click on the extension UI and “Reload frame”. diff --git a/developer-extension/src/panel/monitoring.ts b/developer-extension/src/panel/monitoring.ts index 83d54ab207..6ae06883ea 100644 --- a/developer-extension/src/panel/monitoring.ts +++ b/developer-extension/src/panel/monitoring.ts @@ -1,13 +1,12 @@ -import { datadogRum } from '@datadog/browser-rum' -import { datadogLogs } from '@datadog/browser-logs' +import { flashcatRum } from '@flashcatcloud/browser-rum' +import { flashcatLogs } from '@flashcatcloud/browser-logs' import packageJson from '../../package.json' import { DEFAULT_PANEL_TAB } from '../common/panelTabConstants' export function initMonitoring() { - datadogRum.init({ + flashcatRum.init({ applicationId: '235202fa-3da1-4aeb-abc4-d01b10ca1539', clientToken: 'pub74fd472504982beb427b647893758040', - site: 'datadoghq.com', service: 'browser-sdk-developer-extension', env: 'prod', version: packageJson.version, @@ -21,12 +20,11 @@ export function initMonitoring() { trackLongTasks: true, defaultPrivacyLevel: 'mask', }) - datadogRum.startSessionReplayRecording() - datadogRum.startView(DEFAULT_PANEL_TAB) + flashcatRum.startSessionReplayRecording() + flashcatRum.startView(DEFAULT_PANEL_TAB) - datadogLogs.init({ + flashcatLogs.init({ clientToken: 'pub74fd472504982beb427b647893758040', - site: 'datadoghq.com', service: 'browser-sdk-developer-extension', env: 'prod', version: packageJson.version, diff --git a/packages/core/README.md b/packages/core/README.md index dab3214699..6e1a712185 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -1,3 +1,3 @@ # `core` -Datadog browser core utilities. +Flashcat browser core utilities. diff --git a/packages/logs/README.md b/packages/logs/README.md index 6e7cf58e34..eccbb4d8fb 100644 --- a/packages/logs/README.md +++ b/packages/logs/README.md @@ -1,41 +1,39 @@ # Browser Log Collection -Send logs to Datadog from web browser pages with the browser logs SDK. +Send logs to Flashcat from web browser pages with the browser logs SDK. -See the [dedicated datadog documentation][1] for more details. ## Usage After adding [`@datadog/browser-logs`][2] to your `package.json` file, initialize it with: ```javascript -import { datadogLogs } from '@datadog/browser-logs' +import { flashcatLogs } from '@flashcatcloud/browser-logs' -datadogLogs.init({ - clientToken: '', - site: '', +flashcatLogs.init({ + clientToken: '', + site: '', forwardErrorsToLogs: true, sessionSampleRate: 100, }) ``` -After the Datadog browser logs SDK is initialized, send custom log entries directly to Datadog: +After the Flashcat browser logs SDK is initialized, send custom log entries directly to Flashcat: ```javascript -import { datadogLogs } from '@datadog/browser-logs' +import { flashcatLogs } from '@flashcatcloud/browser-logs' -datadogLogs.logger.info('Button clicked', { name: 'buttonName', id: 123 }) +flashcatLogs.logger.info('Button clicked', { name: 'buttonName', id: 123 }) try { ... throw new Error('Wrong behavior') ... } catch (ex) { - datadogLogs.logger.error('Error occurred', { team: 'myTeam' }, ex) + flashcatLogs.logger.error('Error occurred', { team: 'myTeam' }, ex) } ``` -[1]: https://docs.datadoghq.com/logs/log_collection/javascript -[2]: https://www.npmjs.com/package/@datadog/browser-logs +[2]: https://www.npmjs.com/package/@flashcatcloud/browser-logs diff --git a/packages/logs/src/entries/main.ts b/packages/logs/src/entries/main.ts index 253cd489cc..5df19d5798 100644 --- a/packages/logs/src/entries/main.ts +++ b/packages/logs/src/entries/main.ts @@ -11,9 +11,9 @@ export type { LogsInitConfiguration } from '../domain/configuration' export type { LogsEvent } from '../logsEvent.types' export type { LogsEventDomainContext } from '../domainContext.types' -export const datadogLogs = makeLogsPublicApi(startLogs) +export const flashcatLogs = makeLogsPublicApi(startLogs) interface BrowserWindow extends Window { - DD_LOGS?: LogsPublicApi + FC_LOGS?: LogsPublicApi } -defineGlobal(getGlobalObject(), 'DD_LOGS', datadogLogs) +defineGlobal(getGlobalObject(), 'FC_LOGS', flashcatLogs) diff --git a/packages/rum-core/README.md b/packages/rum-core/README.md index 0380dfaf47..83ef6b3615 100644 --- a/packages/rum-core/README.md +++ b/packages/rum-core/README.md @@ -1,3 +1,3 @@ # `rum-core` -Datadog browser RUM core utilities. +Flashcat browser RUM core utilities. diff --git a/packages/rum-react/README.md b/packages/rum-react/README.md index 7bdd784767..2f8a53e069 100644 --- a/packages/rum-react/README.md +++ b/packages/rum-react/README.md @@ -1,24 +1,24 @@ # RUM Browser Monitoring - React integration -This package provides React and React ecosystem integrations for Datadog Browser RUM. +This package provides React and React ecosystem integrations for Flashcat Browser RUM. ## Installation ```bash -npm install @datadog/browser-rum @datadog/browser-rum-react +npm install @flashcatcloud/browser-rum @flashcatcloud/browser-rum-react ``` ## Usage ### Initialization -To enable the React integration, pass the `reactPlugin` to the `plugins` option of the `datadogRum.init` method: +To enable the React integration, pass the `reactPlugin` to the `plugins` option of the `flashcatRum.init` method: ```javascript -import { datadogRum } from '@datadog/browser-rum' -import { reactPlugin } from '@datadog/browser-rum-react' +import { flashcatRum } from '@flashcatcloud/browser-rum' +import { reactPlugin } from '@flashcatcloud/browser-rum-react' -datadogRum.init({ +flashcatRum.init({ applicationId: ..., clientToken: ..., ... @@ -30,13 +30,13 @@ datadogRum.init({ To track React component rendering errors, use one of the following: -- An `ErrorBoundary` component (see [React documentation][1]) that catches errors and reports them to Datadog. +- An `ErrorBoundary` component (see [React documentation][1]) that catches errors and reports them to Flashcat. - A function that you can use to report errors from your own `ErrorBoundary` component. #### `ErrorBoundary` usage ```javascript -import { ErrorBoundary } from '@datadog/browser-rum-react' +import { ErrorBoundary } from '@flashcatcloud/browser-rum-react' function App() { return ( @@ -58,7 +58,7 @@ function ErrorFallback({ resetError, error }: { resetError: () => void; error: u #### Reporting React errors from your own `ErrorBoundary` ```javascript -import { addReactError } from '@datadog/browser-rum-react' +import { addReactError } from '@flashcatcloud/browser-rum-react' class MyErrorBoundary extends React.Component { componentDidCatch(error: Error, errorInfo: React.ErrorInfo) { @@ -80,16 +80,16 @@ class MyErrorBoundary extends React.Component { - Use the [`useRoutes`][5] hook. - Use the [`Routes`][6] component. -To track route changes with the Datadog RUM Browser SDK, first initialize the `reactPlugin` with the `router: true` option, then replace those functions with their equivalent from `@datadog/browser-rum-react/react-router-v6`. Example: +To track route changes with the Flashcat RUM Browser SDK, first initialize the `reactPlugin` with the `router: true` option, then replace those functions with their equivalent from `@flashcatcloud/browser-rum-react/react-router-v6`. Example: ```javascript import { RouterProvider } from 'react-router-dom' -import { datadogRum } from '@datadog/browser-rum' -import { reactPlugin } from '@datadog/browser-rum-react' -// Use "createBrowserRouter" from @datadog/browser-rum-react/react-router-v6 instead of react-router-dom: -import { createBrowserRouter } from '@datadog/browser-rum-react/react-router-v6' +import { flashcatRum } from '@flashcatcloud/browser-rum' +import { reactPlugin } from '@flashcatcloud/browser-rum-react' +// Use "createBrowserRouter" from @flashcatcloud/browser-rum-react/react-router-v6 instead of react-router-dom: +import { createBrowserRouter } from '@flashcatcloud/browser-rum-react/react-router-v6' -datadogRum.init({ +flashcatRum.init({ ... plugins: [reactPlugin({ router: true })], }) diff --git a/packages/rum/README.md b/packages/rum/README.md index 3c4ffe57e9..efcaa3d3aa 100644 --- a/packages/rum/README.md +++ b/packages/rum/README.md @@ -1,8 +1,8 @@ # RUM Browser Monitoring -Datadog Real User Monitoring (RUM) enables you to visualize and analyze the real-time performance and user journeys of your application's individual users. +Flashcat Real User Monitoring (RUM) enables you to visualize and analyze the real-time performance and user journeys of your application's individual users. -See the [dedicated datadog documentation][1] for more details. +See the [dedicated flashcat documentation][1] for more details. ## Usage @@ -11,10 +11,10 @@ To start collecting events, add [`@datadog/browser-rum`][2] to your `package.jso ```javascript import { datadogRum } from '@datadog/browser-rum' -datadogRum.init({ - applicationId: '', - clientToken: '', - site: '', +flashcatRum.init({ + applicationId: '', + clientToken: '', + site: '', // service: 'my-web-application', // env: 'production', // version: '1.0.0', @@ -30,5 +30,5 @@ datadogRum.init({ -[1]: https://docs.datadoghq.com/real_user_monitoring/browser -[2]: https://www.npmjs.com/package/@datadog/browser-rum +[1]: https://docs.flashcat.cloud/zh/flashduty/rum/introduction +[2]: https://www.npmjs.com/package/@flashcatcloud/browser-rum diff --git a/packages/worker/README.md b/packages/worker/README.md index a2cfbd8e4c..2f7d71a27d 100644 --- a/packages/worker/README.md +++ b/packages/worker/README.md @@ -1,3 +1,3 @@ # `worker` -Datadog browser web Worker. +Flashcat browser web Worker. diff --git a/performances/README.md b/performances/README.md index c6f60cb9c5..34e84a06ec 100644 --- a/performances/README.md +++ b/performances/README.md @@ -2,5 +2,5 @@ This tool runs various scenarios in a browser and profile the impact of the Browser SDK. -Use `yarn start` to execute it with `datadog-rum.js` and `yarn start --recorder` to use -`datadog-rum-recorder.js`. +Use `yarn start` to execute it with `flashcat-rum.js` and `yarn start --recorder` to use +`flashcat-rum-recorder.js`. diff --git a/test/app/app.ts b/test/app/app.ts index c76bb788d2..c2697f4a98 100644 --- a/test/app/app.ts +++ b/test/app/app.ts @@ -1,5 +1,5 @@ -import { datadogLogs } from '@datadog/browser-logs' -import { datadogRum } from '@datadog/browser-rum' +import { flashcatLogs } from '@flashcatcloud/browser-logs' +import { flashcatRum } from '@flashcatcloud/browser-rum' declare global { interface Window { @@ -18,7 +18,7 @@ if (typeof window !== 'undefined') { } } else { // compat test - datadogLogs.init({ clientToken: 'xxx', beforeSend: undefined }) - datadogRum.init({ clientToken: 'xxx', applicationId: 'xxx', beforeSend: undefined }) - datadogRum.setUser({ id: undefined }) + flashcatLogs.init({ clientToken: 'xxx', beforeSend: undefined }) + flashcatRum.init({ clientToken: 'xxx', applicationId: 'xxx', beforeSend: undefined }) + flashcatRum.setUser({ id: undefined }) } From 75caad737df2802a957fd398246705e9058a0789 Mon Sep 17 00:00:00 2001 From: niuweili <957905827@qq.com> Date: Thu, 15 May 2025 15:06:28 +0800 Subject: [PATCH 2/2] change submodule --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index a60512ad5c..56d90933b5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "rum-events-format"] path = rum-events-format - url = https://github.com/flashcatcloud/rum-events-format + url = https://github.com/DataDog/rum-events-format branch = master