Repository navigation
Conversation
Jedis pools check a connection by sending PING on borrow, on return and from the idle evictor, which JedisPoolConfig turns on by default. Each check produced a Redis span; the evictor's checks run with no active trace, so they became standalone root spans every eviction run. Run JedisFactory and ShardedJedisFactory validation under a black-hole span. Jedis 4 needs no change: its pool sends PING through sendCommand, which that integration does not trace. The integration is on by default and can be turned off with DD_TRACE_REDIS_POOL_VALIDATION_ENABLED=false. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test reads the server's PING count, so it also proves the pool really validated during the traced borrow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Redisson pings every pooled connection on a timer, every 30 seconds by default. Each ping produced a Redis span with no active trace, so it became a standalone root span. Run PingConnectionHandler.sendPing under a black-hole span. The advice lives in the existing Redisson module so muzzle limits it to the same versions, and it shares the DD_TRACE_REDIS_POOL_VALIDATION_ENABLED switch with the Jedis change. The PING sent once while setting up a connection stays traced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test reads the server's PING count through redis-cli, so it also proves keepalive pings really happened while no PING spans appeared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
There was a problem hiding this comment.
With integrations disabled globally and Jedis enabled explicitly, the pool-validation opt-out is ignored, so validation PING spans remain suppressed.
🤖 Bits Code Review · Commit 41f2dcf
| @Override | ||
| public void methodAdvice(MethodTransformer transformer) { | ||
| transformer.applyAdvice( | ||
| named("validateObject"), PoolValidationInstrumentation.class.getName() + "$MuteAdvice"); | ||
| } |
There was a problem hiding this comment.
Honor the pool-validation opt-out with selective integrations
With DD_INTEGRATIONS_ENABLED=false and DD_TRACE_JEDIS_ENABLED=true, setting DD_TRACE_REDIS_POOL_VALIDATION_ENABLED=false does not restore validation spans. InstrumenterModule ORs these integration settings when integrations default to disabled, so the enabled Jedis setting overrides the explicit suppression opt-out. Pool-validation PING spans remain suppressed despite the documented switch.
| @Override | |
| public void methodAdvice(MethodTransformer transformer) { | |
| transformer.applyAdvice( | |
| named("validateObject"), PoolValidationInstrumentation.class.getName() + "$MuteAdvice"); | |
| } | |
| @Override | |
| public void methodAdvice(MethodTransformer transformer) { | |
| datadog.trace.api.InstrumenterConfig config = datadog.trace.api.InstrumenterConfig.get(); | |
| if (config.isIntegrationEnabled( | |
| java.util.Collections.singletonList("redis-pool-validation"), | |
| config.isIntegrationsEnabled())) { | |
| transformer.applyAdvice( | |
| named("validateObject"), PoolValidationInstrumentation.class.getName() + "$MuteAdvice"); | |
| } | |
| } |
React: 👍 useful · 👎 wrong · 😕 unclear · 👀 right, but not acting on it
What each reaction means
- 👍 Useful: correct, and you're fixing it or will.
- 👎 Wrong: the finding is incorrect, for example the bug can't happen or the code was misread.
- 😕 Unclear: you can't tell what it means or why it matters.
- 👀 Right, not acting: correct, but intended, out of scope for this PR, a known risk, or too minor.
🤖 Bits Code Review · Open Bits AI session
What Does This Do
Redis client liveness checks no longer create spans:
PINGon borrow, on return and from the idle evictor, whichJedisPoolConfigenables by default).PINGsent to every pooled connection on a timer (every 30 seconds by default).It is on by default.
DD_TRACE_REDIS_POOL_VALIDATION_ENABLED=falserestores the previous behavior.Motivation
These checks run with no active trace, so each one became a standalone root span. Redisson alone pings every connection in its pool, which by default keeps a minimum of 24 idle connections. Nobody gets value from these spans, and they are cheap to stop at the source rather than filtering them later.
Additional Notes
PINGthroughsendCommand, which that integration doesn't trace.ProtocolCommandpresent,CommandObjectabsent), so muzzle's expectations for the module still hold.RedissonInstrumentationmodule, so muzzle limits it to the same versions. Its switch is read once when the advice is applied, not in the advice.PINGRedisson sends once while setting up a connection, along with the other setup commands; failed-node probing; and the user-facingRedisNodes.pingAll.PINGcount (INFO commandstats), so they fail if no checks actually happened. With the advice disabled, they fail on leakedPINGspans.Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issue🤖 Generated with Claude Code