Phil Clay created HTTPCLIENT-2423:
-------------------------------------

             Summary: Support trace context header propagation in 
httpclient5-observation
                 Key: HTTPCLIENT-2423
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2423
             Project: HttpComponents HttpClient
          Issue Type: Improvement
          Components: HttpClient (classic)
    Affects Versions: 5.6.1
            Reporter: Phil Clay


The httpclient5-observation module does not provide a mechanism for propagating 
tracing headers (e.g. {{traceparent}}) in outbound requests.

For reference, the old (deprecated) httpclient5 micrometer observation 
instrumentation in the micrometer-core library [provided a context so that 
headers would be 
propagated|https://github.com/micrometer-metrics/micrometer/blob/e11e7c6b3e579c607393905732d3b9b1f5863e95/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/httpcomponents/hc5/ApacheHttpClientContext.java#L60-L62].
The instrumentation from micrometer-core has been [deprecated in favor of the 
instrumentation provided by 
httpclient5-observation|https://github.com/micrometer-metrics/micrometer/issues/7158].

Unfortunately, the httpclient5-observation instrumentation does not propagate 
trace context via headers.  Therefore, users switching from micrometer-core to 
httpclient5-observation will lose functionality.

This enhancement request is to add the appropriate context and header 
propagation mechanism to the httpclient5-observation module, so that users 
migrating from micrometer-core instrumentation to httpclient5-observation 
instrumentation will retain header propagation functionality.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to