Skip to content

Commit

Permalink
Add aggregator to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Sep 27, 2022
1 parent 7058204 commit 3a0d895
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/metric/pipeline.go
Expand Up @@ -233,6 +233,10 @@ func (i *inserter[N]) Instrument(inst view.Instrument, instUnit unit.Unit) ([]in
}
if a != nil {
aggs = append(aggs, a)
err = i.pipeline.addAggregator(inst.Scope, inst.Name, inst.Description, instUnit, a)
if err != nil {
errs.append(err)
}
}
}

Expand Down

0 comments on commit 3a0d895

Please sign in to comment.