Skip to content

Commit

Permalink
warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Jul 10, 2024
1 parent 140d8aa commit 0e595a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sdk/test/metrics/attributes_hashmap_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MockKeyValueIterable : public opentelemetry::common::KeyValueIterable
return true;
}

size_t size() const noexcept { return attributes_.size(); }
size_t size() const noexcept override { return attributes_.size(); }

private:
std::vector<std::pair<nostd::string_view, opentelemetry::common::AttributeValue>> attributes_;
Expand Down
10 changes: 4 additions & 6 deletions sdk/test/metrics/cardinality_limit_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ using namespace opentelemetry::sdk::metrics;
using namespace opentelemetry::common;
namespace nostd = opentelemetry::nostd;

/*TEST(CardinalityLimit, AttributesHashMapBasicTests)
TEST(CardinalityLimit, AttributesHashMapBasicTests)
{
AttributesHashMap hash_map(10);
std::function<std::unique_ptr<Aggregation>()> aggregation_callback =
Expand Down Expand Up @@ -84,15 +84,13 @@ namespace nostd = opentelemetry::nostd;
record_value); // 1 from first recording
}
}
}*/
}

TEST(WritableMetricStorageTestFixture, SyncStorageCardinalityLimit)
{
const auto kCardinalityLimit = 10;
AggregationTemporality temporality = AggregationTemporality::kCumulative;
auto sdk_start_ts = std::chrono::system_clock::now();
int64_t expected_total_get_requests = 0;
int64_t expected_total_put_requests = 0;
InstrumentDescriptor instr_desc = {"name", "desc", "1unit", InstrumentType::kCounter,
InstrumentValueType::kLong};

Expand Down Expand Up @@ -168,7 +166,7 @@ class WritableMetricStorageCardinalityLimitTestFixture
: public ::testing::TestWithParam<AggregationTemporality>
{};

/*TEST_P(WritableMetricStorageCardinalityLimitTestFixture, LongCounterSumAggregation)
TEST_P(WritableMetricStorageCardinalityLimitTestFixture, LongCounterSumAggregation)
{
auto sdk_start_ts = std::chrono::system_clock::now();
const size_t attributes_limit = 10;
Expand Down Expand Up @@ -219,4 +217,4 @@ class WritableMetricStorageCardinalityLimitTestFixture
}
INSTANTIATE_TEST_SUITE_P(All,
WritableMetricStorageCardinalityLimitTestFixture,
::testing::Values(AggregationTemporality::kDelta));*/
::testing::Values(AggregationTemporality::kDelta));

0 comments on commit 0e595a3

Please sign in to comment.