Skip to content

Commit a6a4519

Browse files
committed
fix
1 parent 89f3575 commit a6a4519

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/test/metrics/sync_metric_storage_gauge_test.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ TEST_P(WritableMetricStorageTestFixture, LongGaugeLastValueAggregation)
3737
std::map<std::string, std::string> attributes_roomA = {{"Room.id", "Rack A"}};
3838
std::map<std::string, std::string> attributes_roomB = {{"Room.id", "Rack B"}};
3939

40-
std::unique_ptr<DefaultAttributesProcessor> default_attributes_processor{
40+
std::shared_ptr<DefaultAttributesProcessor> default_attributes_processor{
4141
new DefaultAttributesProcessor{}};
4242
opentelemetry::sdk::metrics::SyncMetricStorage storage(
43-
instr_desc, AggregationType::kLastValue, default_attributes_processor.get(),
43+
instr_desc, AggregationType::kLastValue, default_attributes_processor,
4444
# ifdef ENABLE_METRICS_EXEMPLAR_PREVIEW
4545
ExemplarFilterType::kAlwaysOff, ExemplarReservoir::GetNoExemplarReservoir(),
4646
# endif
@@ -121,10 +121,10 @@ TEST_P(WritableMetricStorageTestFixture, DoubleGaugeLastValueAggregation)
121121
std::map<std::string, std::string> attributes_roomA = {{"Room.id", "Rack A"}};
122122
std::map<std::string, std::string> attributes_roomB = {{"Room.id", "Rack B"}};
123123

124-
std::unique_ptr<DefaultAttributesProcessor> default_attributes_processor{
124+
std::shared_ptr<DefaultAttributesProcessor> default_attributes_processor{
125125
new DefaultAttributesProcessor{}};
126126
opentelemetry::sdk::metrics::SyncMetricStorage storage(
127-
instr_desc, AggregationType::kLastValue, default_attributes_processor.get(),
127+
instr_desc, AggregationType::kLastValue, default_attributes_processor,
128128
# ifdef ENABLE_METRICS_EXEMPLAR_PREVIEW
129129
ExemplarFilterType::kAlwaysOff, ExemplarReservoir::GetNoExemplarReservoir(),
130130
# endif

0 commit comments

Comments
 (0)