Bladeren bron

Use "micrometer" instrumentation name in the Spring Actuator instrume… (#8677)

Mateusz Rzeszutek 1 jaar geleden
bovenliggende
commit
6b285b0df3

+ 6 - 1
instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/actuator/v2_0/SpringBootActuatorInstrumentationModule.java

@@ -19,7 +19,12 @@ import net.bytebuddy.matcher.ElementMatcher;
 public class SpringBootActuatorInstrumentationModule extends InstrumentationModule {
 
   public SpringBootActuatorInstrumentationModule() {
-    super("spring-boot-actuator-autoconfigure", "spring-boot-actuator-autoconfigure-2.0");
+    super(
+        "spring-boot-actuator-autoconfigure",
+        "spring-boot-actuator-autoconfigure-2.0",
+        // share the instrumentation name with MicrometerInstrumentationModule to lessen the users'
+        // confusion
+        "micrometer");
   }
 
   @Override