Tail Request access

Find the cause.
Fix it safely.
Stop it happening again.

Tail connects to your metrics, logs, deploys and code. When something breaks, it shows you the cause with evidence, drafts a reviewed fix, and checks every future change against what went wrong.

#checkout-deployssample data

tailapp

Likely incident in about 22 minutes

PR #412 matches the start of INC-2026-0814. It doubled checkout-api’s workers, so 16 workers now share 8 ledger-pg connections, and requests are queuing.

ledger-pg connections waiting15 now

14:22 deploy14:25 nowpage expected about 14:47

Pattern
Step 2 of 4 of INC-2026-0814 has been seen.
Track record
This warning has been right 3 times out of 4.

Draft a fixOpen evidence

One incident, start to finish.

Scroll through six minutes on the checkout team’s afternoon, and see what Tail sees at each step.

  1. A routine change ships.

    PR #412 doubles checkout-api's workers for the holiday peak. Build, tests and lint all pass.

    • edge-gatewayingress p99 180ms
    • checkout-apiservice PR #412 live
    • ledger-pgpostgres waiters 0
    • payments-workerkafka consumer lag 0

    Watching

    Deploy landed. Comparing it with known incident patterns.

    PR #412 raises checkout-api workers from 8 to 16. Its change risk is 0.81, which is high.

    14:220 minutes since the deploy

  2. Tail recognises the start of a known incident.

    Checkout requests are queuing for ledger-pg connections. That's the first two steps of INC-2026-0814, and last time the page fired 24 minutes later.

    • edge-gatewayingress p99 190ms
    • checkout-apiservice PR #412 live
    • ledger-pgpostgres waiters 14
    • payments-workerkafka consumer lag 0

    Likely incident in ~22 min

    This matches the start of INC-2026-0814.

    16 workers now share 8 ledger-pg connections. Last time, liveness checks failed 24 minutes after this step.

    14:242 minutes since the deploy

  3. It tells the right people, with the evidence.

    @tail posts in #checkout-deploys: the change, the queueing, and the incident it matches. No dashboard hunting.

    • edge-gatewayingress p99 205ms
    • checkout-apiservice PR #412 live
    • ledger-pgpostgres waiters 15
    • payments-workerkafka consumer lag 120

    Likely incident in ~21 min

    Posted to #checkout-deploys.

    @tail posted that PR #412 matches the start of INC-2026-0814, and that 15 requests are now waiting on ledger-pg.

    14:253 minutes since the deploy

  4. It drafts the fix and waits for approval.

    Plan A-2291 raises the pool from 8 to 32, with a rollback written first. Sam approves it from Slack.

    • edge-gatewayingress p99 210ms
    • checkout-apiservice PR #412 live
    • ledger-pgpostgres waiters 16
    • payments-workerkafka consumer lag 180

    Plan approved

    Plan A-2291 raises pool_size from 8 to 32.

    The rollback, which reverts to 8, is written first. Sam approved the plan and Tail is applying it.

    14:264 minutes since the deploy

  5. The problem clears before anyone is paged.

    Connection waiters drop to zero. Checkout p99 never leaves its normal range.

    • edge-gatewayingress p99 185ms
    • checkout-apiservice pool 32
    • ledger-pgpostgres waiters 0
    • payments-workerkafka consumer lag 0

    Resolved without a page

    Waiters back to 0 two minutes after the fix.

    No one was paged. The timeline is saved for the postmortem.

    14:286 minutes since the deploy

  6. The next change is checked against it.

    The pattern's record is updated, and any pull request that touches the ledger-pg pool now gets a Tail check.

    • edge-gatewayingress p99 182ms
    • checkout-apiservice pool 32
    • ledger-pgpostgres waiters 0
    • payments-workerkafka consumer lag 0

    Pattern updated

    Recorded as “acted on, prevented”.

    A new check now runs on every pull request that changes the ledger-pg pool size.

    14:316 minutes since the deploy

Know what broke and why, in one answer.

Ask a question in plain words. Tail shows every command it runs, so you can rerun it yourself, and the panel on the right shows what it already knew about your systems.

Tail prod-eu Ask Tail or search ⌘ K
  • Investigate
  • Incidents
  • Map
  • Monitors
  • Plans
  • Sources

Today

  • why is checkout p99 above 2s?14:49, sam
  • PR #412 production risk14:22, check

12 Aug

  • payments.settle consumer lagINC-2026-0814
  • ledger-pg connection waitersINC-2026-0814

@tail why is checkout p99 above 2s?

Asked by sam in #payments-oncall at 14:49. Answered in 1 min 38 s from 5 sources.

Tail’s plan: check latency, the ledger-pg pool, recent deploys, payments-worker events and past incidents.

metrics-prom histogram_quantile(0.99, rate(http_request_duration_seconds_bucket{service="checkout-api"}[5m])) 412 ms

Checkout p99 rose from 180ms to 2.4s, starting at 14:24.

ledger-pg SELECT count(*) FROM pg_stat_activity WHERE wait_event_type = 'Client' 96 ms

Connections waiting rose from 0 to 14. checkout-api is capped at 8 active connections.

example/platform git show a3f9c21 -- config/runtime.exs 210 ms
-  pool_size: 25,
+ pool_size: 8, # "tune ledger pool for new pgbouncer"

The commit assumes a pgbouncer, but pgbouncer only fronts catalog-search.

kubernetes kubectl get events -n prod --field-selector involvedObject.name=payments-worker 180 ms
14:40  Warning  Unhealthy  Liveness probe failed: db ping timeout (x3)

payments-worker failed its liveness probe three times because it could not get a database connection.

