report panic comment and shorter timeout
This commit is contained in:
parent
2c8943a12d
commit
8681ea6026
@ -76,7 +76,9 @@ func (c *CheckpointTelemetry) ReportPanic(m string) error {
|
|||||||
panicParams.Payload = m
|
panicParams.Payload = m
|
||||||
panicParams.EndTime = time.Now().UTC()
|
panicParams.EndTime = time.Now().UTC()
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 4500*time.Millisecond)
|
// This timeout can be longer because it runs in the real main.
|
||||||
|
// We're also okay waiting a bit longer to collect panic information
|
||||||
|
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
return checkpoint.Report(ctx, panicParams)
|
return checkpoint.Report(ctx, panicParams)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user