pkgsite/internal/postgres
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
..
testdata internal/postgres: remove null runes from licenses 2020-03-27 16:46:49 -04:00
benchmarks_test.go internal/postgres: add symbol search 2021-05-17 15:56:47 +00:00
clean.go internal/worker: /clean endpoint supports a single module 2021-05-01 20:50:41 +00:00
clean_test.go internal/worker: /clean endpoint supports a single module 2021-05-01 20:50:41 +00:00
delete.go internal/postgres: add collectStrings 2021-03-04 20:54:01 +00:00
delete_test.go internal/postgres,etc: finish MustInsertModule cleanup 2021-04-08 16:30:30 +00:00
details.go internal/postgres: remove uses of modules.deprecated_comment 2021-04-13 18:23:28 +00:00
details_test.go internal/postgres,etc: finish MustInsertModule cleanup 2021-04-08 16:30:30 +00:00
excluded.go internal/postgres: add collectStrings 2021-03-04 20:54:01 +00:00
excluded_test.go internal/postgres: parallelize tests 2021-02-12 21:24:08 +00:00
goldmark.go internal: transition from blackfriday to goldmark 2020-10-14 19:07:27 +00:00
insert_module.go internal/postgres: write to imports table 2021-06-10 10:49:42 +00:00
insert_module_test.go internal: enable symbol history for stdlib 2021-05-05 16:29:51 +00:00
insert_symbol_history.go internal/postgres: insert new_symbol_history 2021-06-03 17:41:12 +00:00
insert_symbol_history_test.go internal/postgres: update symbol_history when version is the same 2021-04-30 16:32:25 +00:00
licenses.go internal/postgres: add a stack to all wrapped errors 2021-02-12 18:15:20 +00:00
licenses_test.go internal/postgres: read only one doc source from DB 2021-04-29 21:01:19 +00:00
package_symbol.go internal: add experiment InsertSymbolSearchDocuments 2021-05-17 18:02:02 +00:00
path.go internal/postgres: write to imports table 2021-06-10 10:49:42 +00:00
path_test.go internal/{postgres,frontend}: group search results 2021-05-06 13:18:15 +00:00
postgres.go internal/worker: add metric for new unprocessed modules 2021-06-09 17:56:31 +00:00
postgres_test.go internal/postgres: disable poller during postgres tests 2021-02-19 12:42:19 +00:00
requeue.go Revert "internal/postgres: process new modules in arrival order" 2021-05-27 18:58:45 +00:00
requeue_test.go internal/{postgres,worker}: only reprocess release version 2021-04-28 20:03:21 +00:00
search.go internal/dcensus: add Latency 2021-06-12 01:54:21 +00:00
search_test.go internal: add experiment InsertSymbolSearchDocuments 2021-05-17 18:02:02 +00:00
searchdoc.go internal: gofmt -s 2020-06-16 15:23:30 +00:00
searchdoc_test.go internal/postgres: parallelize tests 2021-02-12 21:24:08 +00:00
stdlib.go internal/postgres: add collectStrings 2021-03-04 20:54:01 +00:00
stdlib_test.go internal/postgres,etc: finish MustInsertModule cleanup 2021-04-08 16:30:30 +00:00
symbol.go internal/postgres: only skip documentation_symbols 2021-06-03 17:23:30 +00:00
symbol_history.go internal/frontend: support displaying multiple of same type 2021-05-06 17:43:23 +00:00
symbol_test.go internal: delete ExperimentInsertSymbolHistory 2021-05-17 18:02:11 +00:00
test_helper.go internal/postgres: ensure good version not later than cooked 2021-05-12 15:33:38 +00:00
unit.go internal/postgres: read from imports table 2021-06-10 11:02:10 +00:00
unit_test.go internal/postgres: read from imports table 2021-06-10 11:02:10 +00:00
version.go internal/version: drop Version suffix from constants 2021-06-07 16:08:09 +00:00
version_map.go internal/postgres: add a stack to all wrapped errors 2021-02-12 18:15:20 +00:00
version_map_test.go internal/version: drop Version suffix from constants 2021-06-07 16:08:09 +00:00
version_test.go many: remove "retractions" experiment 2021-04-13 11:11:51 +00:00
versionstate.go internal/postgres: mark processed modules from index with status 0 2021-05-12 15:42:11 +00:00
versionstate_test.go Revert "internal/postgres: process new modules in arrival order" 2021-05-27 18:58:45 +00:00