RemoteDependency ResultCode always set to 0 under Spring Boot 4
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- java, spring-boot
- 领域
- backend, observability
调研方向
先从 ApplicationInsights-Java-Repros#18 中的复现示例和说明开始,然后跟踪 Spring Boot 4 的远程依赖调用如何在 Agent 3.7.7 中填充 ResultCode。完成的标准是:复现的 RemoteDependency telemetry 报告远程调用的正确结果代码,而不是 0,同时 Success 仍为 true。
由索引模型根据 Issue 内容生成。
描述
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):
- 主要语言
- Java
- 星标
- 326
- 派生
- 223
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 15
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/ApplicationInsights-Java 的其他 Issue
-
Java 25 native-access warning from bundled Netty requires broad ALL-UNNAMED permission可能已有人在做 @rajkumar-rangaraj 于 23 天前认领。 未关闭
microsoft/ApplicationInsights-Java#4851 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
microsoft/ApplicationInsights-Java#4770 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
microsoft/ApplicationInsights-Java#4769 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
microsoft/ApplicationInsights-Java#4729 · 138 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
microsoft/ApplicationInsights-Java#4712 ·
维护者通常 1 天内回复
查看 microsoft/ApplicationInsights-Java 的全部 Issue
相似的 Issue
-
[Bug] The producer summary counts an unreported client version as a second version and warns about a version mix可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
apache/rocketmq-dashboard#6110 ·
维护者通常 4 天内回复
-
`Processing lsp` never exits and leaves orphaned processes可能已有人在做 @overcast302 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
processing/processing4#1578 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
apache/doris-flink-connector#707 ·
-
难度 2/5 1-3 小时 新手友好度 60/100
维护者通常 1 天内回复
-
[BUG] S3 CORS responses omit Access-Control-Allow-Credentials for matched origins可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复