Findings and accounts
Unreached clusters and the code path graph
An unreached cluster groups never-hit methods under the one root whose deletion removes them all. The agent sends the call edges and Otherlode builds the clusters across your runs. The agent’s call graph page defines a call edge, how a cluster forms and the kinds of root. This page covers how Otherlode shows them: the Unreached clusters page in the Findings group, and the code path graph on the service overview and on each class page.
Otherlode computes clusters over the runs in the scope you have selected. Changing the environment, the version or the seen-within part of the scope can change a cluster’s root and members. For the scopes people open most, Otherlode computes them in the background with the report, and the page and the graph read the stored result, with the page’s As of saying when it was computed. Known for at least (days) changes the clusters themselves, so with it set the page computes them when you open it. Any other scope is computed when you open it too. The code path graph draws the stored clusters, endpoints, class findings, probes and calls of a snapshot scope. See the snapshots.
A graph too large
Otherlode resolves the call graph of a scope with a limit on the work it does. The limit grows with the number of calls, methods and supertype links in the scope. A service with many calls through an interface that has hundreds of implementations can pass it. The scope keeps every part that does not read the graph: the never-hit code, the classes, the endpoints, the dependencies and the report’s other counts. Three parts read the graph.
- The Unreached clusters page reads
The call graph is too large to resolve.and lists no cluster. The panel shows no count beside Unreached clusters. - The code path graph on the service overview and on each class page reads the same sentence instead of the graph.
- In the Read API, the report’s
unreached_clustersblock has thestategraph_too_largeand anullfor each count, and/unreached-clustersanswers422./call-edges,/class-call-edgesand/method-call-edgesanswer422when the graph of the scope’s runs is too large. When only the clusters are too large, they answer normally. The clusters also resolve the calls your tests make, so they can pass the limit when the graph of the runs does not. The code path graph needs both, so it reads the sentence in either case.
The sentence means Otherlode did not compute the clusters. It does not mean the scope has none. Each refresh and each live read resolves the graph again, so the state ends once the scope’s graph is under the limit. A live read has a lower limit than a refresh, so a scope can read too large live and have its clusters in its snapshot. The call graph is too large to resolve says who to tell.
What a row on the Unreached clusters page shows
The table lists the largest cluster first, then orders equal sizes by root. Each row has these columns.
| Column | What it shows |
|---|---|
| Root | The method, branch or class that starts the cluster, and the callers that lead to it. |
| Root kind | Why the root starts a cluster. See Root kinds. |
| Routes | The endpoints whose handler is the root, as ANY /checkout. Empty for a root that is no handler. |
| Members | The number of methods in the cluster, the root included when it is a method. |
| Never loaded | The number of distinct classes in the cluster that never loaded. |
| Last column | A link, Graph, to the service overview with the cluster highlighted. |
The root cell
The root cell reads by the kind of root.
- A method root shows the class and method. A lambda body reads as its class and then a label such as “
Runnablelambda inmainat line 60”, and a top-level function reads ashandleCheckout in CheckoutServer.kt. Inventory describes the class page. - A branch that never ran reads as the Never hit list reads its condition, then “in” the method that holds it and the condition’s location. The method has hits, so the cluster does not list it as a member.
- A class finding root reads as the class and its finding, such as “AuditLog, never initialised”.
- A root that a method with hits calls adds “called from” and those methods. A caller that the compiler generated carries a label such as “(Kotlin data-class method)”.
When tests call an uncalled root but no complete static baseline rules out another caller, the cell adds this line: “Tests call it. No run in scope has a complete static baseline, so a class that never loaded is not checked.”
Root kinds
The Root kind column uses these labels. The label adds the outside caller when the root’s method has one.
| Label | What Otherlode means | Agent page |
|---|---|---|
| uncalled | A method that nothing in scope calls and that has no outside caller. | Root kinds |
| reached from hit | A method that a method with hits calls, with the call not behind a branch that never ran. | Root kinds |
| branch never taken | A branch outcome that never ran, in a method that has hits. | An untaken outcome roots the cluster behind it |
| class never loaded, class never initialised, class never instantiated | A class that holds that class finding. | Classes |
| called from outside scope | A method that nothing in scope calls, with an outside caller. | Outside callers |
| called only by tests | A method that nothing in scope calls and a test calls. | Test runs |
The outside caller reads “overrides a method of HttpHandler” or “annotated @EventListener”. The label changes only the root’s kind. The method stays never hit and still joins the cluster of a never-hit caller. Otherlode reports an outside caller on method roots only, never on a branch or class root.
A root is called only by tests when all of these hold.
- No in-scope production run calls the method.
- At least one test calls it.
- The method has no outside caller.
- At least one in-scope run sent a complete static baseline, which rules out a caller in a production class that never loaded. See Enable the baseline.
Without that baseline the root stays uncalled and keeps its test callers. A root with an outside caller keeps that kind even when tests call it, and still names those tests.
Test callers
A test caller is a method of a test class that has a call edge to production code. A test class is a class that no production run of the service names, in any environment, and that no production run ever loaded, even one whose data has since been removed. So a class that loads only in production is never a test class. The tests come from your test runs. The scope selector does not apply to them, and they never change which methods are roots or what a cluster holds. Test runs in the top bar’s evidence list counts the test runs the service holds. When it reads “none”, no test callers show.
Otherlode names a test as PayTest.refunds, with “(line 31)” added when it knows the line. A lambda or anonymous class in a test reads as the test method that creates it. A test body that a constructor creates, as in a Kotest spec, reads as its class alone with its line, such as SpecTest (line 18). A test that only reads a static field of a class the cluster holds whole is named as a caller of that class.
The expanded row
The expanded row has up to two tables.
The members table lists the classes the cluster holds whole first, such as “LegacyRates, never loaded, 1 method”, then every other method. Otherlode lists a class whole when the cluster holds every judgeable method of it, and never lists a class’s static initialiser as a member. It also leaves out the constructor of a class that nothing constructed, such as a utility class’s private constructor.
The test table lists each test with the cluster method it calls, the root’s own test callers first.
The expanded row shows at most 200 members, 200 whole classes and 200 test calls. Members keeps the true count.
Filters on the Unreached clusters page
The page applies the selected scope, then these two filters.
Class prefix keeps the clusters whose root’s class name starts with the text you type. It does not remove members from a cluster it keeps.
Known for at least (days) sets the known_for_days parameter, a whole number from 1 to 36500. A method counts as never hit only when its first known date is at least that many days old, so a recently added method is neither a root nor a member. A branch outcome follows the same rule, and so does a class finding. A never-loaded method always counts, whatever the number. Leave the field empty for no window. See Dates for first known and for dates that a filter cannot prove.
The count beside Unreached clusters in the panel uses no window. With Known for at least (days) set, the table can list fewer clusters than the panel counts. The Read API takes the same parameter on its unreached-clusters route, and answers a bad value with the error “known_for_days must be a whole number from 1 to 36500”.
What the clusters leave out
Otherlode judges clusters over production runs only, and only for code it can judge.
- Test runs. A test run adds test callers and nothing else. Every method count, hit and cluster reads production runs.
- Stripped runs. A run that carried
fields_strippedmakes no claim, so no cluster reads it. See How findings are judged. - Inline, generated and unread-shape methods. They are stored and shown, but never a root or a member. A call that passes through a generated method continues along that method’s own calls, and a generated method with hits counts as a caller that ran.
- Routine outcomes. A routine branch outcome never roots a cluster. A call it guards starts at its method.
- A class that failed to load. It is a deployment to fix, not dead code. No cluster holds it, even when a complete baseline declares it. See Findings.
- A method with a caller Otherlode cannot judge. A caller in a class the agent skipped or never reported has no hit count, so the methods it calls are not roots.
- Code a run not yet settled knows. A method, a branch outcome or a generated method with no hits that a run not yet settled knows may have run, in counts that run has not delivered. It is neither hit nor never hit. It is no root and joins no cluster, and the code only it reaches is not claimed either. A call that such an outcome guards roots nothing. The graph draws it as not judged, and its hits still count if it has any. Scope covers settled runs.
- Code no run is evidence for. A method or branch outcome with no hits, where no in-scope run that knows it is evidence about its class, makes no claim. It is no root and joins no cluster, and a call such an outcome guards roots nothing. See without evidence.
- Code the service has recorded a hit of. On a read that names no version and no seen-within window, a method, a branch outcome or a generated method with no hits in scope that the service has recorded a hit of counts as hit. It is no root and joins no cluster, and the never-hit code it calls can root a cluster as the callee of hit code. The panel still shows its hits in scope. A read that names a version or a seen-within window leaves the record out.
- A branch outcome Otherlode withholds. A keyless outcome with no hits, in an environment that has lost a production run, makes no claim, since the removed run may hold its only hit. It is no root and joins no cluster, and a call it guards roots nothing. The graph draws it as not judged, and its tooltip gives the reason.
- A method called from two clusters. It belongs to neither, since deleting one root would leave it called. It stays on the Never hit list.
- A cycle of never-hit methods with no outside caller. It has no root, so no cluster lists it.
- A branch or class root that holds only itself. The Never hit list or the class finding already says everything there, so the page lists no cluster.
The code path graph
The graph draws what code runs from each entry into your service. It appears on the service overview and on each class page. Both read the in-scope production runs. The graph’s clusters use no known_for_days window. The page address holds the filters, the stale window, the selected node and the highlighted cluster, so a copied link opens the same view.
Nodes
- Endpoint. An endpoint whose handler is a method the agent reports is judged by that handler’s hits, and reads “Never called” when it has none. A handler the service has recorded a hit of has hits for this, on a read that names no version and no seen-within window. Any other endpoint reads “Never called” exactly when its status on the Endpoints page is Never called. That covers an endpoint with no handler, a handler the agent does not report (framework code outside the include rules), and a handler that is inline, generated or never loaded. An endpoint whose status is Counts behind, Without evidence or Not judged never reads “Never called”. An endpoint with no handler whose framework module any run in scope switched off, or on a full read the environment’s record names, never reads “Never called”, since another run’s zero says nothing about the calls the disabled run served uncounted.
- Method. A method with no hits that a run not yet settled knows carries “Not judged” and draws as not judged, never as never hit. The method’s panel adds a Counts line that says so. A handler the agent does not report, with no hits, carries “Not judged” too. A method with no hits that no run is evidence for carries “Not judged” too, and its panel adds an Evidence line that says so. A method whose dates are capped and whose last hit is older than the stale window draws as not judged and has no badge.
- Class. The class frame stands for its static initialiser, so a call into the class draws an arrow to the frame.
A method is an entry method when it has hits, no endpoint hands to it, and none of its in-scope callers has hits. Code the service has recorded a hit of counts as having hits, as a method and as a caller. Something outside the call graph invokes it, such as main, a scheduler or a message listener, so the graph draws it as a root, as it does an endpoint.
What the graph draws
The graph draws each endpoint that is not an outside route and each entry method, and everything each of them links, calls or creates, with the class frame and the conditions of every method it draws. A method that no root reaches is not drawn. That covers an uncalled root and what only it reaches, and a group of hit methods that call only each other. Code in a cluster is drawn when you highlight that cluster. A method is drawn when you follow its Graph link on the Never hit or Stale hit page. See Filters.
The graph shows 50 roots at a time, in the order of /graph-roots: endpoints first, then entry methods. It draws what those roots reach, and at most 500 methods, the ones nearest those roots. When the filters keep more than 50 roots, a line states the roots shown out of the roots kept, such as Roots 1–50 of 4,245, with Previous and Next to move between pages. The page is in the address as roots, so a copied link opens the same page, and a change of status, search or stale days goes back to the first page. When the roots on the page reach more methods than 500, a line states the methods drawn out of the methods reached, such as 500 of 25,400 methods. A cluster or a method you highlight or follow a link to is drawn on top of whichever page is shown. When what it reaches is more than 500 methods, a line of its own states the methods drawn, headed Highlight or Selected, such as Highlight: 2 of 902 methods. When the highlight takes more than one read and one was cut, the line says more left out in place of the total. The graph joins the highlighted root to the callers of it that are drawn on the page.
With no endpoint and no entry method to draw, the graph area shows one of these facts.
- “No run in scope.” No run matches the scope.
- “Nothing judged.” Every run that matches the scope is a stripped run, from a collector older than its agent or with fields Otherlode does not know. Such a run makes no claim, so it is not in scope.
- “No endpoints or entry methods to draw”. The service has runs in scope, but none of them knows an endpoint that is not an outside route, or an entry method. The graph area also shows this when the service’s report could not load. When an in-scope run reported a framework marker, Otherlode’s label for each marker follows, such as “A grpc-java server started”. Routing the agent does not count was set up in that run. See Routing whose routes are not counted.
A scope whose call graph is too large to resolve shows “The call graph is too large to resolve.” in the graph area. See A graph too large.
When the filters keep no root, the graph area reads “No root matches the filters.”, unless it draws a highlighted cluster or a Graph method.
While Otherlode computes the graph’s data, the page asks again every 30 seconds.
Edges
| Line | Meaning |
|---|---|
| Solid line with an arrowhead | A call, or a handler link from an endpoint to its method. |
| Dashed line | Virtual call. The call names a type, and Otherlode widens it to every override it knows. |
| Dotted line with no arrowhead | Creates. A method makes a lambda or a body class that someone else runs. |
A creation reaches its target as a call does, because a lambda body can run only after its creator ran. See What a call edge is and Body classes.
The legend
| Legend entry | Meaning |
|---|---|
| Live | The code has hits, and its last hit is within the stale window. |
| Stale | The code has hits, its last hit is older than the stale window, and its dates are not capped. |
| Never hit | The code has no hits in scope, and on a read that names no version and no seen-within window, the service has recorded no hit of it either. |
| Never loaded | A complete static baseline declared the method, no run loaded its class, and no run not yet settled could have loaded it. |
| Not judged | An inline method, a routine branch outcome, code with no hits that a run not yet settled knows, code with no hits that no run is evidence for, a handler the agent does not report, with no hits, a method or outcome whose dates are capped and whose last hit is older than the stale window, or a keyless branch outcome with no hits in an environment that has lost a production run. A withheld outcome’s tooltip says that no claim is made because a run of its environment was removed. |
On a read that names no version and no seen-within window, code with no hits in scope that the service has recorded a hit of counts as hit. The graph draws it as live or stale by its recorded dates, with a hit count of 0.
The stale window is the Stale after (days) field, 30 by default. It does not change which methods are never hit.
Filters
The overview has these filters.
- Status keeps roots by state: All roots, Never called endpoints, Roots with unreached clusters and Stale roots. Stale roots keeps an endpoint that is stale and an entry method that is stale. An endpoint is judged by its handler when the handler is a method the agent reports. Any other endpoint is stale exactly when its status on the Endpoints page is Stale. The page’s Stale after (days) sets the cutoff for both. An endpoint or a method that a run not yet settled knows is neither never called nor stale. A method or condition whose dates are capped is never stale. Roots with unreached clusters keeps a root that reaches a cluster root, a method that holds a branch that roots a cluster, or a class that roots a class finding cluster. An entry method has hits, so Never called endpoints never keeps it.
- Search keeps a root when its route, verb or class or method name, or any node it reaches, contains the text, ignoring case. The search covers everything a root reaches, not only the part the graph draws, and the graph then draws the roots it keeps. A regular expression or servlet pattern template is searched as written. A method in a file facade also matches on its file name, such as
CheckoutServer.kt. The graph marks the drawn nodes that match. When the 500 methods cannot hold all of what the kept roots reach, the graph keeps every root of the page first, then the methods on a shortest path from each root to the methods the text matches, so a match deep under a root is drawn with the path that leads to it. A scope with no snapshot is read live, and each search is one live read, so the search starts when you press Enter or leave the box, not as you type.
The status filter and the search both apply. A root that one of them rejects is dropped, and the graph draws the rest, up to the limit above.
Click a cluster root in the graph, or follow Graph on the Unreached clusters page, to highlight a cluster. A chip names its root, and Clear removes the highlight. The graph draws the highlighted cluster even when no drawn root reaches it, and even when the filters keep no root. It draws the cluster’s root and every method of the cluster and everything they call or create, with the calls between them, up to the 500 methods of the closure. For a branch root, it draws the method that holds the branch, and everything that method calls. The filters still choose the roots, and the cluster is drawn beside them. Clear removes the code that only the cluster added.
Graph on the Never hit and Stale hit pages opens the method’s panel. It also draws the method beside the kept roots, with everything it calls or creates, even when no kept root reaches it. A condition row draws the method that holds the condition. When an outcome of the condition roots a cluster, or the method roots or is a member of one, the graph highlights that cluster and the chip names the cluster’s root. When the graph knows no cluster for the code and no kept root reaches it, the chip names the method or the condition instead. Clear removes the chip, the highlight and the code that only the link added.
Not every never-hit method is in a cluster the graph knows. A method called from two clusters belongs to neither, and a cluster lists at most 200 members. Such a method draws with no highlight.
The node panel
Click an endpoint or method to open its panel, or move focus to it with Tab and press Enter or Space. Drag the panel’s edge, or press the left and right arrow keys on it, to change its width. The browser remembers the width until you sign out. Escape closes the panel, unless focus is in a text field, an open menu or a popover.
An endpoint’s panel shows the status the Endpoints page shows for it. A never-loaded method’s Calls tab lists callers only. The Calls tab reads the method’s edges from /method-call-edges when the panel opens, so it lists every caller, callee and creation of the method, including those the graph does not draw.
The number on each tab counts these things. Paths counts the conditions with an untaken path. The outcomes of one condition share a site key, or a site index when the agent sent no key. Cluster counts the members of the cluster. Calls counts the callers, callees and creations of a method, or what initialises a class plus what its initialiser calls.
Paths lists the conditions with an untaken path, and its Routine outcomes holds the routine outcomes that never ran. A method with routine outcomes and no untaken path has a Paths tab with no number, and the panel opens on another tab if there is one.
Created in names the outermost method whose name the source gave, followed back through any lambda and body class. It links to that method when the graph has exactly one match. A method of an anonymous or local class keeps its own name and ends the walk.
The class page graph
A class page reads one class, from /class-call-edges and the class’s probes, and draws it: its methods and their conditions, the endpoints that hand to those methods, and the direct callers and callees of those methods, one hop each way. It draws no further closure and has no status or search filter. The page’s heading, finding and counts belong to Inventory.