Background Task Monitoring

Ensure your queues, cron jobs, and background workers are operating reliably. Track execution times, monitor failure rates, queue depth latency, and analyze retry behaviors automatically.

Prerequisites

  • A Node.js environment utilizing BullMQ, Node-Cron, or custom workers.

1. Dashboard Configuration

Before injecting code into your application, you must provision an API key from the Senzor dashboard.

1

Generate Task Key

Register a Task environment in the dashboard to receive a dedicated API key.

2. SDK Installation

Select your environment below to view the initialization code.

npm install @senzops/apm-node

import Senzor from '@senzops/apm-node';

// Initialize as early as possible in your worker entry file
Senzor.init({
  apiKey: "<YOUR_TASK_KEY>"
});

// Supported libraries like BullMQ and Node-Cron are automatically instrumented!