Skip to content

Commit

Permalink
fic CI
Browse files Browse the repository at this point in the history
  • Loading branch information
esigo committed Aug 1, 2022
1 parent 7462b50 commit dcbad53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/metrics_simple/metrics_ostream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void initMetrics(const std::string &name)
new metric_sdk::InstrumentSelector(metric_sdk::InstrumentType::kHistogram, histogram_name)};
std::unique_ptr<metric_sdk::MeterSelector> histogram_meter_selector{
new metric_sdk::MeterSelector(name, version, schema)};
nostd::shared_ptr<opentelemetry::sdk::metrics::AggregationConfig> aggregation_config{
std::shared_ptr<opentelemetry::sdk::metrics::AggregationConfig> aggregation_config{
new opentelemetry::sdk::metrics::HistogramAggregationConfig<double>};
static_cast<opentelemetry::sdk::metrics::HistogramAggregationConfig<double> *>(
aggregation_config.get())
Expand Down
2 changes: 1 addition & 1 deletion sdk/test/metrics/async_metric_storage_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ TEST_P(WritableMetricStorageTestFixture, TestAggregation)
opentelemetry::sdk::metrics::AsyncMetricStorage<long> storage(
instr_desc, AggregationType::kSum, MeasurementFetcher::Fetcher,
default_attributes_rocessor.get(),
nostd::shared_ptr<opentelemetry::sdk::metrics::AggregationConfig>{});
std::shared_ptr<opentelemetry::sdk::metrics::AggregationConfig>{});

storage.Collect(collector.get(), collectors, sdk_start_ts, collection_ts,
[&](const MetricData data) {
Expand Down
4 changes: 2 additions & 2 deletions sdk/test/metrics/sync_metric_storage_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ TEST_P(WritableMetricStorageTestFixture, LongSumAggregation)
opentelemetry::sdk::metrics::SyncMetricStorage storage(
instr_desc, AggregationType::kSum, default_attributes_processor.get(),
NoExemplarReservoir::GetNoExemplarReservoir(),
nostd::shared_ptr<opentelemetry::sdk::metrics::AggregationConfig>{});
std::shared_ptr<opentelemetry::sdk::metrics::AggregationConfig>{});

storage.RecordLong(10l, KeyValueIterableView<std::map<std::string, std::string>>(attributes_get),
opentelemetry::context::Context{});
Expand Down Expand Up @@ -157,7 +157,7 @@ TEST_P(WritableMetricStorageTestFixture, DoubleSumAggregation)
opentelemetry::sdk::metrics::SyncMetricStorage storage(
instr_desc, AggregationType::kSum, default_attributes_processor.get(),
NoExemplarReservoir::GetNoExemplarReservoir(),
nostd::shared_ptr<opentelemetry::sdk::metrics::AggregationConfig>{});
std::shared_ptr<opentelemetry::sdk::metrics::AggregationConfig>{});

storage.RecordDouble(10.0,
KeyValueIterableView<std::map<std::string, std::string>>(attributes_get),
Expand Down

0 comments on commit dcbad53

Please sign in to comment.