tailscale/tsweb
Hasnain Lakhani 8fe04b035c tsweb: sort varz by name after stripping prefix (#5778)
This makes it easier to view prometheus metrics.

Added a test case which demonstrates the new behavior - the test
initially failed as the output was ordered in the same order
as the fields were declared in the struct (i.e. foo_a, bar_a, foo_b,
bar_b). For that reason, I also had to change an existing test case
to sort the fields in the new expected order.

Signed-off-by: Hasnain Lakhani <m.hasnain.lakhani@gmail.com>
2022-10-09 16:55:51 -07:00
..
debug_test.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
debug.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
log.go tsweb: mark AccessLogRecord fields as omitempty (#5250) 2022-08-01 21:17:38 -07:00
tsweb_test.go tsweb: sort varz by name after stripping prefix (#5778) 2022-10-09 16:55:51 -07:00
tsweb.go tsweb: sort varz by name after stripping prefix (#5778) 2022-10-09 16:55:51 -07:00