Skip to content

Metrics

Garvit Joshi edited this page Oct 9, 2026 · 1 revision

When a Micrometer MeterRegistry bean exists, for example through spring-boot-starter-actuator, Locksmith records two timers. A timer is a Micrometer meter that counts events and records how long each took. Without a registry it records nothing. There is no property.

Meter Tags Records
locksmith.acquire primitive = lock or semaphore; outcome = acquired, skipped or interrupted the time the acquire took, once per acquire that returns; a semaphore key's first acquire in an instance includes setting its permit count
locksmith.held primitive = lock or semaphore the time from acquire to release, once per successful release

skipped means the wait time ran out. The key is not a tag, so the number of meters stays fixed.

Clone this wiki locally