You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flashduty/en/2. RUM/2. Applications/2. SDK Integration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,12 +131,12 @@ You can check for loading issues with `window.FC_RUM` if the RUM browser SDK fai
131
131
| sessionSampleRate | Number | No | Percentage of sessions to track: 100 for all, 0 for none. Only tracked sessions send RUM events. Default: `100`|
132
132
| silentMultipleInit | Boolean | No | If the RUM browser SDK is already initialized on the page, initialization will silently fail. Default: `false`|
133
133
| proxy | String | No | Optional proxy URL, for example: `https://www.proxy.com/path`|
134
-
| allowedTracingUrls | Array | No | List of request URLs for injecting tracing headers |
134
+
| allowedTracingUrls | Array | No | List of request URLs for injecting tracing headers. For more information, see [Connect RUM and Traces](https://docs.flashcat.cloud/en/flashduty/rum/sdk-integration#Connect%20RUM%20and%20Traces)|
135
135
| traceSampleRate | Number | No | Percentage of requests to trace: 100 for all, 0 for none. Default: `100`|
136
136
| excludedActivityUrls | Array | No | List of request origins to ignore when calculating page activity |
137
137
| compressIntakeRequests | Boolean | No | Compress requests sent to the FlashDuty intake to reduce bandwidth usage when sending large amounts of data. Compression is done in a Worker thread. Default: `false`|
138
138
| storeContextsAcrossPages | Boolean | No | Store global context and user context in localStorage to preserve them across user navigation. Default: `false`|
139
-
| allowUntrustedEvents | Boolean | No | Allow capturing [untrusted events][untrustedEvents], for example in automated UI tests. Default: `false`|
139
+
| allowUntrustedEvents | Boolean | No | Allow capturing [untrusted events][https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted], for example in automated UI tests. Default: `false`|
Copy file name to clipboardExpand all lines: flashduty/en/2. RUM/2. Applications/3. Advanced Configuration.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -455,6 +455,37 @@ The following events cannot be attributed to specific sources and therefore do n
455
455
- View events (can be resolved by overriding view names).
456
456
- CORS and CSP violation events.
457
457
458
+
## Connect RUM and Traces
459
+
460
+
The APM integration with Real User Monitoring allows you to link requests from your web and mobile applications to their corresponding backend traces. This combination enables you to see your full frontend and backend data through one lens.
461
+
462
+
Use frontend data from RUM, as well as backend, infrastructure, and log information from trace ID injection to pinpoint issues anywhere in your stack and understand what your users are experiencing.
463
+
464
+
### Usage
465
+
466
+
Initialize the RUM SDK. Configure the `allowedTracingUrls` initialization parameter with the list of internal, first-party origins called by your browser application.
applicationId:"<YOUR_APPLICATION_ID>", // Get from application management page
473
+
clientToken:"<YOUR_CLIENT_TOKEN>", // Get from application management page
474
+
service:"<SERVICE_NAME>", // Service name to distinguish different services
475
+
env:"<ENV_NAME>", // Environment identifier
476
+
version:"1.0.0", // Application version
477
+
sessionSampleRate:100, // Sampling rate
478
+
allowedTracingUrls: ["https://api.example.com",/https:\/\/.*\.my-api-domain\.com/, (url) =>url.startsWith("https://api.example.com")], // A list of request URLs used to inject tracing headers.
479
+
traceSampleRate:20// Optional,The percentage of requests to trace: 100 for all, 0 for none.
480
+
});
481
+
```
482
+
483
+
allowedTracingUrls matches the full URL (`<scheme>://<host>[:<port>]/<path>[?<query>][#<fragment>]`). It accepts the following types:
484
+
485
+
-**string:** matches any URL that starts with the value, so `https://api.example.com` matches `https://api.example.com/v1/resource`.
486
+
-**RegExp:** executes a test with the provided RegExp and the URL.
487
+
-**function:** evaluates with the URL as parameter. Returning a boolean set to true indicates a match.
488
+
458
489
## Considerations
459
490
460
491
- Ensure correct configuration of`applicationId` and `clientToken` to avoid data upload failures.
0 commit comments