Add instrumentation for quarkus-rest-client-reactive (javax, MicroProfile REST Client 1.0–2.x)#11496
Draft
dougqh wants to merge 1 commit into
Draft
Conversation
…avax, MicroProfile REST Client 1.0–2.x) Mirrors the jakarta-namespace module (PR #11495) for Quarkus 2.x stacks that use the javax.ws.rs namespace. Intercepts RestClientBuilder.build(Class<?>) and registers a ClientRequestFilter to inject Datadog + W3C propagation headers on every outbound REST call. Muzzle range [1.0, 3.0) ensures this module activates only when microprofile-rest-client-api < 3.0 is present; the jakarta module (#11495) handles 3.0+. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master resultsStartup Time
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
quarkus-rest-client-reactive-2.0instrumentation for Quarkus 2.x stacks that use thejavax.ws.rsnamespace (MicroProfile REST Client 1.0–2.x)RestClientBuilder.build(Class<?>), registers aClientRequestFilterto inject Datadog + W3C propagation headers, creates an HTTP client span per requestImplementation
Identical to #11495 except all
jakarta.*imports are replaced withjavax.*. The muzzle range[1.0, 3.0)ensures this module activates only whenmicroprofile-rest-client-api < 3.0is on the classpath; the jakarta module activates at≥ 3.0. Both can coexist in the agent jar without conflict because they use distinct Java packages (quarkus_rest_client_reactive_javaxvsquarkus_rest_client_reactive).Test plan
QuarkusRestClientJavaxInstrumentationTest— 2 JUnit 5 tests using RESTEasy MicroProfile 1.x client + JDK HttpServer): verifyx-datadog-trace-id/x-datadog-parent-idheaders are injected and a span is created per request./gradlew :dd-java-agent:instrumentation:quarkus:quarkus-rest-client-reactive-2.0:testpasses locallymicroprofile-rest-client-api [1.0, 3.0)Labels
comp:java-tracer,inst:quarkus,type:feature,tag:ai generated🤖 Generated with Claude Code