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
@@ -48,6 +50,9 @@ Interact with Real User Monitoring (RUM) directly from your build system.
48
50
```ts
49
51
rum?: {
50
52
disabled?: boolean;
53
+
react?: {
54
+
router?: boolean;
55
+
};
51
56
sdk?: {
52
57
actionNameAttribute?: string;
53
58
allowedTracingUrls?:string[];
@@ -92,6 +97,25 @@ rum: {
92
97
}
93
98
```
94
99
100
+
## React instrumentation
101
+
102
+
Automatically inject and instrument [RUM's React and React Router integrations](https://github.com/DataDog/browser-sdk/tree/main/packages/rum-react#react-router-integration).
103
+
104
+
### rum.react.router (alpha)
105
+
106
+
> default: false
107
+
108
+
It will:
109
+
110
+
1. inject `@datadog/browser-rum-react` into your bundle.
111
+
2. enable the plugin in the RUM SDK.
112
+
3. automatically instrument your React Router routes.
113
+
a. For now, it only instruments `createBrowserRouter`.
114
+
115
+
> [!IMPORTANT]
116
+
> - You need to have `react`, `react-dom` and `react-router-dom` into your dependencies.
117
+
> - This feature is in alpha and may not work as expected in all cases.
118
+
95
119
## Browser SDK Injection
96
120
97
121
Automatically inject the RUM SDK into your application.
0 commit comments