| 359 | } |
| 360 | |
| 361 | type instrumentedConn struct { |
| 362 | net.Conn |
| 363 | |
| 364 | agentID uuid.UUID |
| 365 | closeOnce sync.Once |
| 366 | connsPerAgent *prometheus.GaugeVec |
| 367 | } |
| 368 | |
| 369 | func (c *instrumentedConn) Close() error { |
| 370 | c.closeOnce.Do(func() { |
nothing calls this directly
no outgoing calls
no test coverage detected