()
| 12 | ) |
| 13 | |
| 14 | func New() parallelJobs { |
| 15 | return parallelJobs{ |
| 16 | Tracing: true, // Enable tracing by default |
| 17 | Internal: false, |
| 18 | Reveal: false, // this used to be 'true', but it caused too many "hiding noisy spans" in web trace view |
| 19 | |
| 20 | // Don't use the contextual tracer by default: this breaks in Dagger *clients* (including modules), |
| 21 | // because a freshly connected client does not have |
| 22 | ContextualTracer: false, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | func Run(ctx context.Context, name string, fn JobFunc) error { |
| 27 | return New().WithJob(name, fn).Run(ctx) |
no outgoing calls
no test coverage detected