RemoteDependency ResultCode always set to 0 under Spring Boot 4
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- java, spring-boot
- Domain
- backend, observability
Research direction
Start with the reproduction example and instructions in ApplicationInsights-Java-Repros#18, then trace how Spring Boot 4 remote dependency calls populate ResultCode in Agent 3.7.7. Done means the reproduced RemoteDependency telemetry reports the remote call's correct result code instead of 0 while Success remains true.
Written by the indexing model from the issue text.
Description
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):
- Dominant language
- Java
- Stars
- 327
- Forks
- 222
- Avg merge
- 22h 34m
- Merged PRs (30d)
- 14
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/ApplicationInsights-Java
-
microsoft/ApplicationInsights-Java#4851 · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
microsoft/ApplicationInsights-Java#4817 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
microsoft/ApplicationInsights-Java#4770 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
microsoft/ApplicationInsights-Java#4769 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/ApplicationInsights-Java#4729 · 121 comments ·
All issues in microsoft/ApplicationInsights-Java
Similar issues
-
certification
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Openbug ecr
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Needs: Triage Type: Feature request
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/copilot-sdk#2760 ·