Skip to content

Integrate log handlers for logging to Axiom #484

@taesungh

Description

@taesungh

Back in May 2024, Vercel announced that Log Drains are now generally available and restricted the usage on Hobby plans

Log Drains are only available on Pro and Enterprise plans. Existing Hobby customers may continue to use Log Drains as configured, but no further usage or configuration is available.

This means we cannot create a new log drain for the IrvineHacks 2025 project on Vercel. We could try and swap with last year's project, but there's no guarantee that will work cleanly with renaming the projects, and that doesn't seem like a sustainable long-term solution (maybe Vercel forcefully disables the existing log drains in the future).

We previously used Axiom which has a Personal plan providing log retention for 30 days along with nice monitoring features such as streaming, querying, and alerting. Perhaps it might be good to invest in another solution with more permanent log retention, but Axiom was decently convenient and free to use. To continue using this with new Vercel projects, we'll need to manually connect Axiom's integrations to the Next.js app and the Python serverless function for the API.

For the Next.js app

For the Python API

  • Install axiom-py
  • Add an instance of AxiomHandler as a handler to the root logger in index.py

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions