You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f9de73f
Browse filesBrowse the repository at this point in the historyBrowse files
The executor now records spans for each task run, dependency waits,
up-to-date checks, commands, and waits for a concurrency slot or for a
`run: once` task started elsewhere. With tracing off the tracer is nil
and nothing is recorded.
--profile <file> writes the run as a Chrome trace (for ui.perfetto.dev,
chrome://tracing or speedscope), with parallel work on separate lanes,
and prints the total time, the critical path (following the task that
finished last at each level) and the tasks with the most self time.
When OTEL_EXPORTER_OTLP_ENDPOINT or OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
is set, spans are exported over OTLP (http/protobuf, or grpc via the
protocol variables), with the usual OTEL_* configuration. An incoming
TRACEPARENT becomes the parent of the run, and each command gets a
TRACEPARENT for its own span so nested tools can join the trace.
Tracing is off in watch mode.
Also fixes the signals tests, which still looked for a `task` binary,
and makes `test:all` build bin/taskgraph for them.
Implements the upstream feature request go-task#2948.
Claude-Session: https://claude.ai/code/session_01Mq67Dn7CYxFfKStHX6jMSE
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ safe, well-described tools, and monorepos where CI time matters.
18
18
|[`--graph`](docs/graph-and-explain.md#--graph-see-what-runs-what)| Prints the task graph as a tree, Mermaid, Graphviz DOT or JSON, and flags missing tasks and cycles. |
19
19
|[`--explain`](docs/graph-and-explain.md#--explain-why-will-this-run)| Says whether each task would run and why, down to which source files were added, modified or removed. Add `--json` for machine-readable output. |
20
20
|[`--affected`](docs/affected.md)| Runs only the tasks affected by what changed in git (`--since origin/main` for pull requests), following sources, Taskfile edits and the dependency graph. With no task names, lists them, optionally as JSON for CI. |
21
+
|[`--profile` and OpenTelemetry](docs/tracing.md)|`--profile trace.json` writes a Perfetto/Chrome timeline and prints the critical path and slowest tasks. Setting `OTEL_EXPORTER_OTLP_ENDPOINT` exports spans for every task and command to any OpenTelemetry backend, with `TRACEPARENT` passed through to commands. |
21
22
|[Cycle detection](docs/graph-and-explain.md#cycle-detection)| Stops at the first cyclic call and names it (`a -> b -> a`), instead of failing after 1,000 calls or hanging. |
0 commit comments