Skip to main content

Installation

npm

Quick Start

What Gets Traced

  • Agent generate — input prompt, output text, model, token usage (promptTokens/completionTokens)
  • Errors — captured with error status, re-thrown to caller

Configuration

Projects

Route events to a specific project by passing its slug as projectId:
This sets the X-Raindrop-Project-Id header on every event. Omit it (or pass "default") to use your org’s default Production project, which is the existing behavior. Single-project orgs need nothing new.

Flushing and Shutdown