Provide a simple entry point for ASP.NET recording
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- C#
- 星标
- 185
- 派生
- 31
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
HdrHistogram/HdrHistogram.NET 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
HdrHistogram/HdrHistogram.NET#167 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
HdrHistogram/HdrHistogram.NET#166 ·
-
WriterReaderPhaser.FlipPhase - Task.Yield().GetAwaiter().GetResult() is a Thread Pool Anti-Pattern未关闭agent enhancement
难度 2/5 1-3 小时 新手友好度 68/100
HdrHistogram/HdrHistogram.NET#144 ·
-
agent enhancement
难度 2/5 1-3 小时 新手友好度 68/100
HdrHistogram/HdrHistogram.NET#142 ·
-
难度 3/5 1-2 天 新手友好度 48/100
HdrHistogram/HdrHistogram.NET#156 ·
查看 HdrHistogram/HdrHistogram.NET 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 76/100
pyrevitlabs/pyRevit#3792 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 60/100
维护者通常 1 天内回复
-
area: design documentation
难度 2/5 1-3 小时 新手友好度 76/100
eyalgolan/statecraft-israel#883 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 3 天内回复
-
area/indexing bug package/core triage
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复