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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<io.opentelemetry.instrumentation.annotations.SpanAttribute>
List<io.micronaut.core.annotation.AnnotationValue<?>>
map
(io.micronaut.core.annotation.AnnotationValue<io.opentelemetry.instrumentation.annotations.SpanAttribute> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
-
Constructor Details
-
SpanAttributeAnnotationMapper
public SpanAttributeAnnotationMapper()
-
-
Method Details
-
annotationType
- Specified by:
annotationType
in interfaceio.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 interfaceio.micronaut.inject.annotation.AnnotationMapper<io.opentelemetry.instrumentation.annotations.SpanAttribute>
-