OwlTrace JavaScript

Vanilla JavaScript

Use this guide when you want to install OwlTrace directly in plain JavaScript without framework-specific integrations.

Quick setup

Install the JavaScript client and initialize OwlTrace as early as possible in your app bootstrap file.

npm install @owltrace/js
import { owlTrace } from "@owltrace/js"; owlTrace.light("your-public-key");

Sourcemaps

If your app ships bundled assets, upload sourcemaps in your deploy pipeline so OwlTrace can map stack traces back to readable source code.

Troubleshooting

Enable debug mode during setup to inspect client behavior and verify reports are being built correctly before release.