Write and run trace-based tests against a distributed system using Tracetest

domain: docs.tracetest.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install Tracetest CLI (tracetest) and run tracetest configure to connect it to a running Tracetest server or Tracetest Cloud endpoint with YOUR_TOKEN
  2. Create a test definition YAML specifying: trigger (HTTP request, grpc call, or Kafka message), a pollingProfile (how long to wait for the trace to be complete), and assertions written against span attributes
  3. Write assertions using the selector syntax: select a span with a SpanSelector (e.g., span[tracing.system.name = "my-service"] and assert that http.response.status_code = 200 or db.statement contains the expected query
  4. Run the test with tracetest run test -f test-definition.yaml and observe the structured output showing which span assertions passed or failed
  5. Integrate the tracetest run command into a CI pipeline step after the application under test is deployed to a staging environment with a live trace backend (Jaeger, Tempo, or Datadog APM)
  6. Use the test suite feature to chain multiple test definitions so that the output trace ID from one test can be referenced as context in the next

Known gotchas

Related routes

Write and run trace-based tests with Tracetest to assert on span attributes and latency across a distributed system
docs.tracetest.io · 6 steps · unrated
Collect and query distributed traces with Jaeger
www.jaegertracing.io · 5 steps · unrated
Intercept, inspect, and mock network requests in Playwright tests
playwright.dev · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans