next-axiom
by
axiomhq

Description: The official Next.js library for Axiom.

View on GitHub ↗

Summary Information

Updated 56 minutes ago
Added to GitGenius on July 28th, 2024
Created on April 28th, 2022
Open Issues & Pull Requests: 30 (+0)
Number of forks: 37
Total Stargazers: 434 (+0)
Total Subscribers: 3 (+0)

Issue Activity (beta)

Open issues: 26
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 680 days
Stale 30+ days: 26
Stale 90+ days: 26

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • NextJS 13 (2)
  • bug (1)
  • experiment (1)
  • web-vitals (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Repository Insights (GitGenius)

Median issue/PR response: 9.1 days
Mean response time: 128.6 days
90th percentile: 565.8 days
Tracked items: 39

Most active contributors

Detailed Description

The next-axiom repository is the official Next.js library for Axiom, a cloud-native observability platform that handles data ingestion, querying, and dashboard creation at scale. Written in TypeScript, this library enables Next.js developers to send Web Vitals and structured logs from their applications directly to Axiom's datastore, which is designed to ingest and query petabytes of data without requiring manual provisioning or data movement between hot and cold storage tiers.

The library supports Next.js applications using the App Router, with version 1.0 and higher focused exclusively on this modern routing approach. Users running the older Pages Router can continue using version 0.x, which receives ongoing security patches. To get started, developers need to create an Axiom account, set up a dataset, generate an API token, and configure two environment variables in their Next.js application: NEXT_PUBLIC_AXIOM_DATASET and NEXT_PUBLIC_AXIOM_TOKEN.

The core functionality includes middleware integration for capturing HTTP traffic requests with configurable detail levels, allowing developers to log request methods, URLs, headers, and other metadata. The library provides the AxiomWebVitals component for sending Web Vitals metrics from production deployments, ensuring performance monitoring is automatically integrated into the application lifecycle. Logging capabilities span multiple contexts: route handlers can be wrapped with withAxiom to automatically capture exceptions and add logger instances, client components can use the useLogger hook, and server components can instantiate Logger directly with proper flushing before returning.

The library implements five log levels—debug, info, warn, error, and off—allowing developers to control which logs are sent to Axiom. Error handling integrates with Next.js's built-in error handling mechanism through error.tsx files, where developers can use useLogger to capture and send routing errors. The middleware and route handler configurations both support a logRequestDetails property that accepts either a boolean to log all request details or an array of specific keys to log selectively.

According to GitGenius activity tracking, the repository shows median issue and pull request response latency of 218.7 hours across 39 tracked items, with mean latency of 3086.8 hours indicating some longer-running discussions. The most active contributor is thesollyz with 41 tracked events, followed by c-ehrlich with 8 events and FleetAdmiralJakob with 5 events. The repository is classified across numerous categories including observability, cloud computing, resilience engineering, real-time analytics, and microservices, reflecting its role in enterprise-grade observability infrastructure. GitGenius identifies overlapping contributors with major projects including Microsoft's VSCode and TypeScript repositories as well as the Rust language project, suggesting cross-pollination of engineering practices across significant open-source ecosystems.

next-axiom
by
axiomhqaxiomhq/next-axiom

Repository Details

Fetching additional details & charts...