Class WithSpanAspect
java.lang.Object
io.opentelemetry.instrumentation.spring.autoconfigure.aspects.WithSpanAspect
Uses Spring-AOP to wrap methods marked by
WithSpan in a Span.
Ensure methods annotated with WithSpan are implemented on beans managed by the Spring
container.
Note: This Aspect uses spring-aop to proxy beans. Therefore the WithSpan annotation
can not be applied to constructors.
-
Constructor Summary
ConstructorsConstructorDescriptionWithSpanAspect(io.opentelemetry.api.OpenTelemetry openTelemetry, org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer) -
Method Summary
-
Constructor Details
-
WithSpanAspect
public WithSpanAspect(io.opentelemetry.api.OpenTelemetry openTelemetry, org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)
-
-
Method Details
-
traceMethod
- Throws:
Throwable
-