EventStore / EventStore-Client-Dotnet

Dotnet Client SDK for the Event Store gRPC Client API written in C#
Other
138 stars 38 forks source link

Tracing improvements #311

Closed josephcummings closed 1 month ago

josephcummings commented 1 month ago

Changed: Use TryParseValue when attempting to parse event metadata as JsonDocument, to prevent unneccessary exception with catch. Changed: Use TryGetProperty when extracting tracing metadata to prevent unneccessary exception being thrown in absence thereof. Changed: Added short-circuit to tracing logic to prevent unnecessary parsing of event data et al when there are no diagnostic listeners.

Fixes https://github.com/EventStore/EventStore-Client-Dotnet/issues/310