Skip to content
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

Integrate log handlers for logging to Axiom #484

Closed
taesungh opened this issue Dec 11, 2024 · 3 comments
Closed

Integrate log handlers for logging to Axiom #484

taesungh opened this issue Dec 11, 2024 · 3 comments
Assignees

Comments

@taesungh
Copy link
Member

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
@taesungh
Copy link
Member Author

Looks like next-axiom has a peer dependency of next>=14.0, but we haven't completed #403 yet. Will see how far I can get with the current v13.5.6.

@taesungh
Copy link
Member Author

Update: considering just temporarily paying for Vercel Pro tier for two months since the interim approach from #487 needs some more work to get nicer contextual data.

@taesungh
Copy link
Member Author

Decided for now we'll just swap back the two projects (new and last year's) since we still have the previously created log drain (for now, who knows for how much longer). For next year, would be convenient to just consider paying for good logs during the two months we need them.

@taesungh taesungh closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2024
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

No branches or pull requests

2 participants