Skip to content

Start

How Otherlode fits together

Otherlode finds the code in your Java, Kotlin and Scala services that never runs in production. It counts what runs in every instance of a service, then shows you the code that none of them ran.

What it finds

Each finding names a piece of code and says what did not happen to it in the runs you choose. The main kinds are these:

  • Never hit: a method, or one path of a condition, that never ran.
  • Never called: an endpoint that received no request.
  • Never supplied: an optional parameter whose callers always take the default.
  • Never loaded, Never initialised and Never instantiated: a class that no instance loaded, used or created.
  • Stale: code that ran once and then stopped.
  • Unused dependencies: a library that shows no live use.
  • Unreached clusters: never-hit methods grouped under the one root that leads to them, so that deleting the root frees all of them.

Findings describes every kind, what it claims and what it needs.

The parts, and where each one runs

Otherlode has three parts, and you need two of them. The agent and the optional collector run on your machines.

  • The agent runs inside each of your JVMs. You attach it with -javaagent. It counts how often each method runs, which way each condition goes and how often each endpoint is called, and it sends those counts to Otherlode, straight or through your collector.
  • The collector is optional and runs in your network. It receives what your agents send and forwards it to Otherlode. It can replace the string literals in branch conditions and switch case labels with a placeholder before anything leaves.
  • Otherlode is hosted. It stores each run, adds up the counts from every instance and works out the findings. You read them in the web app or through the read API.

The agent and the collector are open source under the Apache 2.0 licence, at otherlode-agent and otherlode-collector on GitHub. Each has a mirror on GitLab: otherlode-agent and otherlode-collector.

What leaves your network

Your agents send their reports to Otherlode with an ingest key, either straight from each JVM or through a collector you run. Sent straight, each JVM holds the key, and string literals leave as your code holds them. Through a collector, the collector is the one place that holds the key and the one host that sends to the internet, and it’s where you turn on blanking. Add a collector says when you need one, and Send data to Otherlode sets up the key.

Otherlode keeps what your agents send in Google Cloud’s London region. What Otherlode keeps lists what it stores and when it deletes it, and the privacy policy covers the personal data.

A finding is a lead to check

A finding says that code did not run in the processes the agents watched, over the time they watched them. It does not say that the code cannot run. A job that runs once a quarter, a failover path or a handler for a rare error reads as unused until the day it runs.

So read a finding together with how long the service has been watched and which environments reported. Dates shows both. How findings are judged explains how far to trust a finding and why.

Next steps

Edit this page in otherlode.dev/src/content/docs/start/overview.md.