valueMax reporting wrong number
Los mantenedores suelen responder en 2 días
@trask ya está trabajando en esto.
Desde el 23/1/2023.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Expected behavior
I would expect valueMax to have a value less than valueSum.
Actual behavior
valueMax is greater than valueSum.
To Reproduce
This is my method that is called to gather metrics using micrometer:
@RequiredArgsConstructor
@Slf4j
public class TimeRecorder {
private final static String METHOD = "method";
private final static String CLASS = "class";
private final MeterRegistry registry;
public <T> T recorded(Supplier<T> supplier) {
StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
if (stackTrace.length >= 3) {
StackTraceElement stackTraceElement = stackTrace[2];
return registry.timer("method.timing",
List.of(
Tag.of(CLASS, stackTraceElement.getClassName()),
Tag.of(METHOD, stackTraceElement.getMethodName())
))
.record(supplier);
} else {
log.error("unable to determine callee, skipping metrics");
return supplier.get();
}
}
}
System information
Please provide the following information:
- SDK Version: applicationinsights-agent-3.4.6.jar
- OS type and version: eclipse-temurin:17-jdk-alpine
- Application Server type and version (if applicable):
- Using spring-boot? Yes (version 2.7.1)
- Additional relevant libraries (with version, if applicable): Micrometer 1.9.1
Logs
Turn on SDK logs and attach/paste them to the issue. If using an application server, also attach any relevant server logs.
Be sure to remove any private information from the logs before posting!
Screenshots
If applicable, add screenshots to help explain your problem.

- Lenguaje dominante
- Java
- Estrellas
- 327
- Forks
- 222
- Merge medio
- 22 h 34 min
- PR fusionados (30 d)
- 14
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/ApplicationInsights-Java
-
Java 25 native-access warning from bundled Netty requires broad ALL-UNNAMED permissionPosiblemente ocupada @rajkumar-rangaraj la tomó hace 10 días. Abierto
microsoft/ApplicationInsights-Java#4851 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
microsoft/ApplicationInsights-Java#4817 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
microsoft/ApplicationInsights-Java#4770 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
Support for tail based sampling?Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
microsoft/ApplicationInsights-Java#4769 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
microsoft/ApplicationInsights-Java#4729 · 125 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de microsoft/ApplicationInsights-Java
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OpenAPITools/openapi-generator#25014 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
AloisSeckar/demos-java#380 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
openhab/openhab-core#5847 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
appsmithorg/appsmith#42297 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100