Open CodeBlanch opened 17 hours ago
Attention: Patch coverage is 78.32168%
with 31 lines
in your changes missing coverage. Please review.
Project coverage is 86.12%. Comparing base (
6250307
) to head (678e3ce
). Report is 332 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
src/OpenTelemetry/Metrics/AggregatorStore.cs | 78.32% | 31 Missing :warning: |
Changes
Switch
LookupAggregatorStore
&LookupAggregatorStoreForDeltaWithReclaim
to return aref
to theMetricPoint
instead of the index to theMetricPoint
. For cases where we created aMetricPoint
, or reused one in the case of delta reclaim, this saves a second lookup/index/bounds-check into the array before the update is processed.Use
MemoryMarshal.GetArrayDataReference
on TFMs where it is supported to access the zero-tagMetricPoint
(index 0) and the overflowMetricPoint
(index 1) instead of performing a lookup/index/bounds-check on each measurement where they are used.Some renames to help with readability/clarity inside
AggregatorStore
...LookupAggregatorStore
->LookupMetricPoint
LookupAggregatorStoreForDeltaWithReclaim
->LookupMetricPointForDeltaWithReclaim
UpdateDoubleCustomTags
->UpdateDoubleWithTagFiltering
Benchmarks
TODO
Merge requirement checklist