Skip to content

Add support for Vert.x 5.1 in tracing - #11655

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
vandonr/vertx51
Jun 18, 2026
Merged

Add support for Vert.x 5.1 in tracing#11655
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
vandonr/vertx51

Conversation

@vandonr

@vandonrvandonr commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

the existing muzzle guard for vertx4.0 excluded v5.1 because the type used for the guard was (re)moved.
Andrea suggested a new type to use so that 4.0 instrumentations would continue to apply.

Motivation

#11611

Additional Notes

There are other issues with v5.1 that impact iast code. To be able to test my fix without having to fix IAST code, I excluded their tests from latest deps temporarily after having updated the versions in the gradle lockfile.

Contributor Checklist

  • Format the title according to the contribution guidelines
  • Assign the type: and (comp: or inst:) labels in addition to any other useful labels
  • Avoid using close, fix, or any linking keywords when referencing an issue
    Use solves instead, and assign the PR milestone to the issue
  • Update the CODEOWNERS file on source file addition, migration, or deletion
  • Update public documentation with any new configuration flags or behaviors
  • Add your completed PR to the merge queue by commenting /merge. You can also:
    • Customize the commit message associated with the merge with /merge --commit-message "..."
    • Remove your PR from the merge queue with /merge -c
    • Skip all merge queue checks with /merge -f --reason "reason"; please use this judiciously, as some checks do not run at the PR-level (note: the PR still needs to be mergeable, this will only skip the pre-merge build)
    • Get more information in this doc

Jira ticket: [PROJ-IDENT]

@vandonr
vandonr requested review from a team as code ownersJune 16, 2026 15:49
@vandonr
vandonr requested review from ValentinZakharov, amarziali, dromanol and manuel-alvarez-alvarez and removed request for a teamJune 16, 2026 15:49
@datadog-prod-us1-5

This comment has been minimized.

@dd-octo-sts

dd-octo-stsBot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request

If you need help, please check our contributing guidelines.

@dd-octo-stsdd-octo-stsBot added the tag: ai generated Largely based on code generated by an AI or LLM label Jun 16, 2026
@vandonrvandonr added type: feature Enhancements and improvements inst: vertx Eclipse Vert.x instrumentation tag: override groovy enforcement Override the "Enforce Groovy Migration" check labels Jun 16, 2026

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:94f46421d6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@dd-octo-sts

dd-octo-stsBot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

SuiteStatus
Startup🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
ScenarioCandidatemasterΔ (95% CI of mean)
startup:insecure-bank:iast:Agent13.95 s13.85 s[+0.1%; +1.4%] (maybe worse)
startup:insecure-bank:tracing:Agent12.93 s12.94 s[-0.7%; +0.6%] (no difference)
startup:petclinic:appsec:Agent16.31 s16.64 s[-6.4%; +2.5%] (no difference)
startup:petclinic:iast:Agent16.95 s17.01 s[-1.3%; +0.6%] (no difference)
startup:petclinic:profiling:Agent16.78 s17.01 s[-2.6%; -0.1%] (maybe better)
startup:petclinic:sca:Agent16.91 s16.81 s[-0.3%; +1.5%] (no difference)
startup:petclinic:tracing:Agent16.09 s16.19 s[-1.6%; +0.3%] (no difference)

Commit:0875a1bf · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@vandonr

Copy link
Copy Markdown
ContributorAuthor

@codex review

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:4e94baa47e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment threaddd-java-agent/instrumentation/vertx/vertx-web/vertx-web-5.0/build.gradle Outdated
@vandonr

Copy link
Copy Markdown
ContributorAuthor

@codex review

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:54058ba1a0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

className + "$GetCookieAdvice");
}

public static class ParamsAdvice {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add the request-context guard to ParamsAdvice

This advice declares an @ActiveRequestContext parameter but, unlike the other IAST advices in this file, the advice class is not annotated with @RequiresRequestContext(RequestContextSlot.IAST). The request-context build-time rewriter only converts @ActiveRequestContext for classes annotated with @RequiresRequestContext, so Vert.x 5.1 calls to params()/params(boolean) can end up with an unbound request-context parameter and the query parameter map will not be tainted for IAST.

Useful? React with 👍 / 👎.

@amarzialiamarziali left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vandonr the proposed change involves duplicating all the vertx-4 instrumentation. However, the only part that looks having linkage issues is the appsec one (under core). Now another approach is to remove the muzzle gate on VertxVersionMatcher and replace with io.vertx.core.http.impl.headers.HeadersAdaptor since it has been introduced on 4.0 (so gates against 3.x) and is survives on 5.1+.
Concerning appsec changes I think a trade-off can also be to port first the tracing (and add java tests using the migration skill as latestDepTests) and then later on track a ticket for appsec to support that version. Happy to chat about it and pair

@vandonrvandonr changed the title support for vertx 5.1support for vertx 5.1 in tracingJun 17, 2026
@vandonr

Copy link
Copy Markdown
ContributorAuthor

I removed all the previous changes which were too much, and pushed a more targeted fix, that leaves iast out for now.

@vandonr

Copy link
Copy Markdown
ContributorAuthor

@codex review

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:1d7b84344c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment threaddd-java-agent/instrumentation/vertx/vertx-web/vertx-web-5.0/build.gradle Outdated

@amarzialiamarziali left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for having simplified the PR. I suggested test improvements. Also muzzle seems unrelately failing. Perhaps merging master will help

@amarzialiamarziali left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@vandonr

Copy link
Copy Markdown
ContributorAuthor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351Bot commented Jun 18, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-06-18 12:52:28 UTC ℹ️ Start processing command /merge


2026-06-18 12:52:33 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-06-18 13:58:43 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854dBot merged commit 4e8d69f into masterJun 18, 2026
581 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854dBot deleted the vandonr/vertx51 branch June 18, 2026 13:58
@github-actionsgithub-actionsBot added this to the 1.64.0 milestone Jun 18, 2026
@PerfectSlayerPerfectSlayer changed the title support for vertx 5.1 in tracingAdd support for Vert.x 5.1 in tracingJul 7, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: vertxEclipse Vert.x instrumentationtag: ai generatedLargely based on code generated by an AI or LLMtag: override groovy enforcementOverride the "Enforce Groovy Migration" checktype: featureEnhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@vandonr@amarziali