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 APIimport { 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 errorlogger.error("Internal server error", {errorMessage: error instanceof Error ? error.message : error,});// Publish logs to EdgeWatchctx.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
Included | Additional Usage | |
---|---|---|
API calls | 500k | $1 per 100k |
Ingestion | 7GB | $1 per 1 GB |
Storage | 10 GB | $1 per 10 GB |
Logs Scanned | 100 GB | $1 per 100 GB |