Installation
Basic Setup
- Vue 3
- Vue 2
Initialize Sentry before creating your Vue app:
Vue-Specific Features
Error Handler Integration
Automatically captures Vue component errors:Component Tracking
Track specific component lifecycle events:Vue Router Integration
Automatic route change tracking:Pinia Integration
Track Pinia store actions:- Attach store state to error events
- Create breadcrumbs for store mutations
- Track action performance
Performance Monitoring
Component Performance
Track component render times:Custom Spans
Add custom performance tracking:Composition API
Use Sentry in Vue 3 Composition API:Error Handling
Global Error Handler
The SDK automatically integrates with Vue’s error handler:Manual Error Capture
Context & Breadcrumbs
Component Context
Advanced Configuration
- Vue Integration Options
- Router Options
- Filtering
Tracing Mixins (Vue 2)
For Vue 2, use tracing mixins:Best Practices
Initialize Early
Initialize Sentry before creating your Vue app to catch all errors.
Router Integration
Always pass your router instance for accurate navigation tracking.
Component Tracking
Enable component tracking to understand performance bottlenecks.
Pinia Plugin
Use the Pinia plugin to track store actions and state.
Examples
Complete Vue 3 Setup
Complete Vue 3 Setup
Next Steps
Vue Router
Advanced router integration patterns
Pinia
State management tracking
Performance
Component performance monitoring
Source Maps
Upload source maps for better stack traces