Skip to content

Conversation

@fisherdarling
Copy link
Collaborator

@fisherdarling fisherdarling commented Dec 17, 2025

This PR adds a panic and sentry hook to foundations. The panic hook will increment a metric and log the fact a panic occurred, where the sentry hook only increments a metric. The panic hook uses foundations' logging functionality if it's initialized, otherwise, it will print a JSON formatted log to stderr.

The two metrics emitted by foundations are: panics_total and sentry_events_total{label=<...>}.

To easily test foundations' global metrics, I migrated CI to use cargo-nextest. Also, I moved the target build testing to its own job (just to separate build/test). Finally, I generated a simple AGENTS.md which we can start refining to help with future PRs.

@fisherdarling fisherdarling force-pushed the fisher/panic-and-sentry-hook branch 8 times, most recently from 9203b72 to 5887224 Compare December 17, 2025 15:47
@fisherdarling fisherdarling force-pushed the fisher/panic-and-sentry-hook branch from 5887224 to 6ab4caf Compare December 17, 2025 16:11
@fisherdarling fisherdarling force-pushed the fisher/panic-and-sentry-hook branch from 6ab4caf to d19e279 Compare December 17, 2025 16:14
@fisherdarling fisherdarling marked this pull request as ready for review December 17, 2025 16:22
@TheJokr TheJokr self-requested a review December 18, 2025 11:03
@fisherdarling fisherdarling force-pushed the fisher/panic-and-sentry-hook branch 7 times, most recently from 2437850 to f363158 Compare December 22, 2025 11:28
@fisherdarling fisherdarling force-pushed the fisher/panic-and-sentry-hook branch from 49e5370 to 7496165 Compare December 23, 2025 10:12
@fisherdarling fisherdarling force-pushed the fisher/panic-and-sentry-hook branch 4 times, most recently from d794edd to 4454cc5 Compare December 23, 2025 15:14
This commit adds a simple AGENTS.md. This wasn't human-curated, just the
output of opencode's `/init` with Opus 4.5.
@fisherdarling fisherdarling force-pushed the fisher/panic-and-sentry-hook branch from 4454cc5 to fb73d85 Compare January 8, 2026 14:25
@fisherdarling fisherdarling force-pushed the fisher/panic-and-sentry-hook branch from fb73d85 to 9b733be Compare January 8, 2026 14:48
@fisherdarling fisherdarling force-pushed the fisher/panic-and-sentry-hook branch from 9b733be to 31e53b2 Compare January 8, 2026 14:51
@fisherdarling fisherdarling merged commit dd036d3 into main Jan 8, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants