Class AttributesExtractor<REQUEST,RESPONSE>
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,RESPONSE>
-
- Direct Known Subclasses:
DbAttributesExtractor,HttpAttributesExtractor,NetAttributesExtractor
public abstract class AttributesExtractor<REQUEST,RESPONSE> extends Object
Extractor ofAttributesfor a given request and response. Will be called on start with just theAttributesExtractorand again on end with bothAttributesExtractorandAttributesExtractorto allow populating attributes at each stage of a request's lifecycle. It is best to populate as much as possible inonStart(AttributesBuilder, Object)to have it available during sampling.- See Also:
HttpAttributesExtractor,NetAttributesExtractor