Provide a simple entry point for ASP.NET recording
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
- 30/100
Hướng nghiên cứu
Start by reviewing the proposed ASP.NET ActionFilterAttribute flow and how controllers are currently measured. Identify the entry points for a standalone ASP-specific NuGet package, then check how tag, recorder, and thread-safety support would integrate. Done means web developers can add an attribute to selected controllers and record measurements through the package.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Ideally Web devs should be able to just pull a nuget package and add an attribute to controllers that should be measured.
Potentially an ActionFilterAttibute could be provided in a standalone ASP specific nuget
public class HistogramAttribute : ActionFilterAttribute
{
private const string StartTimestampKey = "HistogramAttribute.StartTimeStamp";
public override void OnActionExecuting(ActionExecutingContext context)
{
context.HttpContext.Items[StartTimestampKey] = Stopwatch.GetTimestamp();
}
public override void OnActionExecuted(ActionExecutedContext context)
{
var stopTimestamp = Stopwatch.GetTimestamp();
var startTimestamp = (long)context.HttpContext.Items[StartTimestampKey];
var elapsed = stopTimestamp - startTimestamp;
Log.RecordValue(elapsed);
}
}
Ideally this would also integrate with tag, recorder and thread safety support.
- Ngôn ngữ chính
- C#
- Star
- 185
- Fork
- 31
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của HdrHistogram/HdrHistogram.NET
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
HdrHistogram/HdrHistogram.NET#167 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
HdrHistogram/HdrHistogram.NET#166 ·
-
WriterReaderPhaser.FlipPhase - Task.Yield().GetAwaiter().GetResult() is a Thread Pool Anti-PatternĐang mởagent enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
HdrHistogram/HdrHistogram.NET#144 ·
-
agent enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
HdrHistogram/HdrHistogram.NET#142 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
HdrHistogram/HdrHistogram.NET#156 ·
Tất cả issue của HdrHistogram/HdrHistogram.NET
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fluentassertions/fluentassertions#3353 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 78/100
unoplatform/uno#24769 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
AvaloniaUI/Avalonia#22323 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
microsoft/onnxruntime-genai#2633 ·
Maintainer thường phản hồi trong vòng 1 ngày