Class SpanAttributeAnnotationMapper

java.lang.Object
io.micronaut.tracing.opentelemetry.processing.SpanAttributeAnnotationMapper
All Implemented Interfaces:
io.micronaut.inject.annotation.AnnotationMapper<io.opentelemetry.instrumentation.annotations.SpanAttribute>, io.micronaut.inject.annotation.TypedAnnotationMapper<io.opentelemetry.instrumentation.annotations.SpanAttribute>

public class SpanAttributeAnnotationMapper extends Object implements io.micronaut.inject.annotation.TypedAnnotationMapper<io.opentelemetry.instrumentation.annotations.SpanAttribute>
Adds SpanTag to SpanAttribute.
Since:
4.2.0
Author:
Nemanja Mikic
  • Constructor Details

    • SpanAttributeAnnotationMapper

      public SpanAttributeAnnotationMapper()
  • Method Details

    • annotationType

      public Class<io.opentelemetry.instrumentation.annotations.SpanAttribute> annotationType()
      Specified by:
      annotationType in interface io.micronaut.inject.annotation.TypedAnnotationMapper<io.opentelemetry.instrumentation.annotations.SpanAttribute>
    • map

      public List<io.micronaut.core.annotation.AnnotationValue<?>> map(io.micronaut.core.annotation.AnnotationValue<io.opentelemetry.instrumentation.annotations.SpanAttribute> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
      Specified by:
      map in interface io.micronaut.inject.annotation.AnnotationMapper<io.opentelemetry.instrumentation.annotations.SpanAttribute>