Which Service Is Actually Broken? A Dependency Graph Built From Your Traces
When checkout fails, the cause is often two hops away, in a database or a third party checkout calls. TicketResolve keeps a dependency graph built from your traces, with health and confidence on every link, change history, shared infrastructure across investigations and the likely origin of a cascade.

A customer reports that checkout fails. The checkout service's error rate is up. Is the bug in checkout, or in the payment service it calls, or in the database the payment service uses?
Support usually can't tell. Engineering can, but only after opening three dashboards.
Here's a Saturday afternoon at a ticket-sales company:
- 14:10. Checkout errors jump. The checkout team is paged. They look at their own service: no deploy, no config change, CPU normal. Their errors are timeouts calling payments.
- 14:25. The payments team is paged. Their errors are timeouts too, calling a database.
- 14:40. The database team finds it: a long-running report on the payments database is holding locks.
- Meanwhile, two other investigations are open: "refunds failing" (refunds service, which also uses the payments database) and "order confirmations delayed" (which waits on payments). Three teams, three investigations, one database.
The relationships were already in the traces. TicketResolve now keeps them as a graph.
First, the basics
- A service is one part of your system, such as checkout or payments.
- A dependency is something a service calls: another service, a database, a cache, a queue or a third party.
- Distributed traces (from OpenTelemetry or Datadog APM) follow one request across services. A span is one operation in a trace; its parent span is the operation that called it.
- Observed links come from traced calls between services. Inferred links come from span names, such as a SQL query, which is weaker evidence.
- Error rate is the share of calls that fail.
- Confidence here is how sure we are a link exists, from how many calls were seen and how recently.
- A cascade is a failure spreading through dependencies. The likely origin is the deepest failing dependency.
Why does this matter? When everything turns red at once, the cause is usually one or two hops away from where the errors show. A graph from your own traces, with health on every link and the deepest failure called out, tells you where to look first and which open investigations are the same problem.
The problem, in plain terms
- Errors show up where the customer is, not where the cause is.
- Each team checks its own service.
- Diagrams are out of date.
- Related investigations run separately.
- New dependencies arrive unnoticed.
Built from what actually happened
Every hour, TicketResolve reads the last 24 hours of your distributed traces (OpenTelemetry, Datadog APM) and updates the graph:
- Service → service calls are observed: a span in one service whose parent span is in another.
- Databases, caches, queues and third parties are inferred from span names, such as a
SELECT …query, aredis GET, akafka.publishor aPOST api.stripe.com. These links are drawn dashed and labelled inferred, because a name is weaker evidence than a traced call.
Nothing is guessed from naming conventions or a diagram someone drew once. If it isn't in your traces, it isn't in the graph.
Health and confidence on every node
Each dependency shows:
- calls and error rate over the last 24 hours
- the production errors on it, from your monitoring tools
- open customer issues on it
- for each link, a confidence level (high, medium or low) based on how many calls were seen and how recently
The origin of a cascade
When a service fails because something it depends on fails, every dashboard turns red at once. TicketResolve follows the failing links down to the deepest failing dependency and calls it the likely origin of the cascade.
For example: "checkout and payments are failing, and so is the database payments depends on." That's labelled for what it is, an inference from error rates on observed calls. It tells you where to look first. It doesn't confirm the cause.
Shared infrastructure
Two open issues on two different services can turn out to be one problem. TicketResolve lists open investigations that depend on the same database, cache, queue or service, failing dependencies first, so the duplicate investigation doesn't happen.
Changes over time
The graph keeps its history:
- dependencies that appeared, such as a new third-party API in last week's release
- dependencies that disappeared after seven days without calls
- links whose error rate doubled
- calls that became much slower
Part of every investigation
The root-cause engine uses the graph as a diagnostic. If the service in a customer's issue calls something that's failing at the same time, that becomes evidence for the matching hypothesis: a failing database, cache, queue, upstream service or third party.
A worked example, start to finish
Here's the same Saturday, with the dependency graph. The details are illustrative.
14:10. Checkout errors jump; a customer ticket opens an investigation on checkout.
14:11, the graph. From the last 24 hours of traces:
- checkout → payments: observed, high confidence; error rate 18% (normally 0.2%).
- payments → payments-db (inferred from
SELECT …spans, dashed): error rate 22%, slow. - checkout → inventory: observed, healthy.
- payments → api.stripe.com (inferred, dashed): healthy.
Likely origin of the cascade: payments-db, labelled as an inference from error rates on observed calls.
14:12, shared infrastructure. Open investigations depending on payments-db, failing dependencies first:
- "Refunds failing", refunds service → payments-db.
- "Order confirmations delayed", confirmations → payments → payments-db.
14:12, the root-cause engine. The graph diagnostic gives evidence for the hypothesis failing database. The engine's next diagnostic, database locks and slow queries, shows lock waits up sharply.
14:15. One page goes to the database team instead of three teams in sequence. They find the long-running report holding locks and stop it.
14:20. Error rates fall across checkout, payments, refunds and confirmations. The three investigations are linked as one problem; one root cause.
Monday, changes over time. The graph's history shows the reporting service's link to payments-db appeared last Wednesday, in a release nobody had connected to payments. The team moves reports to a read replica.
Five more real-world scenarios
1. A link seen rarely
Situation. A service called another twice yesterday.
How TR handles it. The link shows low confidence, from few calls.
2. A new third-party API
Situation. Last week's release started calling a new address-validation API.
How TR handles it. It appears as a new dependency in the graph's history.
3. A retired dependency
Situation. A service stopped calling the old search cluster.
How TR handles it. It disappears after seven days without calls.
4. A link that got slower
Situation. Calls to the pricing service became much slower after a deploy.
How TR handles it. The change shows in the graph's history.
5. Something not in the traces
Situation. A batch job writes to the database but isn't traced.
How TR handles it. It isn't in the graph. If it isn't in your traces, it isn't drawn.
Before and after
Before. Three teams paged in sequence over 30 minutes, three investigations for one database, and a new dependency nobody knew about.
After. A graph from the last 24 hours of traces, the database named as the likely origin within a minute, two related investigations surfaced, one page to the right team, and the new dependency visible in the history.
How to tell it's working
- The first team paged is more often the right one.
- Related investigations are linked early.
- New dependencies are noticed after releases.
Using the graph during an incident
When several services turn red, a few questions get you to the right team quickly:
- Which links are failing? Start from the service in the customer's issue and follow links whose error rate is up.
- Where does the failure stop? The deepest failing dependency is the likely origin. Page that owner first.
- Which other investigations share it? Link them so one root cause closes all of them.
- What changed recently? New dependencies, slower calls or a doubled error rate in the history often explain why today.
Most of the time, the answer to the second question is the one that saves the most time: it turns three sequential pages into one.
Who it's for
- On-call engineers and SREs.
- Support engineers who need to know which service a ticket belongs to.
- Architects who want an up-to-date picture.
How it fits with the rest of TicketResolve
The graph feeds the root-cause engine as a diagnostic, architecture intelligence in Reliability Intelligence, structured fix proposals' side effects, and investigations' shared-infrastructure lists.
Observed or inferred: why it matters
A traced call between two of your services is direct evidence: a span in one service had a parent span in the other. A link to a database inferred from a span named SELECT … is weaker: the name says what the span did, not exactly which database it reached, and a mislabelled span can mislead. That's why inferred links are dashed and labelled, and why cascade origins are called "likely". Where it matters, instrument the call properly and the link becomes observed.
Mistakes to avoid
- Reading the likely origin as a confirmed cause.
- Trusting old diagrams over the graph.
- Leaving key services untraced. They won't appear.
Do it in TicketResolve, step by step
Where: the investigation's dependency view (/dashboard/investigate). You'll need: distributed traces from OpenTelemetry or Datadog APM; monitoring tools for production errors. Full guides: TR Investigate: from a ticket to a verified fix and How the investigation engine works.
- Send traces from OpenTelemetry or Datadog APM.
- Wait for the first hourly update. The graph reads the last 24 hours.
- Open an investigation and its service's dependencies.
- Read each link: observed or inferred, calls, error rate, confidence.
- Check the likely origin of any cascade.
- Check shared infrastructure for related investigations.
- Review changes over time after releases.
How to check it worked: an investigation's service shows its dependencies with error rates and confidence, and failing chains show a likely origin.
Frequently asked questions
Where does the graph come from? The last 24 hours of your distributed traces, updated every hour.
What's observed vs inferred? Observed: traced calls between services. Inferred: dependencies from span names, drawn dashed.
Is anything guessed? No. If it isn't in your traces, it isn't in the graph.
What does each dependency show? Calls, error rate, production errors, open customer issues, and confidence per link.
What's the likely origin of a cascade? The deepest failing dependency, labelled as an inference.
Does it confirm the cause? No. It tells you where to look first.
How long before a dependency disappears? Seven days without calls.
Does it feed investigations? Yes, as a diagnostic in the root-cause engine.
Who should be paged first in a cascade? The owner of the likely origin: the deepest failing dependency.
Do we need to draw the graph ourselves? No. It's built from your traces every hour.
Explore Topics
Written by
Ghulam Shabbir
Content creator and writer sharing insights and stories.


