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
let persisted = true;
/** Set from the Toasts control, through `globals/toastMocks.ts`. */
export const persistToasts = (value: boolean): void => {
persisted = value;
};
/**
* Sonner's default is 4s. A toast with no `duration` of its own follows the
* `Toaster`, so `Infinity` here keeps it on screen for the capture.
*/
export const toastDuration = (): number | undefined =>
persisted ? Infinity : undefined;
export const areToastsPersisted = (): boolean => persisted;