Skip to content

feat(profiling): [PROF-14883] Publish thread context attribute keys at process start#11558

Open
ivoanjo wants to merge 1 commit into
masterfrom
ivoanjo/prof-14883-early-thread-context
Open

feat(profiling): [PROF-14883] Publish thread context attribute keys at process start#11558
ivoanjo wants to merge 1 commit into
masterfrom
ivoanjo/prof-14883-early-thread-context

Conversation

@ivoanjo
Copy link
Copy Markdown
Member

@ivoanjo ivoanjo commented Jun 4, 2026

What Does This Do

This PR adjusts the ProcessContext setup to match the change in DataDog/java-profiler#576 to publish the context attributes at process start.

Motivation

Publishing the context attributes at process start enables outside readers of thread context to immediately start reading this information; prior to this change they were impacted by the profiler start delay.

Additional Notes

This PR relies on the API changes introduced in
DataDog/java-profiler#576 and will need to be merged together with an upgrade to the latest java-profiler.

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 (note: the PR still needs to be mergeable, this will only skip the pre-merge build)
    • Get more information in this doc

Jira ticket: [PROF-14883]

**What does this PR do?**

This PR adjusts the `ProcessContext` setup to match the change in
DataDog/java-profiler#576 to publish the
context attributes at process start.

**Motivation:**

Publishing the context attributes at process start enables outside
readers of thread context to immediately start reading this information;
prior to this change they were impacted by the profiler start delay.

**Additional Notes:**

This PR relies on the API changes introduced in
DataDog/java-profiler#576 and will need to
be merged together with an upgrade to the latest java-profiler.

**How to test the change?**

This change includes test coverage.
@ivoanjo ivoanjo requested a review from a team as a code owner June 4, 2026 11:59
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented Jun 4, 2026

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request
  • Remove the tag from the pull request title

If you need help, please check our contributing guidelines.

@datadog-official
Copy link
Copy Markdown
Contributor

datadog-official Bot commented Jun 4, 2026

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 9 Pipeline jobs failed

Check pull requests | Check pull requests   View in Datadog   GitHub Actions

See error Missing required labels on the pull request: at least one type, and one component or instrumentation label must be set.

DataDog/apm-reliability/dd-trace-java | build   View in Datadog   GitLab

See error Compilation error in ProcessContext.java:31: method setProcessContext in class OTelContext cannot be applied to given types. Required: String,String,String,String,String,String; Found: String,String,String,String,String,String,String[].

DataDog/apm-reliability/dd-trace-java | build_tests: [:baseTest, base]   View in Datadog   GitLab

See error Compilation error: method setProcessContext in class OTelContext cannot be applied to given types; required: String,String,String,String,String,String found: String,String,String,String,String,String,String[]

View all 9 failed jobs.

Useful? React with 👍 / 👎

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

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