Skip to content

Commit

Permalink
[SdkSelfDiagnosticListener] ignore event counters (#3616)
Browse files Browse the repository at this point in the history
* ignore event counters

* change to early return
  • Loading branch information
lachmatt committed Sep 6, 2024
1 parent bb60828 commit fce3682
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ protected override void OnEventSourceCreated(EventSource eventSource)
/// <param name="eventData">Data of the EventSource event.</param>
protected override void OnEventWritten(EventWrittenEventArgs eventData)
{
if (!eventData.EventSource.Name.StartsWith(EventSourceNamePrefix, StringComparison.OrdinalIgnoreCase))
{
return;
}

object[] payloadArray;
if (eventData.Payload != null)
{
Expand Down

0 comments on commit fce3682

Please sign in to comment.