mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:12:02 +00:00
observation.TestContextTB is better to use since your logs will be scoped to your test and it will use a more pedantic prometheus registry. To be honest TestContext should be removed but this is the first step. This is a mechanical change. I replaced "&observation.TestContext" with "observation.TestContextTB(t)". I then undid the change each time it caused a compilation error (was only a handful of times). Test Plan: go test |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| cache_test.go | ||
| cache.go | ||
| CODENOTIFY | ||
| context.go | ||
| observability.go | ||
| url_mutex.go | ||