Switching Between Dev, Deploy and Operate Modes Without Losing the Service You Were On

If moving from a review to production logs means retyping the service, environment and deploy time, the UI has dropped your investigation context. A URL design example that carries service, environment, run ID and time window across three screens.

John Baek
John Baek
Founder, CollabOps
2 min read

You're reviewing change request CR-52, which fixes a booking-cancellation bug. The reviewer asks: "After this fix reached staging, did cancellation requests still fail?" You click Operate and get the last 15 minutes of logs for every service. The reviewer retypes the service name they were just looking at, picks an environment, and hunts for the deploy time. The records existed all along; the search conditions got lost on the way between screens.

Switching modes should carry the investigation with it. When service, environment, deploy run and time window stay in the URL, you can hand a colleague the same view with one link.

Which screens does it take to get from review to operations logs?

Getting from review to operations logs takes three screens. Below is a URL design example where the workspace and project share the common path /{workspace}/{project}/. (Paths and IDs are illustrative.)

ScreenPath after the common prefixWhat the screen shows
Developdevelop/changes/CR-52?service=booking-apiBooking API · change request CR-52 · build #219
Deploydeploy/runs/184?service=booking-api&env=stagingBooking API · staging · run #184, which shipped build #219
Operateoperate/logs?service=booking-api&env=staging&run=184&window=deployBooking API · staging · logs around run #184

Which screen decides the environment?

The environment is decided on the deploy screen, at the moment you pick a specific run. From the develop screen you can't assume which environment the code reached. You open the list of runs that shipped #219, select staging run #184, and now the environment is fixed. The button to the operate screen should then read View logs around staging deploy #184 rather than View logs. You know what you'll see before you click.

Say window=deploy means from 5 minutes before the run starts to 10 minutes after it ends. If the run started at 10:05 and finished at 10:10, the query covers 10:00 to 10:20. A colleague who opens the same URL the next day queries against the same run times and, as long as the records are retained, sees the same failed requests. Their permission to view that project and environment is checked when they open the link.

CollabOps code review links related issues and pipeline run results, and its CI/CD records deployment history through build, verification and approval. Checking whether those links actually work on screen is quick. Hand the failed-request link the reviewer found to the operations owner and see whether anyone still has to explain the service name or time range over chat.

Reading that service in the operate view as a service rather than a pile of pods is covered in Twenty pods, twenty services? Setting the unit for an operations view.

  • #product
  • #ux
  • #observability
  • #deployment
  • #developer-experience