microsoft/msquic

add support for EventPipe tracing/logging

Open

#1531 aperta il 29 apr 2021

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)C (671 fork)github user discovery
Area: Loggingfeature requesthelp wanted

Metriche repository

Star
 (4712 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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?)

Guida contributor