@kong-ui-public/error-boundary 2.5.20 → 2.5.21
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 +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,8 +92,8 @@ You may still override this global callback on individual instances of the compo
|
|
|
92
92
|
// Global registration
|
|
93
93
|
import { createApp } from 'vue'
|
|
94
94
|
import ErrorBoundary from '@kong-ui-public/error-boundary' // No style imports needed
|
|
95
|
-
//
|
|
96
|
-
import {
|
|
95
|
+
// rum package example
|
|
96
|
+
import { rum } from '@kong-ui/real-user-monitoring'
|
|
97
97
|
|
|
98
98
|
const app = createApp(App)
|
|
99
99
|
|
|
@@ -101,7 +101,7 @@ app.use(ErrorBoundary, {
|
|
|
101
101
|
// Provide a global, default `onError` callback for all ErrorBoundary instances
|
|
102
102
|
onError({ error, context }) {
|
|
103
103
|
// Example of sending errors to Datadog
|
|
104
|
-
|
|
104
|
+
rum.addError(error, {
|
|
105
105
|
ui: context,
|
|
106
106
|
})
|
|
107
107
|
},
|