pubsub: use the new aggreagation API
@@ -144,7 +144,7 @@ func mustNewMeasure(name, desc string) *stats.Int64Measure {
func mustNewView(m *stats.Int64Measure) *view.View {
v, err := view.New(m.Name(), "cumulative "+m.Description(),
- []tag.Key{subscriptionKey}, m, view.SumAggregation{})
+ []tag.Key{subscriptionKey}, m, view.Sum())
if err != nil {
log.Fatalf("creating view for %q: %v", m.Name(), err)
}
