dependency response code is not displayed properly
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- java, spring-boot
- Ambito
- backend, observability
Direzione di ricerca
Inizia eseguendo la SimplifiedApp e SimplifiedService allegate con il Java agent, quindi riproduci la richiesta usando il comando curl fornito. Traccia la gestione dei codici di risposta della dipendenza per l’interfaccia HTTP e identifica dove una risposta 500 diventa 0. Il lavoro è completato quando le risposte della dipendenza con codici 4xx o 5xx mostrano i relativi codici di stato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 327
- Fork
- 222
- Merge medio
- 22h 34m
- PR unite (30g)
- 14
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/ApplicationInsights-Java
-
microsoft/ApplicationInsights-Java#4851 · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
microsoft/ApplicationInsights-Java#4817 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
microsoft/ApplicationInsights-Java#4770 · 2 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
microsoft/ApplicationInsights-Java#4769 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
microsoft/ApplicationInsights-Java#4729 · 121 commenti ·
Tutte le issue di microsoft/ApplicationInsights-Java
Issue simili
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
apache/flink-agents#1156 ·
-
[source-shopify] FAILED bulk operation without partialDataUrl is silently treated as successful Apertaarea/connectors autoteam community connectors/source/shopify needs-triage team/use type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100