Allow running wallclock profiler even without tracer by jbachorik · Pull Request #10298 · DataDog/dd-trace-java

zhengyu123

r1viollet

Fix the wallclock context filter logic to allow collecting wallclock profiles even with the tracer being disabled and not providing the tracing context.

@jbachorik

@jbachorik

@jbachorik @claude

Explicitly pass filter= to ddprof when context filtering is disabled.
Due to ddprof quirk, omitting filter defaults to "0" (enabled), causing
zero samples when tracing is off. Empty filter disables it properly.

Added unit test to verify filter parameter in all scenarios.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

PerfectSlayer

@jbachorik