Connecting Providers
Connect analytics providers to OpsTrails to enable impact analysis — before/after metric comparisons around events on your timeline.
Supported Providers
- Sentry — Error rates, issue counts, crash-free session rates
- Datadog — Custom metrics, APM data, error tracking
- Google Analytics — Page views, user sessions, core web vitals
- New Relic — Error rates, response times, throughput
Setup
- Go to the console and navigate to Settings → Analytics Integrations
- Select the provider you want to connect
- Follow the provider-specific authorization flow (API key or OAuth)
- Configure which metrics to track and map them to subjects (environments)
💡 Info
The number of analytics integrations you can connect depends on your plan. Free: 1, Starter: 3, Pro: Unlimited.
How Data Flows
- OpsTrails periodically fetches metric data from your connected providers
- Metrics are stored and associated with subjects (e.g. “production”)
- When you or an AI assistant queries metrics around an event, OpsTrails compares the before and after windows to show the impact
Metrics Webhook
For custom metric ingestion, use the metrics webhook endpoint:
POST https://api.opstrails.dev/api/v1/metrics/webhook
See the API Reference for details.