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

Commit 20ba8ea

Browse files
authored
Use opencensus.Version() and gofmt (#14)
1 parent c67897e commit 20ba8ea

2 files changed

Lines changed: 13 additions & 132 deletions

File tree

Gopkg.lock

Lines changed: 11 additions & 130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stats.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ import (
2525
"sync"
2626
"time"
2727

28+
opencensus "go.opencensus.io"
2829
"go.opencensus.io/stats"
2930
"go.opencensus.io/stats/view"
3031
"go.opencensus.io/tag"
3132
"go.opencensus.io/trace"
3233

3334
"cloud.google.com/go/monitoring/apiv3"
3435
"github.com/golang/protobuf/ptypes/timestamp"
35-
"go.opencensus.io/exporterutil"
3636
"google.golang.org/api/option"
3737
"google.golang.org/api/support/bundler"
3838
distributionpb "google.golang.org/genproto/googleapis/api/distribution"
@@ -51,7 +51,7 @@ const (
5151
version = "0.4.0"
5252
)
5353

54-
var userAgent = fmt.Sprintf("opencensus-go %s; stackdriver-exporter %s", exporterutil.Version, version)
54+
var userAgent = fmt.Sprintf("opencensus-go %s; stackdriver-exporter %s", opencensus.Version(), version)
5555

5656
// statsExporter exports stats to the Stackdriver Monitoring.
5757
type statsExporter struct {

0 commit comments

Comments
 (0)