Skip to content

Conversation

jbachorik
Copy link
Collaborator

@jbachorik jbachorik commented Aug 22, 2025

What does this PR do?:
It adds the support for publishing process context in OTel friendly way.

Additional Notes:
See https://github.com/DataDog/fullhost-code-hotspots-wip/pull/2

How to test the change?:

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.
  • JIRA: PROF-12337

Unsure? Have a question? Request a review!

Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looks like it was very straightforward to wire this in, which was the point :)

Left a few notes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I can see why having a no-op fallback may be useful for implementers. I'll borrow steal build on this idea and add it on the reference implementation so we don't need to maintain it separately

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: https://github.com/DataDog/fullhost-code-hotspots-wip/pull/2 now has a no-op implementation

jbachorik and others added 4 commits August 26, 2025 11:41
- Add comprehensive gradle patching for otel_process_ctx.c to .cpp conversion
- Add Linux preprocessor guards and C++ explicit casts for compilation
- Fix gradle task dependencies and caching for proper file handling
- Implement proper publish/update API usage in JNI setProcessCtx0
- Add native read functionality through JNI wrapper
- Update ProcessContextTest for test resilience and native read testing
- Resolve all compilation failures in gtest tasks

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

Co-Authored-By: Claude <[email protected]>
@jbachorik jbachorik requested a review from MattAlp August 26, 2025 15:21
Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM left a few small notes, but overall looks very reasonable!

@ivoanjo
Copy link
Member

ivoanjo commented Aug 29, 2025

I've opened #267 to bring the latest version of the reference library on top of this PR/branch :)

@jbachorik
Copy link
Collaborator Author

@zhengyu123 I addressed the locking. If you could re-review and potentially approve ...

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.

3 participants