Class MethodSpanAttributesExtractor<REQUEST,​RESPONSE>


  • public final class MethodSpanAttributesExtractor<REQUEST,​RESPONSE>
    extends io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,​RESPONSE>
    Extractor of Attributes for a traced method.
    • Method Detail

      • onStart

        protected void onStart​(io.opentelemetry.api.common.AttributesBuilder attributes,
                               REQUEST request)
        Specified by:
        onStart in class io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,​RESPONSE>
      • onEnd

        protected void onEnd​(io.opentelemetry.api.common.AttributesBuilder attributes,
                             REQUEST request,
                             @Nullable RESPONSE response)
        Specified by:
        onEnd in class io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,​RESPONSE>