Class MethodSpanAttributesExtractor<REQUEST,RESPONSE>
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.annotation.support.MethodSpanAttributesExtractor<REQUEST,RESPONSE>
-
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,RESPONSE>
public final class MethodSpanAttributesExtractor<REQUEST,RESPONSE> extends Object implements 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)voidonEnd(io.opentelemetry.api.common.AttributesBuilder attributes, REQUEST request, RESPONSE response, Throwable error)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
public void onStart(io.opentelemetry.api.common.AttributesBuilder attributes, REQUEST request)
-
-