OpsTrailsDocs
Console

Deployment Tracking

Track every deployment across all environments to build a complete history of what was deployed, when, and where.

The Pattern

  1. CI/CD pipeline records event — On every successful deploy, the pipeline sends a deployment event to OpsTrails with the version, environment, and source repository
  2. Timeline shows deploy history — The team has a chronological view of all deployments across all services and environments
  3. AI correlates with metrics — When an error spike occurs, AI queries the timeline to find recent deployments and checks metrics around each one

Example: GitHub Actions

yaml
name: Deploy
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Deploy to production
        run: ./deploy.sh

      - name: Track deployment
        uses: opstrails/track-event@v1
        with:
          api-key: ${{ secrets.OPSTRAILS_API_KEY }}
          type: deployment
          subject: production
          version: ${{ github.sha }}

Querying with AI

Once deployments are tracked, ask your AI assistant:

Best Practices