SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: traces back button issue (#8041)
Sahil Khan33e70d1f3770
diff --git a/frontend/src/container/TraceMetadata/TraceMetadata.tsx b/frontend/src/container/TraceMetadata/TraceMetadata.tsxindex 042ee654fe..78e3ee20c9 100644--- a/frontend/src/container/TraceMetadata/TraceMetadata.tsx+++ b/frontend/src/container/TraceMetadata/TraceMetadata.tsx@@ -42,7 +42,19 @@ function TraceMetadata(props: ITraceMetadataProps): JSX.Element {<Button className="previous-btn"><ArrowLeftsize={14}- onClick={(): void => history.push(ROUTES.TRACES_EXPLORER)}+ onClick={(): void => {+ // Check if page was opened in new tab (no referrer from same origin)+ // or if there's no meaningful history to go back to+ const hasValidReferrer =+ document.referrer &&+ new URL(document.referrer).origin === window.location.origin;++ if (hasValidReferrer && window.history.length > 1) {+ history.goBack();+ } else {+ history.push(ROUTES.TRACES_EXPLORER);+ }+ }}/></Button><div className="trace-name">