Observations

Direct-instrumentation helpers used at the agent work sites.

Properties

Link copied to clipboard

Neutral name handed to Observation.createNotStarted. The semantic span name is owned by the registered io.micrometer.observation.ObservationConvention (in the observability module), whose getName() overrides this at span start — so the core never hard-codes a telemetry name. This placeholder is only ever visible in the rare fallback where a real (non-no-op) registry is present without the embabel conventions.

Functions

Link copied to clipboard
fun <T> observeOrSkip(registry: <Error class: unknown class>, context: () -> <Error class: unknown class>, work: () -> T): T

Run work inside an observe{} span carrying context. The span always closes — and is errored if work throws — because Observation.observe owns the scope, so no scope can leak.