Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

dependency response code is not displayed properly

未关闭
#4,129 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
java, spring-boot

调研方向

首先使用 Java agent 运行附带的 SimplifiedApp 和 SimplifiedService,然后使用提供的 curl 命令重现请求。跟踪 HTTP 接口的依赖响应码处理,找出 500 响应变为 0 的位置。当依赖响应的代码为 4xx 或 5xx 时能够显示相应的状态码,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Java
星标
326
派生
223
平均合并
1 天 1 小时
30 天内合并 PR
15

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/ApplicationInsights-Java 的其他 Issue

查看 microsoft/ApplicationInsights-Java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。