Skip to content

Report Kafka commit backlogs only after successful commits - #13593

Open
ygree wants to merge 5 commits into
masterfrom
ygree/fix-kafka-commit-backlog-reporting
Open

ygree wants to merge 5 commits into
masterfrom
ygree/fix-kafka-commit-backlog-reporting

Conversation

@ygree

@ygree ygree commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

Report Data Streams Monitoring backlogs for Kafka offset commits only after the commit succeeds. Preserve the submitting thread's service name when a classic consumer's commit completes on another thread.

Motivation

Reporting offsets when a request is submitted, or when a commit callback receives an error, can make rejected offsets appear committed in Data Streams Monitoring.

Additional Notes

#13566

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@ygree ygree self-assigned this Nov 20, 2026
@ygree ygree added type: bug fix Bug fix inst: kafka Kafka instrumentation tag: ai generated Largely based on code generated by an AI or LLM labels Nov 20, 2026
@ygree
ygree changed the base branch from andrea.marziali/kafka-classic-dsm-commit to master November 20, 2026 20:33
@ygree
ygree changed the base branch from master to andrea.marziali/kafka-classic-dsm-commit November 20, 2026 20:33
@datadog-prod-us1-3

datadog-prod-us1-3 Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 60.79% (-0.47%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 255d79e | Docs | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
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
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.92 s 14.76 s [+0.2%; +1.9%] (maybe worse)
startup:insecure-bank:tracing:Agent 13.63 s 13.82 s [-2.1%; -0.6%] (maybe better)
startup:petclinic:appsec:Agent 17.74 s 17.57 s [-0.3%; +2.2%] (no difference)
startup:petclinic:iast:Agent 17.51 s 17.23 s [-2.9%; +6.1%] (no difference)
startup:petclinic:profiling:Agent 17.45 s 16.74 s [-0.1%; +8.6%] (no difference)
startup:petclinic:sca:Agent 17.79 s 17.59 s [+0.2%; +2.1%] (maybe worse)
startup:petclinic:tracing:Agent 16.36 s 16.93 s [-7.5%; +0.8%] (no difference)

Commit: 255d79eb · 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.

@pr-commenter

pr-commenter Bot commented Nov 20, 2026

Copy link
Copy Markdown

Kafka / consumer-benchmark

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch andrea.marziali/kafka-classic-dsm-commit ygree/fix-kafka-commit-backlog-reporting
git_commit_date 1795131230 1795206459
git_commit_sha 8cff84b 255d79e
See matching parameters
Baseline Candidate
ci_job_date 1795207479 1795207479
ci_job_id 2284942742 2284942742
ci_pipeline_id 155358917 155358917
cpu_model Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz
jdkVersion 11.0.31 11.0.31
jmhVersion 1.36 1.36
jvm /usr/lib/jvm/java-11-openjdk-amd64/bin/java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
jvmArgs -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=15002 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=15002 -Dhttp.nonProxyHosts=localhost *.localhost
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-eah5boeh 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-eah5boeh 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
vmName OpenJDK 64-Bit Server VM OpenJDK 64-Bit Server VM
vmVersion 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean throughput
scenario:not-instrumented/KafkaConsumerBenchmark.benchConsume same
scenario:only-tracing-dsm-disabled-benchmarks/KafkaConsumerBenchmark.benchConsume same
scenario:only-tracing-dsm-enabled-benchmarks/KafkaConsumerBenchmark.benchConsume same

@ygree
ygree marked this pull request as ready for review November 21, 2026 00:26
@ygree
ygree requested review from a team as code owners November 21, 2026 00:27
@ygree
ygree requested review from jbachorik and jordan-wong and removed request for a team November 21, 2026 00:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T00:29:08.113554Z 255d79e Draft marked ready
🔒 Security Review ✅ Completed 2026-11-21T00:29:57.766818Z 255d79e Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ygree
ygree changed the base branch from andrea.marziali/kafka-classic-dsm-commit to master November 21, 2026 00:27
@ygree
ygree changed the base branch from master to andrea.marziali/kafka-classic-dsm-commit November 21, 2026 00:29

@datadog-prod-us1-3 datadog-prod-us1-3 Bot 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.

Bits Code Review: PASS

More details

Static review supports reporting backlogs only after successful commits while preserving the submitting service across completion threads. Kafka runtime behavior remains unverified.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 255d79e

Base automatically changed from andrea.marziali/kafka-classic-dsm-commit to master November 27, 2026 10:44

@datadog-prod-us1-3 datadog-prod-us1-3 Bot 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.

Bits Code Review: PASS

More details

Static review found no reportable issue in the commit-success guards or cross-thread service restoration. Runtime behavior remains unverified because tests were not executed.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 255d79e

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: kafka Kafka instrumentation tag: ai generated Largely based on code generated by an AI or LLM type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants