Skip to content

Conversation

@paologallinaharbur
Copy link
Member

@paologallinaharbur paologallinaharbur commented Oct 29, 2025

What this PR does / why we need it

This PR is introducing a new attribute for the AC only specifying the environment in which the agent is running.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Provided a meaningful title following conventional commit style.
  • Included a detailed description for the Pull Request.
  • Documentation under docs is aligned with the change.
  • Follows guidelines for Pull Requests in CONTRIBUTING.md.
  • Follows log level guidelines.

@vjripoll vjripoll force-pushed the restructure-on-host-folders branch 2 times, most recently from e608a0a to d7395b0 Compare October 29, 2025 14:13
@vjripoll vjripoll force-pushed the restructure-on-host-folders branch from d7395b0 to 206ec88 Compare October 29, 2025 14:46
@paologallinaharbur paologallinaharbur marked this pull request as ready for review October 30, 2025 16:55
@paologallinaharbur paologallinaharbur requested a review from a team as a code owner October 30, 2025 16:55
@paologallinaharbur paologallinaharbur requested a review from a team October 31, 2025 11:27
danielorihuela
danielorihuela previously approved these changes Nov 3, 2025
sigilioso
sigilioso previously approved these changes Nov 3, 2025
pub const CLUSTER_NAME_ATTRIBUTE_KEY: &str = "cluster.name";
pub const HOST_ID_ATTRIBUTE_KEY: &str = opentelemetry_semantic_conventions::attribute::HOST_ID;
pub const FLEET_ID_ATTRIBUTE_KEY: &str = "fleet.guid";
pub const OS_ATTRIBUTE_KEY: &str = "os.type";
Copy link
Contributor

Choose a reason for hiding this comment

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

would make sense to link to here or specify the variants to avoid miss used in the future ? https://opentelemetry.io/docs/specs/semconv/registry/attributes/os/#os-type

Copy link
Member Author

Choose a reason for hiding this comment

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

oh I did not see that, currently I was using os::OS that instead of darwin has "macos"

Then it is better to move back to the custom constant definition I had before, no?

@vjripoll vjripoll force-pushed the restructure-on-host-folders branch 11 times, most recently from 6778f0d to 6e41010 Compare November 6, 2025 10:58
@vjripoll vjripoll force-pushed the restructure-on-host-folders branch 6 times, most recently from 4b18188 to 5facfd7 Compare November 6, 2025 15:11
Base automatically changed from restructure-on-host-folders to main November 6, 2025 17:09
@vjripoll vjripoll dismissed stale reviews from sigilioso and danielorihuela November 6, 2025 17:09

The base branch was changed.

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.

6 participants