Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

dependency response code is not displayed properly

Đang mở
#4,129 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, spring-boot
Lĩnh vực
backend, observability

Hướng nghiên cứu

Bắt đầu bằng cách chạy SimplifiedApp và SimplifiedService được đính kèm với Java agent, sau đó tái hiện request bằng lệnh curl được cung cấp. Theo dõi việc xử lý mã phản hồi của dependency cho HTTP interface và xác định nơi response 500 trở thành 0. Được xem là hoàn tất khi các response của dependency có mã 4xx hoặc 5xx hiển thị các status code tương ứng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Expected behavior

when dependency response code is 4xx or 5xx, dependency response code should show the corresponding status code 4xx or 5xx.

Actual behavior

instead, it is showing 0

To Reproduce

Submitting a PR with an example reproducing the issue in this repository would make it easier for the Application Insight maintainers to help you. Before doing this, you have to fork this repository.
I spent some time to build two bare bone applications. Please see the attachments for the source code. Before you run SimplifiedApp, you will need to put “applicationinsights-agent-3.6.2.jar” in the root folder. It is too big, I cannot add them into the zip file to send via email.

Image
SimplifiedApp (local port: 8585)
SimplifiedService(Local port: 8081)

curl --location --request POST 'http://localhost:8585/test'

calls endpoint http://localhost:8081/csn which simply returns http status code 500 without going through a custom exception handler at all.

Image

Image

simplifiedapp.zip
simplifiedservice.zip

System information

Please provide the following information:

  • SDK Version: 17
  • OS type and version: windows 11
  • Application Server type and version (if applicable): Tomcat
  • Using spring-boot? Yes, springboot 3.x
  • http interface
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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/ApplicationInsights-Java

Tất cả issue của microsoft/ApplicationInsights-Java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.