(panicName string)
| 204 | } |
| 205 | |
| 206 | func 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 | |
| 217 | func sendTelemetryWrapper() { |
| 218 | defer func() { |
nothing calls this directly
no test coverage detected