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.