Skip to content

Commit

Permalink
fix: reduce log
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed May 30, 2024
1 parent 360b08a commit f41f390
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/logger/tui_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"io"
"os"
"strings"
"sync"

"github.com/dagger/dagger/telemetry"
Expand Down Expand Up @@ -102,6 +103,15 @@ func (ui *exporter) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySp
}
}

for _, internalSpanPrefix := range []string{
"moby.buildkit.v1.",
"moby.filesync.v1.",
} {
if strings.HasPrefix(span.Name(), internalSpanPrefix) {
internal = true
}
}

rec := ui.taskRecorderGetterOf(span.SpanContext().SpanID(), span.Name(), total, internal)()
if rec == nil {
continue
Expand Down

0 comments on commit f41f390

Please sign in to comment.