All Classes and Interfaces
Class
Description
Tracks the position of the current method invocation within a chain of
nested
@Logged calls on the same thread.IClientInfoPort implementation that resolves the caller purely
from the current HTTP request's client IP address, via
RequestClientIpResolver.Output port responsible for resolving who triggered the current method
invocation.
Output port responsible for delivering a
MethodInvocationEvent to
wherever it needs to go: an SLF4J logger, a metrics backend, a message
queue, or any other sink.MetricsRecorder that defers the choice between a real
Micrometer-backed recorder and a no-op fallback to the first actual
invocation, instead of to Spring Boot auto-configuration ordering.Marks a method for automatic observability: invocation logging and metrics
collection through an AOP-based interceptor provided by an adapter module
(for example logged-spring).
Spring AOP interceptor that implements the behavior described by
Logged.Measures the overhead
LoggedAspect adds to a method call,
compared to calling the same logic directly with no interception at all.Auto-configuration that wires the default port implementations and
LoggedAspect into a Spring Boot application, so that adding this
module as a dependency is enough for @Logged to work without any
further setup.Configuration properties for this library, bound under the
logged
prefix in an application's own configuration (for example
application.yml).Properties controlling how the caller's identity is resolved.
Properties controlling metrics recording.
Fails application startup when
Logged is applied to a method on a
class that should never carry observability instrumentation: a JPA
entity, a Spring Data repository interface implementation, or a class
annotated with @Repository.Immutable record describing a single method invocation captured by a
Logged interceptor.Output port responsible for recording invocation metrics: how many times
a method was called, how long calls took, and how many of them failed.
MetricsRecorder implementation backed by Micrometer.A no-op
IClientInfoPort that always reports the caller as
unknown.A no-op
InvocationEventEmitter that discards every event it
receives.A no-op
MetricsRecorder that discards every invocation it is
asked to record.Default
InvocationEventEmitter that writes each event as a single,
human-readable line through SLF4J.IClientInfoPort implementation that resolves the caller as the
authenticated Spring Security principal when one is present, falling back
to RequestClientIpResolver otherwise.