Class AllEndpointsAspect

java.lang.Object
com.nmontytskyi.monitoring.starter.aspect.AllEndpointsAspect

public class AllEndpointsAspect extends Object
AOP aspect that intercepts all public methods of @RestController classes when monitoring.track-all-endpoints=true (or trackAllEndpoints=true in @MonitoredMicroservice).

Methods already annotated with @MonitoredEndpoint are excluded to prevent double-recording — MonitoredEndpointAspect handles those individually.

Metrics are buffered via MetricsBuffer and flushed in batches. All exceptions propagate normally; monitoring failures are logged at WARN level.

  • Constructor Details

    • AllEndpointsAspect

      public AllEndpointsAspect()
  • Method Details