turbo
d47c6c7e - feat: Add with-otel example with pre-configured Grafana dashboard (#12043)

Commit
1 day ago
feat: Add with-otel example with pre-configured Grafana dashboard (#12043) ## Summary - Moves `examples/local-otel-collector` to `examples/with-otel` and transforms it into a standard Turborepo example following the `create-turbo` pattern - Adds a pre-configured Grafana dashboard so users see Turborepo metrics immediately after `docker compose up -d` -- no manual datasource or dashboard setup required ## Try it ```sh npx create-turbo@latest \ -e https://github.com/vercel/turborepo/tree/shew/otel-collector-friendly-example \ -p examples/with-otel ``` ## Testing ```sh cd with-otel pnpm install docker compose up -d # macOS / Linux export TURBO_EXPERIMENTAL_OTEL_ENABLED=1 export TURBO_EXPERIMENTAL_OTEL_ENDPOINT=https://127.0.0.1:4317 export TURBO_EXPERIMENTAL_OTEL_RESOURCE="service.name=turborepo,env=local" export TURBO_EXPERIMENTAL_OTEL_METRICS_TASK_DETAILS=1 turbo build # Open http://localhost:3001 to see the Grafana dashboard ``` --------- Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Author
Parents
Loading