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
import { create } from 'zustand';
/**
* One-shot reveal signal: a flow records the id of the panel/section to reveal and the
* matching component scrolls itself into view on mount (see `useScrollIntoView`), then
* clears it. Panel and section ids share this slot — they're in disjoint namespaces
* (`sec-*` vs UUIDs). Kept off `useDashboardStore`/the URL so a refresh doesn't re-fire it.
*/
export interface ScrollIntoViewStore {
scrollTargetId: string | null;
setScrollTargetId: (id: string | null) => void;
}
export const useScrollIntoViewStore = create<ScrollIntoViewStore>((set) => ({
scrollTargetId: null,
setScrollTargetId: (scrollTargetId): void => {
set({ scrollTargetId });
},
}));