commit | 5a8749be20edd9ca443064ff21bec18263ea2f95 | [log] [tgz] |
---|---|---|
author | Julie Qiu <julie@golang.org> | Fri Feb 03 15:29:52 2023 -0500 |
committer | Gopher Robot <gobot@golang.org> | Mon Feb 06 13:36:11 2023 +0000 |
tree | c119097cdb162c788498656353c8ea7b60894494 | |
parent | 2b7cd750483f70170d5217d69cefebfd4c223376 [diff] |
internal/worker: only init observer if possible s.observer is now only initialized if both ProjectID and ServiceID are set. This makes it possible run the worker server and view the index page, without connecting to GCP. Change-Id: I553034683c00eee7c4f962e59c726eda82c7ea04 Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/465220 Reviewed-by: Julie Qiu <julieqiu@google.com> Auto-Submit: Julie Qiu <julieqiu@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Julie Qiu <julieqiu@google.com>
This repository contains code that serves pkg.go.dev/metrics.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/pkgsite-metrics:” in the subject line, so it is easy to find.