From 295464113f2cd7aec4a55834e2c17558d37a29e2 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Mon, 15 Jul 2024 14:50:07 -0600 Subject: [PATCH] Add documentation for test case --- .../integration_test/test_exponential_bucket_histogram.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/opentelemetry-sdk/tests/metrics/integration_test/test_exponential_bucket_histogram.py b/opentelemetry-sdk/tests/metrics/integration_test/test_exponential_bucket_histogram.py index b2e188fa88..6574bf4335 100644 --- a/opentelemetry-sdk/tests/metrics/integration_test/test_exponential_bucket_histogram.py +++ b/opentelemetry-sdk/tests/metrics/integration_test/test_exponential_bucket_histogram.py @@ -41,6 +41,14 @@ class TestExponentialBucketHistogramAggregation(TestCase): ), ) def test_synchronous_delta_temporality(self): + """ + This test case instantiates an exponential histogram aggregation and + then uses it to record measurements and get metrics. The order in which + these actions are taken are relevant to the testing that happens here. + For this reason, the aggregation is only instantiated once, since the + reinstantiation of the aggregation would defeat the purpose of this + test case. + """ aggregation = ExponentialBucketHistogramAggregation()