Debug a service
Find out what runs, whether the last deploy worked, and what the service logged. You go from an environment, to one deploy, to the logs, metrics and traces of one service.
What happens in the cloud
- Each deploy names the commit, the release set and the revision that serves. The platform keeps that chain, so a signal traces back to the code that produced it.
- Your service sends logs, metrics and traces to a collector of your workspace. The deploy sets the
service.nameof each signal to the name of the app. - The platform keeps logs 30 days, traces 30 days and metrics about 24 months.
putnami cloud logs,metricsandtraces, and the Live and Metrics pages of putnami.app, read those signals for your workspace and environment.
Read Signals for the model.
Do it
Start from the environment
putnami cloud env status prodIt checks the channel that prod follows and each workload. A workload that fails reads failing and names the fix. This sample leaves out 11 workloads that read ok and two metrics:
env failing prod: 11 of 12 workloads ready, canary gen 315
METRIC VALUE WINDOW
workloads declared 12 now
workloads ready 11 of 12 (92%) now
prod CD generation 315 now
STATE CHECK DETAIL
failing prod 11 of 12 workloads ready, canary gen 315
ok channel canary gen 315 opened 2026-10-04T08:18Z (rs_8fa9d34e…), release cm_721cd93a
failing shop/workloads/web failed, revision web-00041: image pull refused
fix: putnami cloud deploy status cm_721cd93a| Want to… | Do this |
|---|---|
See recent errors and whether the served commit is on main |
putnami cloud env status prod --health |
| See commit, release and revision of each project | putnami cloud env status prod --provenance |
| Read one deploy, workload by workload | putnami cloud deploy status <cm_id> |
--health adds the columns ERRORS (10m), TOP ERROR and ON MAIN. ON MAIN compares the served commit with your local checkout and never fetches. Run git fetch first.
deploy status takes a cm_… or a rel_… id. It refuses a release set id (rs_…). It exits 1 when the deploy failed or ended partial or skipped. A deploy still in progress reads degraded.
Query the signals
| Want to… | Do this |
|---|---|
| Read recent errors | putnami cloud logs <app> --since 1h --level error |
| Read the logs since the last deploy | putnami cloud logs <app> --since deploy:last |
| Follow the logs live | putnami cloud logs <app> --follow --output=jsonl |
| Query metric series | putnami cloud metrics <app> --window 1h --output=jsonl |
| Find slow requests | putnami cloud traces <app> --slow 500ms --output=jsonl |
| Read one trace with all its spans | putnami cloud traces --trace <trace_id> |
The commands read the linked workspace. Add --env <env> to choose another environment than prod. --app <app> also names the app. A page ends with a cursor: pass --cursor, or pass --all to read every page.
--since deploy:last works for logs only, and needs an app. The window starts when the last deploy that made the app serve began. It holds the first logs of the new revision and the last logs of the old one. A deploy that failed before its revision took traffic does not count. If the deploy history is briefly unavailable, the command fails with a retryable 503. It never guesses a deploy.
Change how much a service traces and logs
You change sampling and log level without a deploy. A row applies to the workspace, or to one app with --app:
putnami cloud telemetry show
putnami cloud telemetry set --app <app> --ratio 1 --log-level debug --for 1h
putnami cloud telemetry reset --app <app>| Flag | Sets |
|---|---|
--budget |
The root traces an instance keeps first (0 to 1000000). |
--ratio |
The share of root traces kept after the budget (0 to 1). |
--floor |
The root traces kept each minute whatever the ratio picks. |
--parent |
follow keeps the sampling decision of an outside parent. decide lets the app decide. |
--log-level |
debug, info, warn or error. A level below the service's own changes nothing. |
--for |
The time the row lasts, such as 30m or 1h. Without it the row holds until reset. |
set keeps the fields you do not name. Services apply a change within a few minutes. An app takes each field from its own row, else from the workspace row.
What you see
- Live: open your workspace, the Live tab, then a module. The module sheet shows what the served commit declares: HTTP routes, pages, databases, buckets, events, scheduled jobs, secret names, config keys and migrations. links highlights callers and callees. Links are declared in code, not observed in production.
- Metrics: open Metrics in the sidebar. It goes from all workspaces, to one workspace, to one service (requests, errors, p95), to one metric as a chart that you split by a label such as
http.route. Copy link shares exactly what you see. Errors are the share of 5xx answers.
When it fails
| You see | Cause | Fix |
|---|---|---|
logs returns nothing |
The window holds no logs, or the app name is wrong. | Widen --since. Pass --app <app>. |
--since deploy:last fails with 503 |
The deploy history is briefly unavailable. | Run the command again. |
ERRORS (10m) shows - |
You use a machine token, which cannot read logs, or the logs read failed. | Sign in with putnami cloud login. |
ON MAIN reads unknown |
Your checkout has no main ref, or does not have the served commit. |
Run git fetch. |