Light weight logging and monitoring for your API

EdgeWatch is optimised for simplicity without compromising performance and cutting edge monitoring.

a
b
c

Optimised For Simplicity And Powerful Monitoring

  • Step 1: Login and create a project to get your API keyCreate Project
  • Step 2: Add logging to your API
    import { EdgeWatch } from "edge-watch";
    export default {
    fetch: async (request, env, ctx) => {
    const logger = new EdgeWatch(env.EDGE_WATCH_API_KEY);
    try {
    // ...
    } catch (error) {
    // Log the internal error
    logger.error("Internal server error", {
    errorMessage: error instanceof Error ? error.message : error,
    });
    // Publish logs to EdgeWatch
    ctx.waitUntil(logger.publish());
    return new Response("Internal server error", { status: 500 });
    }
    },
    } satisfies ExportedHandler<Env>;
  • Step 3: Monitor the logs in the dashboard

    For the past week

    Filter message contains "Internal server error"

    stats count() by bin(1h), errorMessage

Pricing

$15.00

/ month

IncludedAdditional Usage
API calls500k$1 per 100k
Ingestion7GB$1 per 1 GB
Storage10 GB$1 per 10 GB
Logs Scanned100 GB$1 per 100 GB
Get Started