MCPcopy
hub / github.com/wavetermdev/waveterm / panicTelemetryHandler

Function panicTelemetryHandler

cmd/server/main-server.go:206–215  ·  view source on GitHub ↗
(panicName string)

Source from the content-addressed store, hash-verified

204}
205
206func panicTelemetryHandler(panicName string) {
207 activity := wshrpc.ActivityUpdate{NumPanics: 1}
208 err := telemetry.UpdateActivity(context.Background(), activity)
209 if err != nil {
210 log.Printf("error updating activity (panicTelemetryHandler): %v\n", err)
211 }
212 telemetry.RecordTEvent(context.Background(), telemetrydata.MakeTEvent("debug:panic", telemetrydata.TEventProps{
213 PanicType: panicName,
214 }))
215}
216
217func sendTelemetryWrapper() {
218 defer func() {

Callers

nothing calls this directly

Calls 3

UpdateActivityFunction · 0.92
RecordTEventFunction · 0.92
MakeTEventFunction · 0.92

Tested by

no test coverage detected