Class ApacheHttpClientTracingBuilder

    • Method Detail

      • addAttributeExtractor

        public ApacheHttpClientTracingBuilder addAttributeExtractor​(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<? super ApacheHttpClientRequest,​? super org.apache.http.HttpResponse> attributesExtractor)
        Adds an additional AttributesExtractor to invoke to set attributes to instrumented items. The AttributesExtractor will be executed after all default extractors.
      • captureHttpHeaders

        public ApacheHttpClientTracingBuilder captureHttpHeaders​(io.opentelemetry.instrumentation.api.instrumenter.http.CapturedHttpHeaders capturedHttpHeaders)
        Configure the instrumentation to capture chosen HTTP request and response headers as span attributes.
        Parameters:
        capturedHttpHeaders - An instance of CapturedHttpHeaders containing the configured HTTP request and response names.