You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EventSource WriteEvent params overload doesn't get written to EventPipe #124518
C:\Users\Luna\Documents\traces
> dotnet trace collect -n ConsoleApp1 --providers TestEventSource --rundown false
Provider Name Keywords Level Enabled By
TestEventSource 0x0000000000000000 Informational(4) --providers
Process : E:\Projects\scratch\dotnet_eventpipe_eventsource_vararg\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.exe
Output File : C:\Users\Luna\Documents\traces\ConsoleApp1.exe_20260217_165130.nettrace
[00:00:00:22] Recording trace 57.344 (KB)
Press <Enter> or <Ctrl+C> to exit...
Stopping the trace. This may take several minutes depending on the application being traced.
Trace completed.
And this for ETW:
Expected behavior
Both events being present in the trace file, like ETW:
Actual behavior
DoesntWork event is missing in EventPipe trace file:
Regression?
No idea
Known Workarounds
Make a custom overload of WriteEvent() that doesn't use the params overload.
Configuration
.NET: 10.0.3
OS:
Edition Windows 11 Pro
Version 24H2
Installed on 02/03/2025
OS build 26100.7840
Experience Windows Feature Experience Pack 1000.26100.291.0
Activity
mdh1418 commentedon Jul 10, 2026
Hi @PJB3005, sorry we didn't get to this until now.
It looks like a combination of factors are causing the discrepancy for the params overloaded Event to not be emitted.
One of which is
dotnet-tracetreating providers with no specified keywords as nothing enabled https://github.com/dotnet/diagnostics/blob/f4c4ac378cba26df6c3c5899a3cecd0b8fa802b4/src/Tools/dotnet-trace/ProviderUtils.cs#L22, whereas PerfView defaults the keywords to all enabled https://github.com/microsoft/perfview/blob/226c25a3c2c9779fee173fc029c203a50e7330b0/src/PerfView/CommandProcessor.cs#L3706.The other discrepancy is being addressed in #130525,
but the workarounds you can use to collect events with params overload is
dotnet-trace collect --providers TestEventSource:0x100000000000:4and trace with that keyword enabled
dotnet-trace collect --providers TestEventSource:0x1:4Fix EventSource WriteEvent varargs overloads dropped from EventPipe (#…
Fix EventSource WriteEvent varargs overloads dropped from EventPipe (d…