What is deployment tracking?

Deployment tracking is the practice of notifying your error monitoring tool every time you release code, so each error can be attributed to the release that introduced it. Without it, an error feed tells you what is broken but not which change broke it.

The unit of attribution is normally a git SHA. You send it at deploy time, and errors that arrive afterward line up against it.

Example

curl https://api.rollbar.com/api/1/deploy \
  -H "X-Rollbar-Access-Token: $ROLLBAR_SERVER_TOKEN" \
  -F environment=production \
  -F revision=$(git rev-parse HEAD) \
  -F local_username="$USER"

Run that as the last step of the pipeline and the deploy is on the record before the first error of the new release arrives.

What Rollbar does with deploys

Rollbar identifies a suspect deploy for each error: the last deploy before the error first occurred, or the last deploy before it reactivated if the item had been resolved. Rollbar shows deploys inline in the live item feed, so a cluster of new items sitting directly after a release is visible without running a query. Rollbar can also auto-resolve every active item on deploy, which turns whatever reappears next into a statement about the release you just shipped.

Rollbar does not detect deploys on its own. Your CI or CD tool has to call the deploy endpoint, which requires environment and revision and accepts an optional status of started, succeeded, failed, or timed_out. A deploy left at started is set to timed_out after the project’s timeout period, 60 minutes by default.

Deployment frequency and failed deployment recovery time are two of DORA’s five software delivery metrics, and neither is measurable if nothing records when a deploy happened.

Related terms

Read the deployment tracking docs.


Sources

See every term in the glossary

Build with confidence. Release with clarity.

Rollbar helps you track what breaks, understand why, and improve what comes next.

✓ 5K free events per month, forever
✓ 14-day full feature trial
✓ Easy and quick installation
Get started in minutes

Plans starting at $0. Take off with our 14-day full feature Free Trial.