File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 2
2
package trace
3
3
4
4
import (
5
+ "context"
5
6
"errors"
6
7
"io"
7
8
)
@@ -11,3 +12,31 @@ func Start(w io.Writer) error {
11
12
}
12
13
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
+ }
You can’t perform that action at this time.
0 commit comments