MCPcopy Index your code
hub / github.com/coder/coder / sendTelemetryBackground

Method sendTelemetryBackground

tailnet/conn.go:897–910  ·  view source on GitHub ↗
(e *proto.TelemetryEvent)

Source from the content-addressed store, hash-verified

895}
896
897func (c *Conn) sendTelemetryBackground(e *proto.TelemetryEvent) {
898 c.mutex.Lock()
899 defer c.mutex.Unlock()
900 select {
901 case <-c.closed:
902 return
903 default:
904 }
905 c.telemetryWg.Add(1)
906 go func() {
907 defer c.telemetryWg.Done()
908 c.telemetrySink.SendTelemetryEvent(e)
909 }()
910}
911
912// Watch for changes in the connection type (P2P<->DERP) and send telemetry events.
913func (c *Conn) watchConnChange() {

Callers 4

sendPingTelemetryMethod · 0.95

Implementers 1

fakeConnvpn/tunnel_internal_test.go

Calls 5

AddMethod · 0.65
SendTelemetryEventMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45
DoneMethod · 0.45

Tested by

no test coverage detected