ginuerzh
|
bc3d12ec2c
|
fix(metrics): add doc comments, fix labels mutation and nil returns, add idempotent Close, add nil guards, add tests
- Fix promMetrics.Gauge/Counter/Observer mutating caller's labels map by
using maps.Copy instead of direct assignment
- Fix Gauge/Counter/Observer returning nil for unknown metric names
(now return noop implementations)
- Fix metricService.Close() race with sync.Once for safe concurrent calls
- Fix SetDSCP returning nil instead of errUnsupport on unsupported ops
- Add nil guards to WrapConn, WrapPacketConn, WrapUDPConn, WrapListener
- Add doc comments to all exported symbols
- Add 45 unit tests (metrics, noop, prom, service, wrapper)
|
2026-05-24 22:50:41 +08:00 |
|
ginuerzh
|
1c1f092a14
|
fix metrics wrapper
|
2025-10-11 21:54:16 +08:00 |
|
ginuerzh
|
c7d16962ec
|
add service option for plugin
|
2025-08-29 23:36:31 +08:00 |
|
ginuerzh
|
b597467858
|
add context for conn
|
2025-08-04 19:29:38 +08:00 |
|
ginuerzh
|
f71351f5ef
|
add interface xnet.SrcAddr/DstAddr
|
2025-08-03 10:15:53 +08:00 |
|
ginuerzh
|
db21de831a
|
fix xnet.Pipe
|
2025-08-01 23:00:50 +08:00 |
|
ginuerzh
|
208d18125c
|
replace xnet.Transport by xnet.Pipe
|
2025-07-28 20:52:15 +08:00 |
|
ginuerzh
|
afcf4a5252
|
parse real client IP
|
2025-07-15 19:59:10 +08:00 |
|
ginuerzh
|
8cacfad9eb
|
fix metrics for listener
|
2025-06-24 21:13:30 +08:00 |
|
Denis Galeev
|
0e59ccc64b
|
add new metric
|
2025-06-24 11:01:26 +08:00 |
|
ginuerzh
|
aa7528fc1e
|
add reload for web api
|
2025-01-10 21:39:21 +08:00 |
|
ginuerzh
|
c1e6164a83
|
add unix domain socket support for api & metrics services
|
2024-11-22 22:49:10 +08:00 |
|
ginuerzh
|
69455ace9d
|
add handler recorder
|
2024-09-14 23:21:25 +08:00 |
|
ginuerzh
|
f847fa533e
|
fix auth for file handler
|
2023-12-16 14:28:58 +08:00 |
|
ginuerzh
|
4be7d60147
|
add auther for metrics
|
2023-10-09 21:27:35 +08:00 |
|
ginuerzh
|
7576651a67
|
add client label for metrics
|
2023-04-14 18:51:34 +08:00 |
|
ginuerzh
|
416405b1f0
|
add UDP support for reverse proxy tunnel
|
2023-02-02 19:18:10 +08:00 |
|
ginuerzh
|
1c6bc9283e
|
forward non-HTTP traffic based on host
|
2023-01-30 21:09:21 +08:00 |
|
ginuerzh
|
a1255e52d8
|
fix proxy protocol
|
2022-09-28 11:47:56 +08:00 |
|
ginuerzh
|
4c2131ca6d
|
add rate limiter
|
2022-09-05 22:47:51 +08:00 |
|
ginuerzh
|
d011aefefd
|
fix metadata
|
2022-04-07 23:03:31 +08:00 |
|
ginuerzh
|
1444ebc1ee
|
add metrics
|
2022-04-05 17:56:36 +08:00 |
|