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

Filter based on package logs send by the agent (3.7.2) to Application Insight

Đang mở
#4,223 1 bình luận 1 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
25/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, scala, spark
Lĩnh vực
cloud, observability

Hướng nghiên cứu

Bắt đầu bằng cách xem xét phần instrumentation.logging và bộ xử lý metric-filter, hai đường dẫn cấu hình được nêu trong issue. Xác định cơ chế lọc ở cấp gói cho các log do agent gửi đi, sau đó xác minh rằng có thể loại bỏ các log không mong muốn từ các gói bên thứ ba mà không suppress các log của chính ứng dụng.

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

Mô tả

I have a lot of logs generated by 3rd party libraries in my application, which I do not need to have ingested into Application Insights, and those logs generate significant costs on Application Insights. Currently it is only possible to set global log level threshold, which is not sufficient, because the unwanted logs are either INFO or WARN, so to exclude them I would need to exclude also the logs from my application, which makes this solution useless.

In my current scenario I am running a Scala 2.12 Spark application on Azure Databricks runtime 16.3 as a jar task instrumented with -javaagent (agent version 3.7.2) parameter through spark config and APPLICATIONINSIGHTS_CONNECTION_STRING environment variable, and getting a lot of com.databricks.* and org.apache.spark.* logs. But this feature would be applicable to any other scenario.

I would like to be able to filter/configure logs that are send to Application Insight by the agent on package level.

This could be configured either in the instrumentation.logging section or as a log procesor in similar fashion to the metric-filter processor.

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.