Skip to content

Commit

Permalink
runtime/trace: stub all public methods
Browse files Browse the repository at this point in the history
Signed-off-by: Joonas Bergius <[email protected]>
  • Loading branch information
joonas committed Oct 31, 2024
1 parent 0edeaf6 commit 82d45f2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/runtime/trace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package trace

import (
"context"
"errors"
"io"
)
Expand All @@ -11,3 +12,31 @@ func Start(w io.Writer) error {
}

func Stop() {}

func NewTask(pctx context.Context, taskType string) (ctx context.Context, task *Task) {
return context.TODO(), nil
}

type Task struct{}

func (t *Task) End() {}

func Log(ctx context.Context, category, message string) {}

func Logf(ctx context.Context, category, format string, args ...any) {}

func WithRegion(ctx context.Context, regionType string, fn func()) {
fn()
}

func StartRegion(ctx context.Context, regionType string) *Region {
return nil
}

type Region struct{}

func (r *Region) End() {}

func IsEnabled() bool {
return false
}

0 comments on commit 82d45f2

Please sign in to comment.