1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-13 01:00:22 +02:00

Remove Context arguments from Aggregator.Checkpoint and Integrator.Process (#803)

* Typo

* Swap order of ddsketch.New for consistency w/ histogram.New

* Remove Integrator.Process ctx argument

* Remove Aggregator.Checkpoint ctx argument

* Revert bugfix
This commit is contained in:
Joshua MacDonald
2020-06-09 11:00:50 -07:00
committed by GitHub
parent a43367a7a4
commit 9401bd9cda
27 changed files with 104 additions and 207 deletions

View File

@ -85,7 +85,7 @@ func (c *Aggregator) Points() ([]metric.Number, error) {
// Checkpoint saves the current state and resets the current state to
// the empty set, taking a lock to prevent concurrent Update() calls.
func (c *Aggregator) Checkpoint(ctx context.Context, desc *metric.Descriptor) {
func (c *Aggregator) Checkpoint(desc *metric.Descriptor) {
c.lock.Lock()
c.checkpoint, c.current = c.current, nil
c.lock.Unlock()