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.
      • setCapturedRequestHeaders

        public ApacheHttpClientTracingBuilder setCapturedRequestHeaders​(List<String> requestHeaders)
        Configures the HTTP request headers that will be captured as span attributes.
        Parameters:
        requestHeaders - A list of HTTP header names.
      • setCapturedResponseHeaders

        public ApacheHttpClientTracingBuilder setCapturedResponseHeaders​(List<String> responseHeaders)
        Configures the HTTP response headers that will be captured as span attributes.
        Parameters:
        responseHeaders - A list of HTTP header names.