Skip to content

Add LockSupport TaskBlock profiling instrumentation#11545

Draft
kaahos wants to merge 3 commits into
masterfrom
paul.fournillon/wallclock-locksupport-taskblock
Draft

Add LockSupport TaskBlock profiling instrumentation#11545
kaahos wants to merge 3 commits into
masterfrom
paul.fournillon/wallclock-locksupport-taskblock

Conversation

@kaahos
Copy link
Copy Markdown

@kaahos kaahos commented Jun 3, 2026

What Does This Do

Add TaskBlock profiling instrumentation for LockSupport.park/unpark, including blocker and unblocking span attribution where available.

Motivation

LockSupport.park is widely used by executors, queues, schedulers, and virtual-thread internals. Capturing these park intervals as TaskBlock events makes parked time attributable to spans and easier to separate from active execution 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-official
Copy link
Copy Markdown
Contributor

datadog-official Bot commented Jun 3, 2026

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 17 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-java | config-inversion-linter   View in Datadog   GitLab

See error Undocumented environment variable 'profiling.taskblock.unblocking.enabled' found. Please add it to 'supported-configurations.json'.

DataDog/apm-reliability/dd-trace-java | jetty-app.arm64.DOC: [public.ecr.aws/docker/library/almalinux:8.10, linux/arm64, 21.0.7-zulu]   View in Datadog   GitLab

See error 2 failed tests. Assertion Error: No traces found for request OWGRKKDRTNZABSSSCZAAVJDCWMRLVQMLWPEZ in test_install_supported_runtime and assert len(telemetry_autoinject_data) >= 1 failed in test_telemetry.

DataDog/apm-reliability/dd-trace-java | jetty-app.arm64.DOC: [public.ecr.aws/docker/library/almalinux:9.4, linux/arm64, 17.0.15-zulu]   View in Datadog   GitLab

See error 2 failed tests. AssertionError: No traces found for request NRQENHSJDDIJXGOJEMJCZQVUVRQKXRPJMBQN in test_install_supported_runtime and assert len(telemetry_autoinject_data) >= 1 failed in test_telemetry.

View all 17 failed jobs.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: c3fca82 | Docs | Datadog PR Page | Give us feedback!

@kaahos kaahos force-pushed the paul.fournillon/wallclock-locksupport-taskblock branch from 804e4ef to c3fca82 Compare June 3, 2026 12:20
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