What the agent does
This is for an online furniture store that runs its own checkout: a cart service that calls a payment provider, a sales-tax service, a freight quote for large items and the store's own stock check. Each of those calls is a span in Honeycomb, sent by the checkout service's tracing. When checkout gets slower, the ecommerce manager sees it as a dip in completed orders a week later, and the one developer the store employs has to work back from there. The manager wants a short report every Monday that says which step of checkout got slower than the week before, for which shoppers, with a trace to show the developer.
The run names one connection, honeycomb, which the developer signed in to through Honeycomb's own page. The agent starts with get_workspace_context to find the production environment's slug and the current time, then list_spans on the checkout dataset to see the span names and how often each is a trace root, and find_columns to find the columns that carry the shopper's region, the cart's item count and whether the cart holds a freight-only item. It stops with a note when it cannot find a column the prompt asks for, instead of guessing one.
With run_query it measures each checkout span's P50 and P95 duration and error count for the last seven days and the seven before, broken down by span name. For any span whose P95 grew by a quarter or more, it runs the same query broken down by region and by whether the cart needed a freight quote, and runs run_bubbleup on the slow part of that span's results to see what the slow requests have in common. It opens one of the slowest traces with get_trace and notes where in the waterfall the time went.
It writes checkout-week.md: a table of every checkout step with both weeks' P50, P95 and errors, then a short section for each step that slowed down with what BubbleUp found, the shoppers it affected, and the link to the example trace. It uses only Honeycomb's read tools. Honeycomb's server can also create boards, triggers, SLOs and recipients, and the prompt forbids each of them, so alerting stays the developer's choice.
Start it with one API call
POST https://api.phoenix.so/o/{org}/sessions with this body:
{
"agent": "claude",
"input": "Report which checkout steps got slower this week. Use the honeycomb connection, environment production, dataset checkout. Week: 2026-11-09T00:00:00Z to 2026-11-16T00:00:00Z; the week before: 2026-11-02 to 2026-11-09. 1) Call get_workspace_context, then list_spans on checkout. 2) Use find_columns to find the columns for shopper region, cart item count and whether the cart needs a freight quote; if one is missing, say so and continue without it. 3) With run_query, for each week: P50 and P95 of duration_ms and COUNT where error = true, broken down by name, for spans under the checkout root. 4) For every span whose P95 grew by 25% or more: run the same query broken down by region and by the freight column, then run_bubbleup on the slowest results, and open one trace from them with get_trace. 5) Write checkout-week.md: a table of every checkout span with both weeks' P50, P95 and errors, then one section per slower span with the breakdowns, what BubbleUp found, and the trace link. Use read tools only. Do not call create_board, update_board, create_trigger, update_trigger, create_slo, update_slo, create_recipient, canvas_agent_invoke or feedback.",
"connections": [
"honeycomb"
]
}- Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
- Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
- Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.
What comes back
checkout-week.md says whether any checkout step slowed this week and by how much at the 95th percentile, with a trace to open in Honeycomb. It comes back as an artifact on the session, and the session's answer says in one line whether any step slowed down. When one did, the report names it, says which shoppers it hit (all of them, or only carts that needed a freight quote, or only one region), and links the trace so the developer can see where the time went.
What the manager and the developer check before acting: that the slower week is not a sampling effect on a quiet week, which run_query reports when data is sampled; that a slower external call, such as the freight quote, is the provider's and not a change the store made that week; and whether it cost orders, which the store's order numbers answer, not traces. The report points at a step. Deciding to switch provider, add a timeout or leave it alone stays with them.
Run it on every Monday morning
The developer saves the agent with POST /o/{org}/agents, naming honeycomb and the instructions above with "the last seven days" and "the seven days before that" in place of the dates, and adds a console automation on it with a schedule trigger, cron 0 8 * * 1 and the store's timezone. A schedule fills nothing into the prompt.
After a sale weekend or a change to the payment provider, the manager can start the same agent by hand with those dates in input and compare the weekend with the one before, without touching the Monday automation.
The use case this job follows, with its automation and trigger: Produce a report or file, no repo.
Why run it on Rush?
Checkout traces carry order totals, shipping regions and cart contents, and the Honeycomb sign-in that reads them can also create triggers and change SLOs. On Rush the sign-in stays in the connection, the run reads as the developer who connected it, and the prompt keeps it to read tools, with every call in the run's record.
Each Monday's run has its own computer and a record of every query it ran and what its model calls cost. For a store with one developer, a weekly report that already holds the comparison, the breakdown and a trace saves the first hour of every slowdown, and the manager can read it without learning Honeycomb's query builder.
Frequently asked questions
Do we need to change our tracing for this?
No, if checkout already sends spans to Honeycomb. The report is as good as the attributes the spans carry: a region or a freight flag on the span lets the agent say which shoppers were hit, and without them it reports by step only.
What is BubbleUp doing here?
BubbleUp compares a selected slow part of a query's results with the rest and lists the attributes whose values differ most. The agent runs it on the slow requests of a step that got slower, which often shows a pattern such as one carrier or one region.
Can the agent set up an alert for the slow step?
Honeycomb's server has create_trigger, but the prompt forbids it. The report says which step slowed; the developer decides whether it needs a trigger and creates it.
Our data is sampled. Does that matter?
Honeycomb's run_query corrects for sample rates and returns sampling details when data is sampled. The agent includes those details in the report, so a quiet week with few traces reads as less certain.
More Honeycomb jobs
- How Did Our API Perform for This Customer Last Quarter? A Customer-Success Team's Honeycomb Report
- How Did Checkout Hold Up During the On-Sale? A Ticketing Marketplace's Report From Honeycomb After Each Big Release of Tickets
- Which SLOs Burned the Most Error Budget This Week? A Food-Delivery Marketplace's Monday Review in Honeycomb
More jobs like this: Produce a report or file, no repo
- How Do I Find Which Store Pages Got Slower or Broke for Shoppers This Week? An Online Store's Weekly Report From Datadog RUM (Datadog)
- Which Launch Tasks Are Blocked by Something That's Already Late? A Snack Brand's Weekly Asana Dependency Check (Asana)
- Which Translation Jobs Due This Week Still Have No Translator? A Translation Agency's Daily ClickUp Check (ClickUp)