Want to understand why some of your @vitest.dev tests are slower than expected? Then you can use the built-in experimental @opentelemetry.io support to figure out what makes tests slow and how much time is spent on each part of it. 📈
Post
When enabled, Vitest will generate traces automatically, while you are also able to add custom tracing to it. More on GitHub github.com/vitest-dev/v... PS: Keep in mind that OTEL will increase the time of the tests when enabled.
github.comStabilizing `openTelemetry` · vitest-dev vitest · Discussion #9222experimental.openTelemetry Introduced in 4.0.11 Docs: Config option Guide Rational: It could be hard to analyze the performance of your tests with built-in tools like a CPU Profiler (for example, N...
0 reposts5 likes