The code in this repo accompanies a talk given at the Rust London TrueLayer Takeover in December 2021, as a demonstration of one way the observability of a microservice can be exercised and verified during automated tests.
Disclaimer: This code is provided AS IS. It is NOT intended as an example of a production-ready service.
- Rust, version >=
1.56.1
.
Run cargo test
. No additional services are assumed to be running.
This repository contains a cargo workspace consisting of two crates:
cart_server
, the main binary, that hosts our HTTP server;mock_jaeger_collector
, a library crate consisting of a mock Jaeger collector service, for use in black box testing the cart server.