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

Custom Instrumentation Hook: Capture Method Input Param as Span Attributes

Đang mở
#2,455 5 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/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ệ
java
Lĩnh vực
observability

Hướng nghiên cứu

Bắt đầu bằng cách xem xét hành vi của custom instrumentation hook được mô tả ở đây cùng các issue liên quan #2380 và ApplicationInsights-Java#2048. Xác định cách các tham số đầu vào của phương thức có thể được cung cấp dưới dạng thuộc tính span cho các bộ xử lý span downstream, đồng thời xác minh rằng khi hoàn thành công việc, tất cả các tham số đều có sẵn dưới dạng các thuộc tính được yêu cầu.

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

Mô tả

Enhancement

Is your feature request related to a problem? Please describe.
Describe what the problem you have encountered; e.g I'm always frustrated when [...]
We are using Custom Instrumentation Hook feature to create spans around methods from COTS system for which no traditional instrumentation is available. Everything works out really well except all the spans are named with Package.Method by default which does not help in meaningful analysis or debug for problem areas.

Describe the solution you would like
Request to enhance the custom instrumentation hook to capture all method input parameters as attributes. This will help us use span processors to rename spans appropriately as desired use case by use case

E.g. If custom instrumentation hook is enabled for Package.Method and Method takes 5 input params, make all 5 input params available as span attributes inp1=value1;inp2=value2;inp3=value3;inp4=value4;inp5=value5 and so on

Describe alternatives you have considered
We have captured the verbose log for Custom Instrumentation spans and noticed that we do not have any attributes captured today, so no meaningful data available to rename spans

Additional context
#2380
https://github.com/microsoft/ApplicationInsights-Java/issues/2048

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.