Skip to content

Commit

Permalink
chore: pick metrics tag value only
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Aug 14, 2024
1 parent 887447f commit 5963627
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ public static DatadogMetricsRecorder Create(string? tagString, bool validate = f
{
if (item.StartsWith("legend:"))
{
tagLegend = item;
var index = item.IndexOf(':') + 1;
tagLegend = item.Substring(index);
}
else if (item.StartsWith("streams:"))
{
tagStreams = item;
var index = item.IndexOf(':') + 1;
tagStreams = item.Substring(index);
}
}
}
Expand Down

0 comments on commit 5963627

Please sign in to comment.