Skip to content

Commit 04b9950

Browse files
authored
Merge dbf4855 into bba277c
2 parents bba277c + dbf4855 commit 04b9950

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ namespace NMonitoring {
370370
}
371371

372372
TMaybe<TLabel> nameLabel = MetricState_.Labels.Extract(MetricNameLabel_);
373-
Y_ENSURE(nameLabel,
374-
"labels " << MetricState_.Labels <<
375-
" does not contain label '" << MetricNameLabel_ << '\'');
373+
if (!nameLabel) {
374+
return;
375+
}
376376

377377
const TString& metricName = ToString(nameLabel->Value());
378378
if (MetricState_.Type != EMetricType::DSUMMARY) {

0 commit comments

Comments
 (0)