The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
better setup docs
ddux5fb0a47033ca
diff --git a/frontend/src/lib/utils/framework-code.ts b/frontend/src/lib/utils/framework-code.tsindex 0975ca47..9f7f98ed 100644--- a/frontend/src/lib/utils/framework-code.ts+++ b/frontend/src/lib/utils/framework-code.ts@@ -81,6 +81,12 @@ export function getTestingRouteCode(): string {})`;}+export function getTestingRouteCode2(): string {+ return `r.GET("/testing", func(c *gin.Context) {+ c.AbortWithError(500, traceway.NewStackTraceErrorf("testing"))+})`;+}+export function getFrameworkLabel(framework: Framework): string {const labels: Record<Framework, string> = {gin: 'Gin',diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelteindex a07a6c45..fca81736 100644--- a/frontend/src/routes/+page.svelte+++ b/frontend/src/routes/+page.svelte@@ -24,7 +24,10 @@getFrameworkCode,getInstallCommand,getTestingRouteCode,- getFrameworkLabel+ getFrameworkLabel,++ getTestingRouteCode2+} from '$lib/utils/framework-code';import { toast } from 'svelte-sonner';@@ -69,6 +72,7 @@let copiedInstall = $state(false);let copiedCode = $state(false);let copiedTesting = $state(false);+ let copiedTesting2 = $state(false);let checking = $state(false);// Load project with token when hasData is false@@ -98,6 +102,7 @@);const testingRouteCode = getTestingRouteCode();+ const testingRouteCode2 = getTestingRouteCode2();async function copyInstall() {await navigator.clipboard.writeText(installCommand);@@ -117,6 +122,13 @@setTimeout(() => (copiedTesting = false), 2000);}++ async function copyTesting2() {+ await navigator.clipboard.writeText(testingRouteCode2);+ copiedTesting2 = true;+ setTimeout(() => (copiedTesting2 = false), 2000);+ }+async function checkAgain() {checking = true;const hadDataBefore = data?.hasData ?? false;@@ -314,6 +326,29 @@<Highlight language={go} code={testingRouteCode} /></div></div>++ <div class="flex justify-center p-2 italic">or</div>++ <div class="relative">+ <div class="absolute top-2 right-2 z-10">+ <Button variant="outline" size="sm" onclick={copyTesting2}>+ {#if copiedTesting2}+ <Check class="mr-2 h-4 w-4 text-green-500" />+ Copied!+ {:else}+ <Copy class="mr-2 h-4 w-4" />+ Copy+ {/if}+ </Button>+ </div>+ <div+ class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ ? 'dark-code'+ : 'light-code'}"+ >+ <Highlight language={go} code={testingRouteCode2} />+ </div>+ </div></div></div>