sourcemaps
This commit is contained in:
1 parent
97743ea21c
commit
1aa264675e
11 files changed
+538
-17
No files matched your search
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Deliberately throws an uncaught error from application code so the RUM
|
||||
* script reports it, letting a deploy verify the source-map pipeline end to
|
||||
* end: the resolved stack should point at this file, not the bundle.
|
||||
*/
|
||||
export function triggerTestError(): void {
|
||||
// Thrown from a timer so it surfaces as an uncaught window error, exactly
|
||||
// like a real bug, instead of being swallowed by a React event handler.
|
||||
setTimeout(() => throwTestError(new Date().toISOString()), 0)
|
||||
}
|
||||
|
||||
function throwTestError(at: string): never {
|
||||
throw new Error(`Test error from otel-ui (source-map check) ${at}`)
|
||||
}
|
||||
Reference in new issue
Block a user