Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#4,623 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
azure, java
Lĩnh vực
observability

Hướng nghiên cứu

Bắt đầu bằng cách theo dõi cách telemetry request của Java Agent ánh xạ thuộc tính http.request.method của OpenTelemetry vào trường legacy HttpMethod. Xác minh ánh xạ đối với các request sử dụng những method như GET, đồng thời thêm hoặc cập nhật coverage cho thấy HttpMethod được điền nhất quán với tên request.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả


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

Ngôn ngữ chính
Java
Star
327
Fork
222
Merge trung bình
22 giờ 34 phút
Pull request đã merge (30 ngày)
14

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/ApplicationInsights-Java

Tất cả issue của microsoft/ApplicationInsights-Java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.