pomerium/internal/telemetry
Kenneth Jenkins 247cd175fe
metrics: restore global registry in unit tests (#5399)
Currently there appears to be a test order dependency between a couple
of the info_test.go test cases and the Test_PrometheusHandler test. This
can be exposed by running:

  go test -count 2 ./internal/telemetry/metrics

The test cases in info_test.go overwrite the global 'registry' variable,
which seems to prevent Test_PrometheusHandler from being able to export
the internal Go metrics. Add a helper method to restore the original
registry after these test cases.
2024-12-18 13:21:06 -08:00
..
metrics metrics: restore global registry in unit tests (#5399) 2024-12-18 13:21:06 -08:00
prometheus core/metrics: improve memory usage (#5364) 2024-12-03 11:17:34 -05:00
trace logging: remove ctx from global log methods (#5337) 2024-10-23 14:18:52 -06:00
doc.go telemetry: Refactor GRPC Server Handler (#756) 2020-05-22 13:36:55 -04:00
grpc.go internal/telemetry: fix grpc server stats (#2811) 2021-12-08 16:13:08 -05:00
grpc_test.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
http.go Fix IdP client metrics (#2810) 2021-12-08 13:22:53 -05:00
util.go telemetry: service label updates (#802) 2020-05-29 15:16:22 -04:00
util_test.go dev: update linter (#1728) 2020-12-30 09:02:57 -08:00