A test for trying to prove missing zipkin traces for timed-out RabbitMq requests.
A RabbitMq broker & a Zipkin collector are required. Both can be started via the provided docker-compose.yml
file,
e.g. by running this in the root of the project:
docker-compose up -d
This is a maven project, so it can be run with:
mvn clean spring-boot:run
Alternatively, it can be loaded & run from an IDE (e.g. IntelliJ IDEA).
Once the app is running, test with:
curl --location --request POST 'localhost:8080/test/echo' \
--header 'Content-Type: application/json' \
--data-raw '{
"message": "hello there",
"delay": 1000
}'
And to force a Reply received after timeout
scenario, increase the value of delay
to something like 10000.
It can be noted in the generated logs that tracing information is missing for those messages.