Populate HttpMethod field from http.request.method for consistency with .NET/Node SDKs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- azure, java
- Ambito
- observability
Direzione di ricerca
Inizia tracciando il modo in cui la telemetria delle richieste di Java Agent associa l’attributo http.request.method di OpenTelemetry al campo legacy HttpMethod. Verifica l’associazione per le richieste che usano metodi come GET e aggiungi o aggiorna la coverage mostrando che HttpMethod viene valorizzato in modo coerente con il nome della richiesta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
When using Application Insights Java Agent 3.x, the HttpMethod field in the
requests table is always empty. The HTTP method is only available embedded
in the name field (e.g., "GET /api/users").
This is frustrating because:
- KQL queries using
HttpMethodreturn no results for Java services - Cross-service queries don't work uniformly (.NET services have HttpMethod, Java doesn't)
- Existing dashboards and alerts that filter by HttpMethod break when adding Java services
- The field exists but is empty, which looks like a bug rather than expected behavior
Describe the solution you would like
Map the OpenTelemetry http.request.method attribute to the legacy HttpMethod
field in Application Insights request telemetry.
This would make Java Agent 3.x consistent with .NET and Node.js SDKs, which
populate this field.
Describe alternatives you have considered
Current workaround is parsing the method from the name field in KQL:
requests
| extend HttpMethod = tostring(split(name, " ")[0])
This works but requires modifying all existing queries, dashboards, and alerts.
It also adds overhead and is error-prone if the name format changes.
Additional context
- Java Agent version: 3.7.7 (and likely all 3.x versions)
- The change to OpenTelemetry semantic conventions (http.method → http.request.method)
happened in Nov 2023, but the HttpMethod field was never mapped - This affects mixed-language environments where consistent telemetry querying is important
- 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
-
certification
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Apertabug ecr
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Needs: Triage Type: Feature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
github/copilot-sdk#2760 ·