Class WithSpanAnnotationTransformer
java.lang.Object
io.micronaut.tracing.opentelemetry.processing.WithSpanAnnotationTransformer
- All Implemented Interfaces:
io.micronaut.inject.annotation.AnnotationTransformer<io.opentelemetry.instrumentation.annotations.WithSpan>
,io.micronaut.inject.annotation.TypedAnnotationTransformer<io.opentelemetry.instrumentation.annotations.WithSpan>
public class WithSpanAnnotationTransformer
extends Object
implements io.micronaut.inject.annotation.TypedAnnotationTransformer<io.opentelemetry.instrumentation.annotations.WithSpan>
Adds interceptor binding to
WithSpan
and adds NewSpan
to it.- Since:
- 4.2.0
- Author:
- Nemanja Mikic
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<io.opentelemetry.instrumentation.annotations.WithSpan>
List<io.micronaut.core.annotation.AnnotationValue<?>>
transform
(io.micronaut.core.annotation.AnnotationValue<io.opentelemetry.instrumentation.annotations.WithSpan> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
-
Constructor Details
-
WithSpanAnnotationTransformer
public WithSpanAnnotationTransformer()
-
-
Method Details
-
annotationType
- Specified by:
annotationType
in interfaceio.micronaut.inject.annotation.TypedAnnotationTransformer<io.opentelemetry.instrumentation.annotations.WithSpan>
-
transform
public List<io.micronaut.core.annotation.AnnotationValue<?>> transform(io.micronaut.core.annotation.AnnotationValue<io.opentelemetry.instrumentation.annotations.WithSpan> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext) - Specified by:
transform
in interfaceio.micronaut.inject.annotation.AnnotationTransformer<io.opentelemetry.instrumentation.annotations.WithSpan>
-