mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
4e056ee9d7
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vladimir Sheremet <[email protected]>
Vitest Opentelemtry Example
- Documentation: https://vitest.dev/guide/open-telemetry.html
Usage
# Start Jaeger service to receive otlp traces over http
# and serve Web UI at http://localhost:16686
docker compose up -d
# Run tests (exports with OTLP HTTP by default)
pnpm test --experimental.openTelemetry.enabled
# Use console exporter for quick debugging
OTEL_TRACES_EXPORTER=console pnpm test --experimental.openTelemetry.enabled
# Run browser mode
pnpm test --experimental.openTelemetry.enabled --browser.enabled