Class MethodSpanAttributesExtractor<REQUEST,RESPONSE>
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,RESPONSE>
-
- io.opentelemetry.instrumentation.api.annotation.support.MethodSpanAttributesExtractor<REQUEST,RESPONSE>
-
public final class MethodSpanAttributesExtractor<REQUEST,RESPONSE> extends io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,RESPONSE>Extractor ofAttributesfor a traced method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classMethodSpanAttributesExtractor.EmptyAttributeBindings
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <REQUEST,RESPONSE>
MethodSpanAttributesExtractor<REQUEST,RESPONSE>newInstance(MethodExtractor<REQUEST> methodExtractor, ParameterAttributeNamesExtractor parameterAttributeNamesExtractor, MethodArgumentsExtractor<REQUEST> methodArgumentsExtractor)protected voidonEnd(io.opentelemetry.api.common.AttributesBuilder attributes, REQUEST request, @Nullable RESPONSE response)protected voidonStart(io.opentelemetry.api.common.AttributesBuilder attributes, REQUEST request)
-
-
-
Method Detail
-
newInstance
public static <REQUEST,RESPONSE> MethodSpanAttributesExtractor<REQUEST,RESPONSE> newInstance(MethodExtractor<REQUEST> methodExtractor, ParameterAttributeNamesExtractor parameterAttributeNamesExtractor, MethodArgumentsExtractor<REQUEST> methodArgumentsExtractor)
-
onStart
protected void onStart(io.opentelemetry.api.common.AttributesBuilder attributes, REQUEST request)
-
-