File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/exemplar Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,19 @@ def _reset(self) -> None:
164164 """Reset the reservoir by resetting any stateful logic after a collection cycle."""
165165 pass
166166
167+ @abstractmethod
168+ def _find_bucket_index (
169+ self ,
170+ value : Union [int , float ],
171+ time_unix_nano : int ,
172+ attributes : Attributes ,
173+ ctx : Context ,
174+ ) -> int :
175+ """
176+ Determines the bucket index for the given measurement.
177+ Should be implemented by subclasses based on specific strategies.
178+ """
179+ pass
167180
168181class SimpleFixedSizeExemplarReservoir (FixedSizeExemplarReservoirABC ):
169182 """This reservoir uses an uniformly-weighted sampling algorithm based on the number
You can’t perform that action at this time.
0 commit comments