@microsoft/applicationinsights-react-js 3.2.4-nightly.2201-03 → 3.2.4-nightly.2202-01

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -48,6 +48,22 @@ class MyComponent extends React.Component {
48
48
 
49
49
  export default withAITracking(reactPlugin, MyComponent);
50
50
  ```
51
+ For `react-router v6` or other scenarios where router history is not exposed, appInsights config `enableAutoRouteTracking` can be used to auto track router changes.
52
+
53
+ ```js
54
+ var reactPlugin = new ReactPlugin();
55
+ var appInsights = new ApplicationInsights({
56
+ config: {
57
+ instrumentationKey: 'YOUR_INSTRUMENTATION_KEY_GOES_HERE',
58
+ enableAutoRouteTracking: true,
59
+ extensions: [reactPlugin]
60
+ }
61
+ }
62
+ });
63
+ appInsights.loadAppInsights();
64
+ ```
65
+
66
+
51
67
 
52
68
  ## Configuration
53
69
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Plugin, 3.2.4-nightly.2201-03
2
+ * Application Insights JavaScript SDK - React Plugin, 3.2.4-nightly.2202-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {