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

Commit

Permalink
Fix proto import (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
songy23 committed Aug 30, 2019
1 parent 7cac5ce commit 3a3e471
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions metrics_proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ import (
"sort"
"strings"

"go.opencensus.io/resource"

monitoring "cloud.google.com/go/monitoring/apiv3"
commonpb "github.com/census-instrumentation/opencensus-proto/gen-go/agent/common/v1"
metricspb "github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1"
resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1"
"github.com/golang/protobuf/ptypes/timestamp"
"go.opencensus.io/resource"
timestamppb "github.com/golang/protobuf/ptypes/timestamp"
distributionpb "google.golang.org/genproto/googleapis/api/distribution"
labelpb "google.golang.org/genproto/googleapis/api/label"
googlemetricpb "google.golang.org/genproto/googleapis/api/metric"
Expand Down Expand Up @@ -549,7 +550,7 @@ func hasDomain(name string) bool {
return false
}

func fromProtoPoint(startTime *timestamp.Timestamp, pt *metricspb.Point) (*monitoringpb.Point, error) {
func fromProtoPoint(startTime *timestamppb.Timestamp, pt *metricspb.Point) (*monitoringpb.Point, error) {
if pt == nil {
return nil, nil
}
Expand Down

0 comments on commit 3a3e471

Please sign in to comment.