valueMax reporting wrong number
维护者通常 1 天内回复
评估
这个 Issue 还没有评估数据。
描述
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.

- 主要语言
- Java
- 星标
- 326
- 派生
- 223
- 平均合并
- 23 小时 6 分钟
- 30 天内合并 PR
- 13
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/ApplicationInsights-Java 的其他 Issue
-
Java 25 native-access warning from bundled Netty requires broad ALL-UNNAMED permission可能已有人在做 @rajkumar-rangaraj 于 20 天前认领。 未关闭
microsoft/ApplicationInsights-Java#4851 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
microsoft/ApplicationInsights-Java#4770 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
microsoft/ApplicationInsights-Java#4769 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
microsoft/ApplicationInsights-Java#4729 · 135 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
microsoft/ApplicationInsights-Java#4712 ·
维护者通常 1 天内回复
查看 microsoft/ApplicationInsights-Java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
jenkinsci/ec2-plugin#2041 ·
-
L: github:actions L: php:composer
难度 2/5 1-3 小时 新手友好度 88/100
dependabot/dependabot-core#16493 ·
维护者通常 1 天内回复
-
SHOW EDIT of a subclass for an object of its superclass: the form fails to open with AssertionError未关闭
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 1/5 1 小时以内 新手友好度 72/100
-
难度 1/5 1 小时以内 新手友好度 78/100
FlashyReese/sodium-extra#608 ·