This is broken for Scala 3 because this method doesn't exist in the Scala 3 source. It appears to have been replaced by versionNumberOrString.
Modify the Source Library Detector to capture the source language version for Scala 3 as well as lower versions of Scala. Verify that the Supportability/SourceLanguage/* metric is generated for Scala 3 environments.
We generate a supportability metric showing a customer's source language and version. Currently for Scala, we detect the source language version from a method called
versionNumberString
. https://github.com/newrelic/newrelic-java-agent/blob/00f7b8d522535c23ff2a11dbd74bf61d6894f3c9/newrelic-agent/src/main/java/com/newrelic/agent/language/SourceLibraryDetector.java#L26This is broken for Scala 3 because this method doesn't exist in the Scala 3 source. It appears to have been replaced by
versionNumberOrString
.Modify the Source Library Detector to capture the source language version for Scala 3 as well as lower versions of Scala. Verify that the
Supportability/SourceLanguage/*
metric is generated for Scala 3 environments.