Handled / catched exceptions are getting into Azure Application Insights
Maintainer thường phản hồi trong vòng 1 ngày
@heyams đang làm issue này rồi.
Từ ngày 15/8/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Expected behavior
We have a handled exception in our application. When that exception is thrown and catched we should not see the occurrence of that exception in Application Insights.
Actual behavior
The thrown and catched exception is displayed in our Application Insights.
To Reproduce
- Create a new Spring Boot application with a scheduled task and use ShedLock to synchronize that task over multiple containers running in parallel with mongoDB setup (cosmos db)
// Run every 15 minutes (xx:00, xx:15, xx:30, xx:45)
@Scheduled(cron = "0 */15 * * * *")
@SchedulerLock(name = "uniqueString", lockAtMostFor = "14m", lockAtLeastFor = "14m")
public void myScheduledTask() {
service.runTask();
}
- Setup the MongoLockProvider for ShedLock
@Bean
public LockProvider lockProvider(final MongoClient mongo) {
return new MongoLockProvider(mongo.getDatabase(mongoDatabaseName));
}
- Setup Application Insights for the Spring Boot application
- Run the application with 2 containers in parallel (in our case in a container app)
- Observe the Application Insights Exceptions: Every time the task is scheduled ShedLock will try to lock the task in both containers. That means every time one of the containers will receive an duplicate key exception that is catched within the MongoLockProvider. These exceptions are shown in Application Insights.
System information
Please provide the following information:
- SDK Version: Java SDK 21-temurin
- OS type and version: eclipse-temurin:21-jre-alpine docker image
- Application Server type and version (if applicable): Azure Container App
- Using spring-boot? Yes with Spring-Boot-Starter-Parent v3.3.2
- Additional relevant libraries (with version, if applicable): ShedLock v5.14.0 => net.javacrumbs.shedlock -> shedlock-spring & shedlock-provider-mongo
- Ngôn ngữ chính
- Java
- Star
- 326
- Fork
- 223
- Merge trung bình
- 23 giờ 6 phút
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc 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
-
Java 25 native-access warning from bundled Netty requires broad ALL-UNNAMED permissionCó thể đã có người làm @rajkumar-rangaraj đã nhận 19 ngày trước. Đang mở
microsoft/ApplicationInsights-Java#4851 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ 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 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
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 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/ApplicationInsights-Java#4729 · 134 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
microsoft/ApplicationInsights-Java#4712 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/ApplicationInsights-Java
Issue tương tự
-
[destination-snowflake] Custom domains rejected unlike source connectionsCó thể đã có người làm @kuza55 đã nhận hôm nay. Đang mởautoteam community connectors/destination/snowflake team/use
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area-dashboard
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
component/operate kind/feature-request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Forge coverage prompts carry text the agent cannot act onCó thể đã có người làm @graalvmbot đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
oracle/graalvm-reachability-metadata#10572 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bundled migration plansĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
IBM/sample-app-mod#55 ·