Skip to content

os.version resource attribute is not populated #16211

@richard-salac

Description

@richard-salac

The os.version resource attribute is not populated. The OsResource class reads the value from jvm properties, but the value is used only to generate os.description.

String version = null;
try {
version = System.getProperty("os.version");
} catch (SecurityException e) {
// Ignore
}
String osDescription = version != null ? os + ' ' + version : os;
attributes.put(OS_DESCRIPTION, osDescription);

The semantics specifies both the os.version and os.description as recommended.
The modification is very easy an I am offering to prepare the PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribution welcomeRequest makes sense, maintainers probably won't have time, contribution would be welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions