-
-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add axiom and otlp adapters
#35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Thank you for following the naming conventions! 🙏 |
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds logging adapters for Axiom and OTLP (OpenTelemetry Protocol) to the evlog package, enabling integration with external observability platforms. The adapters support zero-configuration setup via environment variables and include comprehensive test coverage.
Changes:
- Added
axiomandotlpadapters with factory functions (createAxiomDrain,createOTLPDrain) for sending logs to external services - Updated Nuxt module configuration to include adapter options
- Added comprehensive documentation for both adapters and custom adapter development
- Updated build configuration and package exports to support the new adapters
Reviewed changes
Copilot reviewed 16 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/evlog/src/adapters/axiom.ts | Implements Axiom adapter with configuration priority and batch sending support |
| packages/evlog/src/adapters/otlp.ts | Implements OTLP adapter with OpenTelemetry log format conversion and resource attributes |
| packages/evlog/test/adapters/axiom.test.ts | Comprehensive test suite for Axiom adapter functionality |
| packages/evlog/test/adapters/otlp.test.ts | Comprehensive test suite for OTLP adapter including format conversion |
| packages/evlog/src/nuxt/module.ts | Adds TypeScript interface definitions for axiom and otlp configuration options |
| packages/evlog/build.config.ts | Adds build entries for the new adapter modules |
| packages/evlog/package.json | Exports axiom and otlp adapters as separate entry points |
| turbo.json | Adds AXIOM_TOKEN to environment variables for build |
| apps/playground/server/plugins/evlog-drain.ts | Updates example to demonstrate new Axiom adapter usage |
| apps/playground/nuxt.config.ts | Removes outdated comment about head sampling |
| apps/docs/content/3.adapters/*.md | Comprehensive documentation for adapters overview, Axiom, OTLP, and custom adapters |
| apps/docs/app/components/LandingFeatures.vue | Reorders and updates landing page features to highlight new adapter capabilities |
| apps/docs/app/assets/icons/*.svg | Adds icon assets for adapter documentation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This pull request introduces new adapters for sending logs to external services (Axiom and OTLP) in the
evlogpackage, adds their configuration to the Nuxt module, and updates the build and package exports to support these features.The main goal is to make it easier to forward logs from your Nuxt/Nitro app to observability platforms like Axiom and OpenTelemetry-compatible backends.