Skip to content

Commit

Permalink
Fix callback parameter in InMemoryMetricExporterFactory::Create whe…
Browse files Browse the repository at this point in the history
…n using C++11 mode
  • Loading branch information
owent committed Oct 14, 2024
1 parent 671e5cf commit da5382c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exporters/memory/src/in_memory_metric_exporter_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ class InMemoryMetricExporter final : public sdk::metrics::PushMetricExporter
std::unique_ptr<PushMetricExporter> InMemoryMetricExporterFactory::Create(
const std::shared_ptr<InMemoryMetricData> &data)
{
return Create(data, [](auto) { return AggregationTemporality::kCumulative; });
return Create(data,
[](sdk::metrics::InstrumentType) { return AggregationTemporality::kCumulative; });
}

std::unique_ptr<PushMetricExporter> InMemoryMetricExporterFactory::Create(
Expand Down

0 comments on commit da5382c

Please sign in to comment.