Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[extension/opamp] Add os.description as non-identifying agent attribute #35561

Conversation

dpaasman00
Copy link
Contributor

@dpaasman00 dpaasman00 commented Oct 2, 2024

Description:

The opamp extension now reports additional information about the host machine's operating system, specifically the version. It does so by reporting the semantic convention os.description(defined here) as a non-identifying attribute in the agent description message.

Link to tracking Issue: Closes #35555

Testing: Unit tests updated.
Verified os.description attribute shows up with values like 'macOS 15.0' and 'Ubuntu 20.04.6 LTS'

Documentation:

@@ -1457,3 +1458,38 @@ func findRandomPort() (int, error) {

return port, nil
}

func getOSDescription(t *testing.T) string {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if there's a better way to get this test passing other than just copying this code from the opamp extension test?

@dpaasman00 dpaasman00 force-pushed the opampextension-add-os-desc-semconv branch 3 times, most recently from e548ca2 to 04991a9 Compare October 7, 2024 18:45
@dpaasman00 dpaasman00 marked this pull request as ready for review October 7, 2024 18:47
@dpaasman00 dpaasman00 requested a review from a team as a code owner October 7, 2024 18:47
@dpaasman00 dpaasman00 marked this pull request as draft October 15, 2024 13:28
@dpaasman00 dpaasman00 closed this Oct 15, 2024
@dpaasman00 dpaasman00 force-pushed the opampextension-add-os-desc-semconv branch from 8bf8823 to 0a5cae6 Compare October 15, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[extension/opampextension] Report os.description semantic convention
2 participants