Skip to content

feat: add Sentry adapter#51

Merged
HugoRCD merged 5 commits intomainfrom
codex/linear-mention-evl-49-feature]-add-adapter-sentry-logging
Feb 8, 2026
Merged

feat: add Sentry adapter#51
HugoRCD merged 5 commits intomainfrom
codex/linear-mention-evl-49-feature]-add-adapter-sentry-logging

Conversation

@HugoRCD
Copy link
Owner

@HugoRCD HugoRCD commented Feb 7, 2026

Resolves #50

This pull request adds Sentry integration to the evlog logging package, enabling logs to be sent to Sentry with flexible configuration and support for Nuxt/Nitro runtime environments. The changes include a new Sentry adapter, documentation updates, configuration options, package exports, and comprehensive tests.

@vercel
Copy link

vercel bot commented Feb 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evlog-docs Ready Ready Preview, Comment Feb 8, 2026 0:34am

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

Thank you for following the naming conventions! 🙏

@HugoRCD HugoRCD changed the title Add Sentry adapter for evlog feat: add Sentry adapter Feb 7, 2026
@HugoRCD HugoRCD removed the codex label Feb 7, 2026
@HugoRCD HugoRCD marked this pull request as draft February 7, 2026 19:32
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 7, 2026

npm i https://pkg.pr.new/evlog@51

commit: 3a68cd7

@HugoRCD HugoRCD self-assigned this Feb 8, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Sentry adapter to evlog so wide events can be sent as Sentry Structured Logs (including Nuxt/Nitro “zero-config” support), and updates docs/exports/tests accordingly.

Changes:

  • Introduces packages/evlog/src/adapters/sentry.ts with createSentryDrain, event→Sentry log transformation, and envelope sending (single + batch).
  • Adds Vitest coverage for transformation, envelope formatting, batching, and timeout behavior.
  • Wires up package exports/build entries and updates docs (monorepo + package README + docs site) to document the Sentry adapter.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/evlog/src/adapters/sentry.ts Implements Sentry transformation + envelope transport + Nuxt/Nitro drain factory.
packages/evlog/test/adapters/sentry.test.ts Adds tests for Sentry transformation and transport behavior.
packages/evlog/src/nuxt/module.ts Extends Nuxt module option types to include posthog and sentry config.
packages/evlog/package.json Exposes evlog/sentry subpath export and typesVersions entry.
packages/evlog/build.config.ts Adds build entry to emit dist/adapters/sentry.*.
packages/evlog/README.md Documents using createSentryDrain and NUXT_SENTRY_DSN.
README.md Mirrors Sentry adapter usage in root README.
AGENTS.md Updates adapter matrix and usage snippet to include Sentry.
apps/playground/server/plugins/evlog-drain.ts Adds commented playground example for createSentryDrain.
apps/playground/nuxt.config.ts Ensures drain test route logs are always kept for sampling.
apps/docs/content/3.adapters/1.overview.md Adds Sentry to docs adapter overview page and env var examples.
apps/docs/content/3.adapters/5.sentry.md New docs page describing Sentry adapter setup/config/querying.
apps/docs/content/3.adapters/6.custom.md New docs page describing how to build custom adapters.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HugoRCD HugoRCD merged commit 9cdba0e into main Feb 8, 2026
12 checks passed
@HugoRCD HugoRCD deleted the codex/linear-mention-evl-49-feature]-add-adapter-sentry-logging branch February 8, 2026 12:41
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.

[feature] add adapter sentry logging

1 participant