File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,6 @@ std::vector<prometheus_client::MetricFamily> PrometheusExporterUtils::TranslateT
154154 metric_family.name = MapToPrometheusName (metric_data.instrument_descriptor .name_ ,
155155 metric_data.instrument_descriptor .unit_ , type,
156156 without_units, without_type_suffix);
157- // TODO (psx95): Add tests to check compliance
158157 metric_family.type = type;
159158 const opentelemetry::sdk::instrumentationscope::InstrumentationScope *scope =
160159 without_otel_scope ? nullptr : instrumentation_info.scope_ ;
@@ -500,12 +499,13 @@ std::string PrometheusExporterUtils::MapToPrometheusName(
500499 bool without_units,
501500 bool without_type_suffix)
502501{
503- auto sanitized_name = SanitizeNames (name);
502+ auto sanitized_name = SanitizeNames (name);
504503 std::string prometheus_equivalent_unit;
505504 if (without_units)
506505 {
507506 prometheus_equivalent_unit = " " ;
508- } else
507+ }
508+ else
509509 {
510510 prometheus_equivalent_unit = GetEquivalentPrometheusUnit (unit);
511511 }
You can’t perform that action at this time.
0 commit comments