Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
psx95 committed Oct 16, 2024
1 parent d2747a0 commit a56f61e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exporters/prometheus/src/exporter_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ std::vector<prometheus_client::MetricFamily> PrometheusExporterUtils::TranslateT
metric_family.name = MapToPrometheusName(metric_data.instrument_descriptor.name_,
metric_data.instrument_descriptor.unit_, type,
without_units, without_type_suffix);
// TODO (psx95): Add tests to check compliance
metric_family.type = type;
const opentelemetry::sdk::instrumentationscope::InstrumentationScope *scope =
without_otel_scope ? nullptr : instrumentation_info.scope_;
Expand Down Expand Up @@ -500,12 +499,13 @@ std::string PrometheusExporterUtils::MapToPrometheusName(
bool without_units,
bool without_type_suffix)
{
auto sanitized_name = SanitizeNames(name);
auto sanitized_name = SanitizeNames(name);
std::string prometheus_equivalent_unit;
if (without_units)
{
prometheus_equivalent_unit = "";
} else
}
else
{
prometheus_equivalent_unit = GetEquivalentPrometheusUnit(unit);
}
Expand Down

0 comments on commit a56f61e

Please sign in to comment.