Traces find the motherlode. What about the otherlode?
Find the code that never runs in production, across every instance of your Java, Kotlin and Scala services.
Ask for early access
Or email hello@otherlode.dev.
Every replica, one answer.
Run the agent on every replica. Code only counts as never run when none of them ran it.
What it finds
POST /orders18,204 callsGET /orders/{id}52,911 callsPOST /promonever called
40
fun refund(order: Order)1,204 hits41
fun refund(order: Order, reason: String)318 hits58
fun refundLegacy(order: Order)never hit71
if (customer.isLegacy()) {never true72
total = legacyDiscount(total)73
}74
return total18,204 hitsLegacyDiscountnever loadedAuditLognever initialisedReceiptPrinternever instantiated
jackson-module-kotlin 2.17.1212 of 380 classeskotlinx-coroutines-core 1.8.196 of 1,140 classescommons-csv 1.10.0never loaded
88
fun recalculate(cart: Cart)0 hits in production run by CartTest.recalculatesTotals run by CartTest.handlesEmptyCartDelete it in one go.
Otherlode groups everything behind a branch that never runs.
1
fun checkout(cart: Cart) {2
if (flags.foo) {never true3
bar(cart)4
}5
charge(cart)18,204 hits6
}7
8
fun bar(cart: Cart) = baz(cart)only from line 39
10
fun baz(cart: Cart) {only from line 811
...12
}1
fun checkout(cart: Cart) {2
charge(cart)3
}How it works
Your network
It counts what runs. Attach it with -javaagent.
counts
It gathers counts from every agent and can blank out string literals.
counts
It merges the counts from every replica and shows what never ran.
Download the agent from Maven Central, paste your ingest key at the prompt and start your service with the agent. The quickstart takes you from an ingest key to your first report.
curl -fLO https://repo1.maven.org/maven2/dev/otherlode/otherlode-agent/0.1.0/otherlode-agent-0.1.0.jar
read -rs OTHERLODE_AUTH_TOKEN && export OTHERLODE_AUTH_TOKEN
OTHERLODE_SERVICE_NAME=checkout \
OTHERLODE_INCLUDE_PACKAGES=com.acme.checkout \
OTHERLODE_EXPORT_URL=https://ingest.otherlode.dev \
OTHERLODE_STATIC_BASELINE_ENABLED=true \
java -javaagent:otherlode-agent-0.1.0.jar -jar app.jarSecurity and hosting
- Open source in your network
- The agent and collector are Apache 2.0.
- Blank out string literals
- The collector can blank them out before reports leave your network.
- Data in London
- The database and its backups are in Google Cloud's London region.
- Sign-in
- Use Google, Microsoft, GitHub, or your own SAML or OIDC provider.