<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Propagating W3C traceparent from Apache CXF 2.7.15 JAX-RS client with OneAgent Java in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Propagating-W3C-traceparent-from-Apache-CXF-2-7-15-JAX-RS-client/m-p/299744#M39070</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two legacy Java services (Service A and Service B) calling a modern Spring Boot service (Service C) over REST. All three run with OneAgent installed (Java sensor enabled).&lt;/P&gt;&lt;P&gt;Distributed traces break at the boundary: incoming spans on A/B and incoming spans on C have different trace.id. The W3C traceparent header is not present in the outgoing HTTP request from A/B.&lt;/P&gt;&lt;P&gt;Stack on the caller side (A and B)&lt;BR /&gt;- Apache CXF JAX-RS 2.7.15 (wrapped by an internal framework, upgrade not feasible)&lt;BR /&gt;- Client defined as &amp;lt;jaxrs:client bus="..." .../&amp;gt; in Spring XML&lt;BR /&gt;- A couple of existing outbound interceptors already in place for unrelated business headers&lt;BR /&gt;- oneagent-sdk-java and opentelemetry-api are NOT on the classpath&lt;BR /&gt;- OneAgent version: recent (&amp;gt;= 1.317)&lt;/P&gt;&lt;P&gt;What I have looked at so far&lt;BR /&gt;1. OpenTracingFeature (org.apache.cxf.tracing.opentracing.OpenTracingFeature) does not exist in CXF 2.7.15. It was introduced in CXF 3.1.x.&lt;BR /&gt;2. The OneAgent Java tech matrix lists CXF in supported frameworks, but I cannot tell whether outbound JAX-RS clients on CXF 2.7.x get automatic traceparent injection. Inbound seems fine (server-side spans are captured); outbound looks like it is not.&lt;BR /&gt;3. There is a tenant-level setting "Send W3C Trace Context HTTP headers" under server-side service monitoring. I am not sure what scope of clients it actually affects.&lt;BR /&gt;4. A custom CXF OutInterceptor is technically possible, but I am unsure how to obtain the active trace context inside it without pulling in extra SDK dependencies.&lt;/P&gt;&lt;P&gt;Questions&lt;BR /&gt;1. Does OneAgent Java automatically inject traceparent on outbound JAX-RS calls when the client is Apache CXF 2.7.15? If not, which CXF versions are supported for outbound auto-injection?&lt;BR /&gt;2. Does the "Send W3C Trace Context HTTP headers" tenant setting cover CXF 2.7.x clients, or does it only affect frameworks already auto-instrumented (Apache HttpClient 4/5, OkHttp, JDK HttpClient)?&lt;BR /&gt;3. If manual injection is the only path, how would you recommend approaching it on this stack? Anything supported for reading the trace context that OneAgent has already created on the inbound side and exposing it for an outbound interceptor, ideally without adding new dependencies?&lt;BR /&gt;4. If a custom interceptor has to mint its own trace-id and write the W3C header, will OneAgent on the callee side stitch that to the inbound trace it sees, or will it treat it as a separate trace?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2026 10:53:25 GMT</pubDate>
    <dc:creator>jonander50</dc:creator>
    <dc:date>2026-05-20T10:53:25Z</dc:date>
    <item>
      <title>Propagating W3C traceparent from Apache CXF 2.7.15 JAX-RS client with OneAgent Java</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Propagating-W3C-traceparent-from-Apache-CXF-2-7-15-JAX-RS-client/m-p/299744#M39070</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two legacy Java services (Service A and Service B) calling a modern Spring Boot service (Service C) over REST. All three run with OneAgent installed (Java sensor enabled).&lt;/P&gt;&lt;P&gt;Distributed traces break at the boundary: incoming spans on A/B and incoming spans on C have different trace.id. The W3C traceparent header is not present in the outgoing HTTP request from A/B.&lt;/P&gt;&lt;P&gt;Stack on the caller side (A and B)&lt;BR /&gt;- Apache CXF JAX-RS 2.7.15 (wrapped by an internal framework, upgrade not feasible)&lt;BR /&gt;- Client defined as &amp;lt;jaxrs:client bus="..." .../&amp;gt; in Spring XML&lt;BR /&gt;- A couple of existing outbound interceptors already in place for unrelated business headers&lt;BR /&gt;- oneagent-sdk-java and opentelemetry-api are NOT on the classpath&lt;BR /&gt;- OneAgent version: recent (&amp;gt;= 1.317)&lt;/P&gt;&lt;P&gt;What I have looked at so far&lt;BR /&gt;1. OpenTracingFeature (org.apache.cxf.tracing.opentracing.OpenTracingFeature) does not exist in CXF 2.7.15. It was introduced in CXF 3.1.x.&lt;BR /&gt;2. The OneAgent Java tech matrix lists CXF in supported frameworks, but I cannot tell whether outbound JAX-RS clients on CXF 2.7.x get automatic traceparent injection. Inbound seems fine (server-side spans are captured); outbound looks like it is not.&lt;BR /&gt;3. There is a tenant-level setting "Send W3C Trace Context HTTP headers" under server-side service monitoring. I am not sure what scope of clients it actually affects.&lt;BR /&gt;4. A custom CXF OutInterceptor is technically possible, but I am unsure how to obtain the active trace context inside it without pulling in extra SDK dependencies.&lt;/P&gt;&lt;P&gt;Questions&lt;BR /&gt;1. Does OneAgent Java automatically inject traceparent on outbound JAX-RS calls when the client is Apache CXF 2.7.15? If not, which CXF versions are supported for outbound auto-injection?&lt;BR /&gt;2. Does the "Send W3C Trace Context HTTP headers" tenant setting cover CXF 2.7.x clients, or does it only affect frameworks already auto-instrumented (Apache HttpClient 4/5, OkHttp, JDK HttpClient)?&lt;BR /&gt;3. If manual injection is the only path, how would you recommend approaching it on this stack? Anything supported for reading the trace context that OneAgent has already created on the inbound side and exposing it for an outbound interceptor, ideally without adding new dependencies?&lt;BR /&gt;4. If a custom interceptor has to mint its own trace-id and write the W3C header, will OneAgent on the callee side stitch that to the inbound trace it sees, or will it treat it as a separate trace?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2026 10:53:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Propagating-W3C-traceparent-from-Apache-CXF-2-7-15-JAX-RS-client/m-p/299744#M39070</guid>
      <dc:creator>jonander50</dc:creator>
      <dc:date>2026-05-20T10:53:25Z</dc:date>
    </item>
  </channel>
</rss>

