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 type { Meta, StoryObj } from '@storybook/react-vite';
import { storyMocks } from '@/storybook/controls/defineStoryMocks';
import type { PageStoryArgs } from '@/storybook/runtime/resolveStory';
import { errorDetailsMocks } from './ErrorDetails.stories.mocks';
import ErrorDetails from '../index';
type ErrorDetailsArgs = PageStoryArgs<typeof errorDetailsMocks>;
const pageStory = storyMocks(errorDetailsMocks, { layout: 'app' });
/**
* One exception: its stack trace rendered for the language it came from, the span
* it belongs to, and the occurrence before and after it.
*
* Route: `/error-detail?...`.
*/
const meta = {
title: 'Pages/Exceptions/Detail',
component: ErrorDetails,
...pageStory,
parameters: { ...pageStory.parameters },
} satisfies Meta<ErrorDetailsArgs>;
export default meta;
type Story = StoryObj<ErrorDetailsArgs>;
/**
* One exception event as the list opens it: the type and message it was grouped
* under, when it was seen, its stack trace, and the span and trace it came from.
* Older and Newer walk the group's other events in place.
*/
export const Default: Story = {};
/** A Java exception stack trace, including JVM frame formatting. */
export const JavaStack: Story = {
args: { language: 'java' },
};
/** A Python exception stack trace, including chained traceback formatting. */
export const PythonStack: Story = {
args: { language: 'python' },
};
/** The oldest event in the group, with Older disabled. */
export const OldestEvent: Story = {
args: { neighbours: 'oldest' },
};
/** The newest event in the group, with Newer disabled. */
export const NewestEvent: Story = {
args: { neighbours: 'newest' },
};
/**
* A link to an event the backend no longer has, which is what a bookmarked
* exception past its retention window opens.
*/
export const EventMissing: Story = {
args: { found: false },
// The mocked event lookup deliberately 404s; the resulting console error is the state under test.
parameters: { allowConsoleErrors: true },
};
/** The page mid-fetch, shell included. */
export const Loading: Story = {
args: { dataState: 'loading' },
};
/**
* The page without a timestamp to look the event up by, which is the link the
* page refuses and sends back to the exceptions list.
*/
export const IncompleteLink: Story = {
args: { params: 'no-timestamp' },
};