dependency response code is not displayed properly
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java, spring-boot
- Domain
- backend, observability
Research direction
Start by running the attached SimplifiedApp and SimplifiedService with the Java agent, then reproduce the request using the provided curl command. Trace the dependency response-code handling for the HTTP interface and identify where a 500 response becomes 0. Done means dependency responses with 4xx or 5xx codes display their corresponding status codes.
Written by the indexing model from the issue text.
Description
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.
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.
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.
- 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 ·