We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 449eefd commit 1648fe8Copy full SHA for 1648fe8
src/runtime/trace/trace.go
@@ -2,6 +2,7 @@
2
package trace
3
4
import (
5
+ "context"
6
"errors"
7
"io"
8
)
@@ -11,3 +12,31 @@ func Start(w io.Writer) error {
11
12
}
13
14
func Stop() {}
15
+
16
+func NewTask(pctx context.Context, taskType string) (ctx context.Context, task *Task) {
17
+ return context.TODO(), nil
18
+}
19
20
+type Task struct{}
21
22
+func (t *Task) End() {}
23
24
+func Log(ctx context.Context, category, message string) {}
25
26
+func Logf(ctx context.Context, category, format string, args ...any) {}
27
28
+func WithRegion(ctx context.Context, regionType string, fn func()) {
29
+ fn()
30
31
32
+func StartRegion(ctx context.Context, regionType string) *Region {
33
+ return nil
34
35
36
+type Region struct{}
37
38
+func (r *Region) End() {}
39
40
+func IsEnabled() bool {
41
+ return false
42
0 commit comments