File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
dev-packages/e2e-tests/test-applications/sveltekit-2-twp/src/routes/errors Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ import * as Sentry from '@sentry/sveltekit';
22
33export const load = async ( { url } ) => {
44 if ( ! url . search ) {
5+ console . log ( 'traceData: ' , Sentry . getTraceData ( ) ) ;
6+ console . log ( 'spanToTrace' , Sentry . spanToTraceHeader ( Sentry . getActiveSpan ( ) ! ) ) ;
7+ console . log ( 'activeSpan' , Sentry . getActiveSpan ( ) ) ;
58 Sentry . captureException ( new Error ( 'No search query provided' ) ) ;
69 return {
710 error : 'No search query provided' ,
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { onMount } from ' svelte' ;
3+ import * as Sentry from ' @sentry/sveltekit' ;
34
45 export let data;
56
67 onMount (() => {
78
89 if (data .error ) {
10+ console .log (Sentry .getTraceData ());
911 throw new Error (' Client Error' );
1012 }
1113 });
You can’t perform that action at this time.
0 commit comments