diff --git a/app/js_error_event.html b/app/js_error_event.html
index a39cb604..05b3ed21 100644
--- a/app/js_error_event.html
+++ b/app/js_error_event.html
@@ -54,6 +54,13 @@
cwr('recordError', new Error('My error message'));
}
+ function recordCaughtErrorWithMetadata() {
+ cwr('recordError', {
+ error: new Error('My error message'),
+ metadata: { traceId: 'trace-1' }
+ });
+ }
+
function disable() {
cwr('disable');
}
@@ -96,6 +103,12 @@
+
diff --git a/docs/cdn_commands.md b/docs/cdn_commands.md
index 27ceff5b..fd27b823 100644
--- a/docs/cdn_commands.md
+++ b/docs/cdn_commands.md
@@ -10,6 +10,7 @@ Quick link: