runtime/trace: incorrect WithRegion usage in code snippet #27406
Labels
Documentation
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What did you do?
What did you expect to see?
What did you see instead?
The
trace.WithRegion
requires 3 parameters (ctx
,regionType
,fn
) however in the code snippet for trace.NewTask, it seems to be missing some parameter.It depends what
prepWork
andremainingWork
represent here, but if they represent function (fn
parameter) then this code snippet is misisngregionType
parameter.The code snippet is also missing
()
for thego func() ...
call.The text was updated successfully, but these errors were encountered: