Skip to content

Commit

Permalink
Adds all tags to DnsAppMetricsClient.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanedwardes committed Feb 24, 2024
1 parent bea8903 commit 49264b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ae.Dns.AppMetrics/DnsAppMetricsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public async Task<DnsMessage> Query(DnsMessage query, CancellationToken token =
{ "QueryType", answer.Header.QueryType.ToString() }
};

if (answer.Header.Tags.TryGetValue("Resolver", out var resolver))
foreach (var tag in answer.Header.Tags)
{
tags.Add("Resolver", resolver.ToString());
tags.Add(tag.Key, tag.Value.ToString());
}

_metrics.Measure.Timer.Time(new TimerOptions
Expand Down

0 comments on commit 49264b8

Please sign in to comment.