This example demonstrates distributed tracing for Temporal workflows using Braintrust.
-
Install dependencies. This is a uv project that installs
braintrust[temporal]from the local checkout:uv sync
Or if using mise (which also installs the
temporalandovermindCLIs):mise install
-
Configure your Braintrust API key in
.env:cp .env.example .env # Edit .env and add your BRAINTRUST_API_KEY
-
Start the Temporal server and workers:
mise run server
-
In another terminal, run the workflow:
mise run workflow
Optional: Send a signal during workflow execution:
mise run workflow -- --signal