Switch to go modules

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-04-15 08:34:23 -04:00
parent 461954facb
commit 1720059244
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
763 changed files with 24896 additions and 177398 deletions

View file

@ -17,8 +17,7 @@ package view
import (
"sort"
"go.opencensus.io/exemplar"
"time"
"go.opencensus.io/internal/tagencoding"
"go.opencensus.io/tag"
@ -33,13 +32,13 @@ type collector struct {
a *Aggregation
}
func (c *collector) addSample(s string, e *exemplar.Exemplar) {
func (c *collector) addSample(s string, v float64, attachments map[string]interface{}, t time.Time) {
aggregator, ok := c.signatures[s]
if !ok {
aggregator = c.a.newData()
c.signatures[s] = aggregator
}
aggregator.addSample(e)
aggregator.addSample(v, attachments, t)
}
// collectRows returns a snapshot of the collected Row values.