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

RemoteDependency ResultCode always set to 0 under Spring Boot 4

Đang mở
#4,621 1 bình luận 1 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
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java, spring-boot
Lĩnh vực
backend, observability

Hướng nghiên cứu

Bắt đầu với ví dụ tái hiện và hướng dẫn trong ApplicationInsights-Java-Repros#18, sau đó truy vết cách các lệnh gọi dependency từ xa của Spring Boot 4 điền ResultCode trong Agent 3.7.7. Hoàn thành khi telemetry RemoteDependency được tái hiện báo cáo đúng mã kết quả của lệnh gọi từ xa thay vì 0, trong khi Success vẫn là true.

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

Mô tả

Expected behavior

The ResultCode is populated with the correct value from the remote dependency call.

Actual behavior

The ResultCode is always 0. Note that Success is true. It used to be set before we upgraded to Spring Boot 4.

To Reproduce

This issue only started happening after the upgrade to Spring Boot 4.

Please see https://github.com/microsoft/ApplicationInsights-Java-Repros/pull/18 for an example and instructions to reproduce.

With console debug on I can see

{"ver":1,"name":"RemoteDependency","time":"2026-02-13T15:01:15.496Z",...,"resultCode":"0","data":"http://localhost:8080/rest-greeting","type":"Http","target":"localhost:8080","success":true,"properties":{"_MS.ProcessedByMetricExtractors":"True"}}}}

appearing in the logs.

System information

Please provide the following information:

  • SDK Version: Agent 3.7.7
  • OS type and version: MacOS, JDK 21 / 25
  • Application Server type and version (if applicable): Spring Boot 4
  • Using spring-boot? yes
  • Additional relevant libraries (with version, if applicable):
Image
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.