MicrometerHelpers

@ApiStatus.Internal
class MicrometerHelpers

Shared helpers for building Micrometer observations that mirror the spans produced by sdk-interceptor-opentelemetry: same span names and the same attribute set ( restate.invocation.id, restate.invocation.target, restate.run.name).

Properties

Link copied to clipboard
val INVOCATION_ID: String = "restate.invocation.id"
Link copied to clipboard
val INVOCATION_OBSERVATION: String = "restate.invocation"
Link copied to clipboard
val INVOCATION_TARGET: String = "restate.invocation.target"
Link copied to clipboard
val RUN_NAME: String = "restate.run.name"
Link copied to clipboard
val RUN_OBSERVATION: String = "restate.run"

Functions

Link copied to clipboard
open fun headersReceiverContext(headers: HeadersAccessor): ReceiverContext<HeadersAccessor>
Build a ReceiverContext wrapping the attempt headers for W3C / B3 extraction.
Link copied to clipboard
open fun startHandlerObservation(registry: ObservationRegistry, recvCtx: ReceiverContext<HeadersAccessor>, request: HandlerRequest): Observation
Link copied to clipboard
open fun startRunObservation(registry: ObservationRegistry, @Nullable runName: @Nullable String): Observation