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
DiagnosticSourceEventSource supports an argument FilterAndPayloadSpecs which can be used to configure the events and payload which will be written to the source. Example:
Tags=TagObjects.*Enumerate; works for retrieving tags.
But this...
Events=Events.*Enumerate;Links=Links.*Enumerate;
...won't work for retrieving Events and/or Links.
The reason it doesn't work is ActivityEvent and ActivityLinkstructs don't provide a suitable ToString implementation which is how the data gets serialized:
The solution could be to implement more useful ToString operations or provide some other way to include that data via the FilterAndPayloadSpecs. ToString could be tricky for ActivityEvent because it contains its own tag collection.
We have DiagnosticSourceEventSource which enables listening to
Activity
\ traces out of process.DiagnosticSourceEventSource
supports an argumentFilterAndPayloadSpecs
which can be used to configure the events and payload which will be written to the source. Example:Tags=TagObjects.*Enumerate;
works for retrieving tags.But this...
Events=Events.*Enumerate;Links=Links.*Enumerate;
...won't work for retrieving Events and/or Links.
The reason it doesn't work is
ActivityEvent
andActivityLink
struct
s don't provide a suitableToString
implementation which is how the data gets serialized:runtime/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs
Line 1526 in 26a1e72
runtime/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs
Line 1494 in 26a1e72
The solution could be to implement more useful
ToString
operations or provide some other way to include that data via theFilterAndPayloadSpecs
.ToString
could be tricky forActivityEvent
because it contains its own tag collection./cc @noahfalk @tarekgh @samsp-msft
The text was updated successfully, but these errors were encountered: