OwlTrace JavaScript

Vue

Use this guide for Vue 2 or Vue 3 applications that need OwlTrace plugin-style setup and runtime reporting.

Install package

npm install @owltrace/js @owltrace/vue

Initialize plugin

import { createApp } from "vue"; import { owlTrace } from "@owltrace/js"; import { OwlTraceVuePlugin } from "@owltrace/vue"; import App from "./App.vue"; owlTrace.light("your-public-key"); createApp(App).use(OwlTraceVuePlugin).mount("#app");

Sourcemaps

For production builds, include sourcemap upload in your deployment process so OwlTrace can show readable stack traces and snippets.