Skip to content

Add with-sentry example: AI agent on Functions instrumented with Sentry#239

Draft
sergical wants to merge 4 commits into
neondatabase:mainfrom
sergical:with-sentry-example
Draft

Add with-sentry example: AI agent on Functions instrumented with Sentry#239
sergical wants to merge 4 commits into
neondatabase:mainfrom
sergical:with-sentry-example

Conversation

@sergical

Copy link
Copy Markdown

Adds with-sentry: a streaming, tool-calling AI SDK agent on Neon Functions (via the AI Gateway and @neon/ai-sdk-provider) instrumented with Sentry — errors as issues, recoverable agent failures as structured logs, and the full gen_ai span hierarchy (agent → model → tool, token usage) in traces.

Deployed and verified end to end; the non-obvious wiring (OTel global reset before Sentry.init, request-span middleware, per-request/stream flushing) is documented inline and in the README. Companion to neondatabase/agent-skills#56.

Left out .agents/ skill vendoring — happy to add if you want it run through your tooling.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

@sergical is attempting to deploy a commit to the neondatabase Team on Vercel.

A member of the Team first needs to authorize it.

sergical and others added 3 commits July 16, 2026 17:25
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant