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.
The
os.versionresource attribute is not populated. TheOsResourceclass reads the value from jvm properties, but the value is used only to generateos.description.opentelemetry-java-instrumentation/instrumentation/resources/library/src/main/java/io/opentelemetry/instrumentation/resources/OsResource.java
Lines 56 to 63 in 5df0621
The semantics specifies both the
os.versionandos.descriptionas recommended.The modification is very easy an I am offering to prepare the PR.