We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c87fa1b commit 0f18d38Copy full SHA for 0f18d38
1 file changed
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