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 Details

    • WithSpanAnnotationTransformer

      public WithSpanAnnotationTransformer()
  • Method Details

    • annotationType

      public Class<io.opentelemetry.instrumentation.annotations.WithSpan> annotationType()
      Specified by:
      annotationType in interface io.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 interface io.micronaut.inject.annotation.AnnotationTransformer<io.opentelemetry.instrumentation.annotations.WithSpan>