MCPcopy Create free account
hub / github.com/docker/docker-language-server / publishTelemetry

Method publishTelemetry

internal/pkg/server/server.go:189–203  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

187}
188
189func (s *Server) publishTelemetry(ctx context.Context) {
190 go func() {
191 defer s.handlePanic("publishTelemetry")
192
193 for {
194 select {
195 case <-ctx.Done():
196 return
197 default:
198 time.Sleep(time.Second * 60)
199 _, _ = s.telemetry.Publish(ctx)
200 }
201 }
202 }()
203}
204
205func (s *Server) handleRecovered(method string, recovered interface{}) bool {
206 if recovered != nil {

Callers 1

Calls 2

handlePanicMethod · 0.95
PublishMethod · 0.65

Tested by

no test coverage detected