Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Populate HttpMethod field from http.request.method for consistency with .NET/Node SDKs

Abierto
#4,623 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
azure, java

Línea de trabajo

Comienza rastreando cómo la telemetría de solicitudes de Java Agent asigna el atributo http.request.method de OpenTelemetry al campo heredado HttpMethod. Verifica la asignación para solicitudes que usan métodos como GET y añade o actualiza la cobertura que demuestre que HttpMethod se rellena de forma coherente con el nombre de la solicitud.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción


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:

  1. KQL queries using HttpMethod return no results for Java services
  2. Cross-service queries don't work uniformly (.NET services have HttpMethod, Java doesn't)
  3. Existing dashboards and alerts that filter by HttpMethod break when adding Java services
  4. 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

Lenguaje dominante
Java
Estrellas
327
Forks
222
Merge medio
22 h 34 min
PR fusionados (30 d)
14

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/ApplicationInsights-Java

Todos los issues de microsoft/ApplicationInsights-Java

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.