Uses of Class
com.ants.platform.tracing.AntsObservation
Packages that use AntsObservation
-
Uses of AntsObservation in com.ants.platform.tracing
Subclasses of AntsObservation in com.ants.platform.tracingMethods in com.ants.platform.tracing that return AntsObservationModifier and TypeMethodDescriptionstatic AntsObservationAnts.currentObservation()Returns a fluent view over the currently active span, ornullif none.Sets the observation input (serialized to JSON).Sets the observation level (e.g.Sets observation metadata.Sets the observation output (serialized to JSON).AntsObservation.recordError(Throwable error) Records an error on this observation: sets the OTel status to ERROR,level=ERRORand a status message, and records the exception.AntsObservation.startChild(String name, ObservationType childType) Starts a child observation parented to this one.static AntsObservationAnts.startObservation(String name) Starts aspan, nested under the current active span if any.static AntsObservationAnts.startObservation(String name, ObservationType type) Starts an observation of the given type, nested under the current active span if any.static AntsObservationAnts.startObservation(String name, ObservationType type, AntsObservation parent) Starts an observation explicitly parented toparent.AntsObservation.statusMessage(String statusMessage) Sets a human-readable status message (typically withlevel("ERROR")).AntsObservation.updateTrace(TraceAttributes attrs) Updates trace-level attributes on this observation's span.Sets a version identifier for the code/model being traced.Methods in com.ants.platform.tracing with parameters of type AntsObservationModifier and TypeMethodDescriptionstatic AntsGenerationAnts.startGeneration(String name, AntsObservation parent) Starts agenerationexplicitly parented toparent.static AntsObservationAnts.startObservation(String name, ObservationType type, AntsObservation parent) Starts an observation explicitly parented toparent.Method parameters in com.ants.platform.tracing with type arguments of type AntsObservationModifier and TypeMethodDescriptionstatic <T> TAnts.observe(String name, ObservationType type, Function<AntsObservation, T> fn) Runsfnwith a new active observation and returns its result.static voidAnts.startActiveObservation(String name, ObservationType type, Consumer<AntsObservation> fn) Runsfnwith a new observation set as the active span, so any observations created inside nest under it automatically.