microsoft/msquic

add support for EventPipe tracing/logging

Open

#1,531 opened on 2021年4月29日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)C (671 forks)github user discovery
Area: Loggingfeature requesthelp wanted

Repository metrics

Stars
 (4,712 stars)
PR merge metrics
 (PR metrics pending)

説明

Describe the feature you'd like supported

Currently MsQuic can be configured to support ETW on Windows or lltng on Linux. This is somewhat difficult to integrate with application debugging and there is no real story for other OSes.

Proposed solution

.NET code uses platform independent EventPipe format. That can be processed by tools like PerfView, using scripted api as well as there are tools to convert to other format.

With the current setup it is quite difficult IMHO to integrate MsQUIC tracing with .NET eco system. As minimum, perhaps MsQuic can expose function pointer to emit tracing message and some API to control the content. With that, System.Net.Quic can use it and inject EvenPipe logs as needed (and control verbosity or whatever else)

Additional context

The actual work may be in clog but .NET does not consume that directly so I wrote ask for msquic API surface.

Being able to capture traces and emit them in specific format may be also useful for other languages like Java. (log4j?)

コントリビューターガイド