Skip to content

Commit 7bdfbfb

Browse files
committed
sandbox: instrument HTTP handlers with StackDriver
This change adds OpenCensus's HTTP instrumentation to the sandbox. In development mode, it exposes a prometheus metrics interface on /statusz. This is the first in a series of CLs to add instrumentation to different parts of the sandbox to help investigate instability issues. For now, reporting metrics around our responses per handler to StackDriver will be helpful. OpenTelemetry would be preferable, as it is the successor of OpenCensus, however the StackDriver integration is not quite done. Updates golang/go#25224 Updates golang/go#38530 Change-Id: I600fd695bb66c8bee16bc0b778d51930f4cdd476 Reviewed-on: https://go-review.googlesource.com/c/playground/+/229679 Run-TryBot: Alexander Rakoczy <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
1 parent 91bfd78 commit 7bdfbfb

File tree

6 files changed

+473
-8
lines changed

6 files changed

+473
-8
lines changed

go.mod

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@ module golang.org/x/playground
33
go 1.12
44

55
require (
6-
cloud.google.com/go v0.38.0
6+
cloud.google.com/go v0.54.0
7+
cloud.google.com/go/datastore v1.1.0
8+
cloud.google.com/go/pubsub v1.3.1 // indirect
9+
contrib.go.opencensus.io/exporter/prometheus v0.1.0
10+
contrib.go.opencensus.io/exporter/stackdriver v0.13.1
711
github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668
8-
github.com/google/go-cmp v0.3.0
12+
github.com/google/go-cmp v0.4.0
13+
go.opencensus.io v0.22.3
914
golang.org/x/build v0.0.0-20190709001953-30c0e6b89ea0
1015
golang.org/x/mod v0.2.0
1116
golang.org/x/tools v0.0.0-20200420001825-978e26b7c37c
12-
google.golang.org/api v0.4.0
17+
google.golang.org/api v0.20.0
18+
google.golang.org/genproto v0.0.0-20200312145019-da6875a35672
19+
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
20+
gopkg.in/yaml.v2 v2.2.7 // indirect
1321
grpc.go4.org v0.0.0-20170609214715-11d0a25b4919
1422
)

0 commit comments

Comments
 (0)