pkgsite/internal
Julie Qiu 6f80375784 internal/dcensus: add Latency
There are several places where we need to compute the latency
measurement for recording an opencensus measurement.

A dcensus.Latency function is added so that
we can ensure latency is being calculated in the same way for all
measurements.

Change-Id: Ic138f29106f88c9c468084816d8856e47bbd7cc2
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/247359
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-12 01:54:21 +00:00
..
auth
cache
config internal/config: lengthen statement timeout 2021-05-14 20:15:36 +00:00
cookie
database internal/database: fix flaky test (again) 2021-06-10 10:59:22 +00:00
dcensus internal/dcensus: add Latency 2021-06-12 01:54:21 +00:00
derrors
experiment
fetch internal: update references to dochtml 2021-06-09 15:34:54 +00:00
frontend internal/dcensus: add Latency 2021-06-12 01:54:21 +00:00
godoc internal: update references to dochtml 2021-06-09 15:34:54 +00:00
index
licenses internal/licenses: accept BSD-2-Clause-Patent 2021-05-19 15:05:35 +00:00
localdatasource internal: update references to dochtml 2021-06-09 15:34:54 +00:00
log
middleware internal/dcensus: add Latency 2021-06-12 01:54:21 +00:00
poller
postgres internal/dcensus: add Latency 2021-06-12 01:54:21 +00:00
proxy internal/version: drop Version suffix from constants 2021-06-07 16:08:09 +00:00
proxydatasource internal: update references to dochtml 2021-06-09 15:34:54 +00:00
queue internal/queue: fix race condition 2021-06-11 18:04:46 +00:00
secrets
source internal/source: fix TestModuleInfo 2021-06-11 16:52:54 +00:00
static content,internal: update pages to use new base layout 2021-06-07 15:09:35 +00:00
stdlib internal/stdlib: use version constants 2021-06-07 16:08:15 +00:00
symbol internal: rename UnitSymbol to SymbolBuildContexts 2021-05-12 20:28:30 +00:00
testing internal/queue: fix race condition 2021-06-11 18:04:46 +00:00
version internal/version: drop Version suffix from constants 2021-06-07 16:08:09 +00:00
worker internal/worker: add metric for new unprocessed modules 2021-06-09 17:56:31 +00:00
xcontext
build_context.go
build_context_test.go
datasource.go
discovery.go internal/postgres: add symbol search 2021-05-17 15:56:47 +00:00
discovery_test.go
experiment.go internal/postgres: read from imports table 2021-06-10 11:02:10 +00:00
latest.go
latest_test.go
nonredist.go
paths.go
paths_test.go
symbol.go internal: rename UnitSymbol to SymbolBuildContexts 2021-05-12 20:28:30 +00:00
unit.go