Skip to content

Commit

Permalink
Remove extra if
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan committed Nov 29, 2023
1 parent b01d6ae commit e05d12f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sdk/src/metrics/sync_instruments.cc
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ void DoubleHistogram::Record(double value,
return;
}
if (!storage_)
if (value < 0 || std::isnan(value) || std::isinf(value))
{
OTEL_INTERNAL_LOG_WARN(
"[DoubleHistogram::Record(V,A,C)] Value not recorded - invalid storage for: "
Expand Down

0 comments on commit e05d12f

Please sign in to comment.