We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 889d878 commit 0f41106Copy full SHA for 0f41106
internal-api/src/main/java/datadog/trace/api/env/CapturedEnvironment.java
@@ -103,9 +103,9 @@ private String autodetectServiceName() {
103
return siteName;
104
}
105
106
- if (processInfo.jarFile != null) {
107
- final String jarName = processInfo.jarFile.getName();
108
- return jarName.substring(0, jarName.length() - 4); // strip .jar
+ // preserve the original logic that is case sensitive on the .jar extension
+ if (processInfo.jarFile != null && processInfo.jarFile.getName().endsWith(".jar")) {
+ return processInfo.jarFile.getName().replace(".jar", "");
109
} else {
110
return processInfo.mainClass;
111
0 commit comments