Skip to content

Commit 1648fe8

Browse files
joonasaykevl
authored andcommitted
runtime/trace: stub all public methods
Signed-off-by: Joonas Bergius <[email protected]>
1 parent 449eefd commit 1648fe8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/runtime/trace/trace.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
package trace
33

44
import (
5+
"context"
56
"errors"
67
"io"
78
)
@@ -11,3 +12,31 @@ func Start(w io.Writer) error {
1112
}
1213

1314
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

Comments
 (0)