Skip to content

Conversation

@HugoRCD
Copy link
Owner

@HugoRCD HugoRCD commented Feb 3, 2026

This pull request introduces new adapters for sending logs to external services (Axiom and OTLP) in the evlog package, 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.

@HugoRCD HugoRCD self-assigned this Feb 3, 2026
@vercel
Copy link

vercel bot commented Feb 3, 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 3, 2026 10:27pm

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

Thank you for following the naming conventions! 🙏

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 3, 2026

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

commit: b6c7837

@HugoRCD HugoRCD marked this pull request as ready for review February 3, 2026 22:23
@HugoRCD HugoRCD requested a review from Copilot February 3, 2026 22:23
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

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 axiom and otlp adapters 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>
@HugoRCD HugoRCD merged commit c25d832 into main Feb 3, 2026
11 checks passed
@HugoRCD HugoRCD deleted the feat/adapters branch February 3, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants