Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
skip equality check for cached metric descriptor for built-in metrics. (
Browse files Browse the repository at this point in the history
  • Loading branch information
rghetia committed Feb 11, 2019
1 parent 0f284fd commit c06c82c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ func (e *statsExporter) createMeasure(ctx context.Context, v *view.View) error {
viewName := v.Name

if md, ok := e.createdViews[viewName]; ok {
// [TODO:rghetia] Temporary fix for https://github.com/census-ecosystem/opencensus-go-exporter-stackdriver/issues/76#issuecomment-459459091
if builtinMetric(md.Type) {
return nil
}
return e.equalMeasureAggTagKeys(md, v.Measure, v.Aggregation, v.TagKeys)
}

Expand Down

0 comments on commit c06c82c

Please sign in to comment.