Skip to content

Conversation

@arielb1
Copy link
Collaborator

@arielb1 arielb1 commented Oct 28, 2025

📬 Issue #, if available:

✍️ Description of changes:

🔏 By submitting this pull request

  • I confirm that I've made a best effort attempt to update all relevant documentation.
  • I confirm that my contribution is made under the terms of the Apache 2.0 license.

@arielb1 arielb1 changed the title Agent metadata ctors add support for agent metadata CPU and memory fields Oct 28, 2025
@arielb1 arielb1 force-pushed the agent-metadata-ctors branch from fbea486 to e2f39b0 Compare October 28, 2025 14:20
@arielb1 arielb1 requested a review from rcoh October 28, 2025 16:03
#[serde(transparent)]
pub struct OrderedF64(OrderedFloat<f64>);

impl OrderedF64 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Another reasonable option could be a string that serde's as a float

@arielb1 arielb1 force-pushed the agent-metadata-ctors branch 2 times, most recently from 0929049 to a10b42f Compare November 5, 2025 19:03
Ariel Ben-Yehuda added 3 commits November 13, 2025 11:40
we want to allow adding fields to metadata, which requires making them
`non_exhaustive`. However, users do create the metadatas, at least for
testing. Add constructors to allow that to be done in a back-compat way.
@arielb1 arielb1 force-pushed the agent-metadata-ctors branch from a10b42f to b8cae26 Compare November 13, 2025 11:42
@arielb1
Copy link
Collaborator Author

arielb1 commented Nov 13, 2025

rebased, need re-approval

@arielb1 arielb1 merged commit 924411b into async-profiler:main Nov 13, 2025
18 checks passed
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.

2 participants