TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Traceloop – open-source for generating tests from production traffic

3 pointsby nirgaabout 2 years ago
For the past few weeks we&#x27;ve been building an engine that can run system integration tests written in Jest against OpenTelemetry traces.<p>If you ever worked on a system with a few tens of microservices you got to a point where making changes become difficult. You always worry something is going to break. Unit tests are not enough. You need to have a way to test if (for example) the HTTP request to register a user will trigger that welcome e-mail at the end of the flow.<p>So we&#x27;ve build an open source framework where you can simply write such tests. You can assert on database queries, on HTTP requests and responses, and more to come. We use traces from OpenTelemetry to verify that the assertions you wrote in your test are true.<p>Our long term goal is to even generate the tests automatically from those traces.<p>We&#x27;re still early on so would love to get any feedback on our concept and implementation!<p>repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;traceloop&#x2F;jest-opentelemetry">https:&#x2F;&#x2F;github.com&#x2F;traceloop&#x2F;jest-opentelemetry</a><p>docs: <a href="https:&#x2F;&#x2F;docs.traceloop.dev&#x2F;jest-otel&#x2F;introduction">https:&#x2F;&#x2F;docs.traceloop.dev&#x2F;jest-otel&#x2F;introduction</a>

1 comment

talborenabout 2 years ago
Good luck, love the concept of leveraging traces for testing!