valueMax reporting wrong number
@trask đang làm issue này rồi.
Từ ngày 23/1/2023.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.

- Ngôn ngữ chính
- Java
- Star
- 327
- Fork
- 222
- Merge trung bình
- 22 giờ 34 phút
- Pull request đã merge (30 ngày)
- 14
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/ApplicationInsights-Java
-
microsoft/ApplicationInsights-Java#4851 · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
microsoft/ApplicationInsights-Java#4817 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
microsoft/ApplicationInsights-Java#4770 · 2 bình luận ·
-
Support for tail based sampling? Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
microsoft/ApplicationInsights-Java#4769 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/ApplicationInsights-Java#4729 · 121 bình luận ·
Tất cả issue của microsoft/ApplicationInsights-Java
Issue tương tự
-
executions.Query — startDate and timeRange filters are sent with inverted comparison operators Đang mởarea/plugin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
kestra-io/plugin-kestra#190 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Add canonical URLs and a sitemap Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/rocketmq-dashboard#5064 ·
-
Consent portal: creating a duplicate Purpose shows a generic error instead of "already exists" Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
wso2/dpdp-accelerator#287 ·