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

Commit aa87ed6

Browse files
authored
flush interval reader when stopping metric reader (#282)
* flush interval reader when stopping metric reader fix staticcheck error * fix staticcheck errors
1 parent 1996040 commit aa87ed6

18 files changed

Lines changed: 746 additions & 293 deletions

go.mod

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@ module contrib.go.opencensus.io/exporter/stackdriver
33
go 1.12
44

55
require (
6-
cloud.google.com/go v0.45.1
7-
github.com/aws/aws-sdk-go v1.23.20
8-
github.com/census-instrumentation/opencensus-proto v0.2.1
9-
github.com/golang/protobuf v1.3.2
10-
github.com/google/go-cmp v0.3.1
11-
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024
12-
go.opencensus.io v0.22.4
13-
golang.org/x/lint v0.0.0-20190409202823-959b441ac422
14-
golang.org/x/net v0.0.0-20190923162816-aa69164e4478
15-
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
16-
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
17-
golang.org/x/tools v0.0.0-20191010075000-0337d82405ff
18-
google.golang.org/api v0.10.0
19-
google.golang.org/appengine v1.6.2 // indirect
20-
google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51
21-
google.golang.org/grpc v1.23.1
22-
honnef.co/go/tools v0.0.1-2019.2.3
6+
cloud.google.com/go v0.75.0
7+
github.com/aws/aws-sdk-go v1.37.0
8+
github.com/census-instrumentation/opencensus-proto v0.3.0
9+
github.com/golang/protobuf v1.4.3
10+
github.com/google/go-cmp v0.5.4
11+
github.com/jstemmer/go-junit-report v0.9.1
12+
go.opencensus.io v0.22.6
13+
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5
14+
golang.org/x/net v0.0.0-20210119194325-5f4716e94777
15+
golang.org/x/oauth2 v0.0.0-20210126194326-f9ce19ea3013
16+
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect
17+
golang.org/x/text v0.3.5 // indirect
18+
golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e
19+
google.golang.org/api v0.37.0
20+
google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506
21+
google.golang.org/grpc v1.35.0
22+
google.golang.org/protobuf v1.25.0
23+
honnef.co/go/tools v0.0.1-2020.1.4
2324
)

go.sum

Lines changed: 322 additions & 14 deletions
Large diffs are not rendered by default.

internal/testpb/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# generate .pb.go file from .proto file.
33
set -e
4-
protoc --go_out=plugins=grpc:. test.proto
4+
protoc --go_out=. --go-grpc_out=. test.proto
55
echo '
66
//go:generate ./generate.sh
77
' >> test.pb.go

internal/testpb/impl.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ func (s *testServer) Multiple(stream Foo_MultipleServer) error {
6262
}
6363
}
6464

65+
// mustEmbedUnimplementedFooServer is a dummy method added to satisfy
66+
// FooServer interface
67+
func (*testServer) mustEmbedUnimplementedFooServer() {}
68+
6569
// NewTestClient is used for internal testing only. It creates a
6670
// grpc server and client. It returns client and cleanup function
6771
// to close the connection and gracefully stop the server.

0 commit comments

Comments
 (0)