Skip to content

Improve DBM commenter#11339

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
andrea.marziali/dbm-comment
May 11, 2026
Merged

Improve DBM commenter#11339
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
andrea.marziali/dbm-comment

Conversation

@amarziali
Copy link
Copy Markdown
Contributor

What Does This Do

Low hanging fruit optimisation for SharedDbCommenter.

  • Avoid to URLEncode on each call things that will never change (service, env, version). Instead, use an already precomputed part of the message

Notes for further optimisations:

  • containsTraceComment massively uses inefficient String.contains and might be better implementing by leveraging a ContextStore (i.e. changing the bytecode on the instrumented statement to track this using a field)
  • The initSize parameter in the append method is odd or at least deserves a better documentation
  • The peer service is calculated later on in the tracer so what implemented today is not capturing this information at all

Motivation

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

Note: Once your PR is ready to merge, add it to the merge queue by commenting /merge. /merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

@amarziali amarziali added the type: enhancement Enhancements and improvements label May 11, 2026
@amarziali amarziali requested review from a team as code owners May 11, 2026 12:47
@amarziali amarziali added the comp: database Database Monitoring label May 11, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

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: d1436ce1c8

ℹ️ 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".

@amarziali amarziali enabled auto-merge May 11, 2026 13:08
@amarziali amarziali added this pull request to the merge queue May 11, 2026
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented May 11, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented May 11, 2026

View all feedbacks in Devflow UI.

2026-05-11 14:07:12 UTC ℹ️ Start processing command /merge


2026-05-11 14:07:18 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-05-11 16:13:07 UTCMergeQueue: The build pipeline has timeout

The merge request has been interrupted because the build 0 took longer than expected. The current limit for the base branch 'master' is 120 minutes.

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 11, 2026
@amarziali
Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented May 11, 2026

View all feedbacks in Devflow UI.

2026-05-11 18:42:03 UTC ℹ️ Start processing command /merge


2026-05-11 18:42:08 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-05-11 19:57:31 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit 25bb679 into master May 11, 2026
755 of 757 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the andrea.marziali/dbm-comment branch May 11, 2026 19:57
@github-actions github-actions Bot added this to the 1.63.0 milestone May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: database Database Monitoring type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants