Skip to content

Add Thread.sleep TaskBlock profiling instrumentation#11546

Draft
kaahos wants to merge 9 commits into
masterfrom
paul.fournillon/wallclock-threadsleep-taskblock
Draft

Add Thread.sleep TaskBlock profiling instrumentation#11546
kaahos wants to merge 9 commits into
masterfrom
paul.fournillon/wallclock-threadsleep-taskblock

Conversation

@kaahos
Copy link
Copy Markdown

@kaahos kaahos commented Jun 3, 2026

What Does This Do

Adds TaskBlock profiling for Thread.sleep and TimeUnit.sleep by rewriting sleep call sites and emitting deferred TaskBlock events with profiling context.

Motivation

Capturing sleep intervals as TaskBlock events makes that waiting time explicit and span-attributed in wall-clock profiles.

Additional Notes

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
    • Get more information in this doc

Jira ticket: [PROJ-IDENT]

@datadog-datadog-prod-us1

This comment has been minimized.

@kaahos kaahos force-pushed the paul.fournillon/wallclock-threadsleep-taskblock branch from caa7502 to 59f57c0 Compare June 3, 2026 12:00
@kaahos kaahos force-pushed the paul.fournillon/wallclock-threadsleep-taskblock branch from 59f57c0 to c245e55 Compare June 3, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant