Skip to content

Commit

Permalink
Reset cached target info cursor when OpenMetricsRequested is false
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed Apr 8, 2024
1 parent e46a446 commit c1af823
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ private ExportResult OnCollect(Batch<Metric> metrics)
}
}
}
else
{
this.targetInfoBufferLength = -1;
}

foreach (var metric in metrics)
{
Expand Down

0 comments on commit c1af823

Please sign in to comment.