All Classes and Interfaces
Class
Description
Feign
RequestInterceptor that writes the current @Logged
call chain's trace id and depth into an outgoing Feign client request's
headers, via HttpTraceHeaderCarrier.Tracks the position of the current method invocation within a chain of
nested
@Logged calls on the same thread.The sanctioned public entry point for reading and writing this thread's
active
FlowContext from outside the aspect package.Executor decorator that carries the submitting thread's
FlowContext and MDC context over to whatever
thread actually runs the submitted task.TaskDecorator that carries the submitting thread's
FlowContext and MDC context into whatever thread
Spring's @Async infrastructure actually runs the task on.IClientInfoPort implementation that resolves the caller purely
from the current HTTP request's client IP address, via
RequestClientIpResolver.ClientHttpRequestInterceptor that writes the current
@Logged call chain's trace id and depth into an outgoing
RestTemplate request's headers, via HttpTraceHeaderCarrier.ExchangeFilterFunction that writes the current @Logged
call chain's trace id and depth into an outgoing WebClient
request's headers, via HttpTraceHeaderCarrier.Carries a
@Logged call chain's FlowContext across a
synchronous HTTP call, by writing it into the outgoing request's headers
and reading it back from the incoming request's headers.Servlet
Filter that reads the incoming HTTP
request's trace headers, if present, and adopts them as the active
@Logged call chain for the duration of the request, via
HttpTraceHeaderCarrier.Output port responsible for resolving who triggered the current method
invocation.
An
IClientInfoPort that always returns a fixed, test-controlled
caller identity, instead of resolving one from Spring Security or the
current HTTP request.An
InvocationEventEmitter that records every event it receives in
memory instead of publishing it anywhere, so a test can assert on what
@Logged actually observed about a call.A
MetricsRecorder that records every call it is asked to record
in memory as a RecordedMetric, instead of forwarding it to a real
metrics backend such as Micrometer.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.InvocationEventEmitter that writes each event as a single line of
structured JSON through SLF4J, instead of the human-readable line produced
by Slf4jInvocationEventEmitter.Carries a
@Logged call chain's FlowContext across a Kafka
message, by writing it into the message's headers when producing and
reading it back when consuming.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.The
MDC key names this library writes to while a @Logged
method is executing.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 MDC propagation.
Properties controlling metrics recording.
Fails application startup when
Logged is applied to a method that
cannot be correctly instrumented: a method on a JPA entity, a Spring Data
repository interface implementation, a class annotated with
@Repository, or a method returning a reactive
org.reactivestreams.Publisher (Reactor's Mono/Flux,
or an RxJava adapter that implements the same interface).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.Carries a
@Logged call chain's FlowContext across a
RabbitMQ message, by writing it into the message's properties when
publishing and reading it back when consuming.A single call recorded by
InMemoryMetricsRecorder, mirroring the
parameters of MetricsRecorder.record(java.lang.String, java.lang.String, long, boolean, java.lang.String)
so a test can assert on exactly what was reported.Executor decorator that carries the submitting thread's Spring Web
RequestAttributes over to whatever thread actually runs the
submitted task.TaskDecorator that carries the submitting thread's Spring Web
RequestAttributes into whatever thread Spring's @Async
infrastructure actually runs the task on.Executor decorator that carries the submitting thread's Spring
Security SecurityContext over to whatever thread actually runs the
submitted task.TaskDecorator that carries the submitting thread's Spring Security
SecurityContext into whatever thread Spring's @Async
infrastructure actually runs the task on.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.