[sdk-metrics] Update Exemplars before MetricPoint CompleteUpdate fires (#5630)
This commit is contained in:
parent
8177a391a6
commit
a9c32c98d0
|
|
@ -492,9 +492,9 @@ public struct MetricPoint
|
|||
}
|
||||
}
|
||||
|
||||
this.CompleteUpdate();
|
||||
|
||||
this.UpdateExemplar(number, tags, offerExemplar);
|
||||
|
||||
this.CompleteUpdate();
|
||||
}
|
||||
|
||||
internal void Update(double number)
|
||||
|
|
@ -608,9 +608,9 @@ public struct MetricPoint
|
|||
}
|
||||
}
|
||||
|
||||
this.CompleteUpdate();
|
||||
|
||||
this.UpdateExemplar(number, tags, offerExemplar);
|
||||
|
||||
this.CompleteUpdate();
|
||||
}
|
||||
|
||||
internal void TakeSnapshot(bool outputDelta)
|
||||
|
|
@ -899,9 +899,9 @@ public struct MetricPoint
|
|||
|
||||
this.mpComponents.ReleaseLock();
|
||||
|
||||
this.CompleteUpdate();
|
||||
|
||||
this.UpdateExemplar(number, tags, offerExemplar);
|
||||
|
||||
this.CompleteUpdate();
|
||||
}
|
||||
|
||||
private void UpdateHistogramWithMinMax(double number, ReadOnlySpan<KeyValuePair<string, object?>> tags = default, bool offerExemplar = false)
|
||||
|
|
@ -923,9 +923,9 @@ public struct MetricPoint
|
|||
|
||||
this.mpComponents.ReleaseLock();
|
||||
|
||||
this.CompleteUpdate();
|
||||
|
||||
this.UpdateExemplar(number, tags, offerExemplar);
|
||||
|
||||
this.CompleteUpdate();
|
||||
}
|
||||
|
||||
private void UpdateHistogramWithBuckets(double number, ReadOnlySpan<KeyValuePair<string, object?>> tags = default, bool offerExemplar = false)
|
||||
|
|
@ -947,9 +947,9 @@ public struct MetricPoint
|
|||
|
||||
this.mpComponents.ReleaseLock();
|
||||
|
||||
this.CompleteUpdate();
|
||||
|
||||
this.UpdateExemplar(number, tags, offerExemplar, bucketIndex);
|
||||
|
||||
this.CompleteUpdate();
|
||||
}
|
||||
|
||||
private void UpdateHistogramWithBucketsAndMinMax(double number, ReadOnlySpan<KeyValuePair<string, object?>> tags = default, bool offerExemplar = false)
|
||||
|
|
@ -974,9 +974,9 @@ public struct MetricPoint
|
|||
|
||||
this.mpComponents.ReleaseLock();
|
||||
|
||||
this.CompleteUpdate();
|
||||
|
||||
this.UpdateExemplar(number, tags, offerExemplar, bucketIndex);
|
||||
|
||||
this.CompleteUpdate();
|
||||
}
|
||||
|
||||
private void UpdateBase2ExponentialHistogram(double number, ReadOnlySpan<KeyValuePair<string, object?>> tags = default, bool offerExemplar = false)
|
||||
|
|
@ -1002,9 +1002,9 @@ public struct MetricPoint
|
|||
|
||||
this.mpComponents.ReleaseLock();
|
||||
|
||||
this.CompleteUpdate();
|
||||
|
||||
this.UpdateExemplar(number, tags, offerExemplar);
|
||||
|
||||
this.CompleteUpdate();
|
||||
}
|
||||
|
||||
private void UpdateBase2ExponentialHistogramWithMinMax(double number, ReadOnlySpan<KeyValuePair<string, object?>> tags = default, bool offerExemplar = false)
|
||||
|
|
@ -1033,9 +1033,9 @@ public struct MetricPoint
|
|||
|
||||
this.mpComponents.ReleaseLock();
|
||||
|
||||
this.CompleteUpdate();
|
||||
|
||||
this.UpdateExemplar(number, tags, offerExemplar);
|
||||
|
||||
this.CompleteUpdate();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
|
|
|
|||
Loading…
Reference in New Issue