tail memory match incident patterns for checkout-api, ledger-pg 38 ms

This matches INC-2026-0814: the same pool and the same order of symptoms. That incident was fixed by raising pool_size.

Root cause, high confidence

Deploy a3f9c21 at 14:22 cut the ledger-pg connection pool from 25 to 8. checkout-api and payments-worker share that pool, so checkout requests now queue for a connection.

Same pattern as INC-2026-0814 on 12 Aug.

Draft plan A-2291

Ruled out

  • express_payThe flag rolled out to 50% at 13:40, and latency stayed flat for 40 minutes afterwards.
  • session-redisThe cache hit rate is steady at 98%.
  • trafficRequests per second are within 3% of last Wednesday.
  • edge-gatewayErrors stayed normal until 14:44, after the queueing had already begun.

Memory used

  • checkout-api shares its ledger-pg pool with payments-worker

    RepositoryLearned from config/runtime.exs on 14 Aug.

    92% sure

  • ledger-pg is not behind pgbouncer. Only catalog-search is.

    InvestigationConfirmed in investigation I401 on 12 Aug.

    80% sure

  • payments-worker's liveness check needs a ledger-pg connection

    IntrospectionRead from the deployment spec and re-checked today.

    97% sure

Each fact records where Tail learned it. Facts lose confidence over time unless they are confirmed again.

Run the incident from Slack.

When an incident starts, @tail opens it, pages the right people and keeps one card up to date until the approved fix is applied. Step through the card as it changes.

#inc-2026-0815Triggered, 14:48

  1. tailapp

    Opened an incident and paged @payments-oncall.

    SEV2Triggered

    Impact
    3.1% of checkouts are slow.
    Cause
    PR #412 starved the ledger-pg pool.
    Seen before
    Yes, as INC-2026-0814.

    AcknowledgeOpen timeline

#inc-2026-0815Investigating, 14:49

  1. tailappupdated

    Opened an incident and paged @payments-oncall.

    SEV2Investigating

    Commander
    sam
    Plan
    A-2291 raises the pool from 8 to 32.
    Waiting on
    One approval.

    Approve fixOpen planOpen timeline

  2. tailapp

    sam acknowledged and is commander. Evidence posted in the thread.

    5 replies in thread

#inc-2026-0815Mitigated, 14:55

  1. tailappupdated

    Opened an incident and paged @payments-oncall.

    SEV2Mitigated

    Duration
    7 minutes.
    Fix
    Plan A-2291, approved by sam, is applied.
    Next
    A postmortem is drafted from the timeline.

    Open postmortem draftOpen timeline

  2. tailapp

    Plan A-2291 is applied. Waiters are back to 0 and checkout p99 is at 210ms.

Plan A-2291production

Needs 1 approval

Raise the checkout-api connection pool

config/runtime.exs

-  pool_size: 8,
+ pool_size: 32,

ledger-pg allows 400 connections across 3 services. After the change, 54% of them will be used at peak.

  1. Re-read the live values: pool_size is 8 and max_connections is 400.
  2. Write the rollback first: revert to 8, recorded as audit A-2291.
  3. List what the change touches: checkout-api and ledger-pg.
  4. 4Wait for one approval in #payments-oncall.
  5. 5Apply it, watch the waiters for 10 minutes, and roll back automatically if they climb.

The approval is signed for this exact plan. Tail’s agent refuses to apply anything else.

Approve and apply

Fix it with a plan you can approve.

Tail re-reads live values, writes the exact change and its rollback, and lists everything it would touch.

staging
Staging plans apply straight away and are logged, in this case as audit A-2290.
production
Production plans are reviewed, the rollback is written first, and nothing changes until one person approves.

Stop the same incident twice.

Every incident Tail resolves becomes a check. Pull requests, CI runs and rollouts are compared against it, and risky changes are blocked with a suggested fix.

After the merge, Tail keeps watching. During a staged rollout it compares the new pods with the rest of the fleet, and pauses the rollout if a known pattern starts.

  1. 10%The canary is clear.
  2. 25%The canary is clear.
  3. 50%Paused: 9 requests are waiting on the canary.
  4. 100%Not started yet.

41 of 45 root causes matched

Whenever its model changes, Tail replays your past incidents and publishes the score, including every miss and why.

  • INC-0611Missed: a DNS change at the CDN, which had no connected source.
  • INC-0702Missed: a disk filled up on a node with no connector.
  • INC-0741Half found: there were two causes and Tail found one.
  • INC-0790Missed: an outage at a vendor’s API.

Warnings before the page, not after.

Each warning says how long you have and how often that warning has been right. How prediction works

  • Running out of something

    Tail forecasts when disk, memory, connection pools and quotas will hit their limit.

    Example: the ledger-pg pool will run out in about 18 minutes.

  • Risky changes

    Every pull request and deploy gets a risk score based on how similar changes turned out.

    Example: PR #412 has a change risk of 0.81, which is high.

  • Known incidents starting again

    Tail recognises the early steps of your past incidents as they happen.

    Example: 2 of the 4 steps of INC-2026-0814 have been seen.

Tail works inside the tools you already use. See every integration

  • Grafana
  • Prometheus
  • Datadog
  • PagerDuty
  • Slack
  • GitHub
  • GitLab
  • Kubernetes
  • Argo Rollouts
  • Terraform
  • LaunchDarkly
  • Jira
  • Linear
  • Backstage
  • Statuspage
  • Sentry
  • Postgres
  • Kafka

Try Tail on your last incident.

We’re onboarding a small group of on-call teams. Connect your metrics, logs, deploys and repo, and we’ll replay your most recent incident with you.

Or write to support@systemssolved.com.