The Quote Service calculates the shipping costs, based on the number of items to be shipped.
It is a PHP based service, using a combination of automatic and manual instrumentation.
To build the quote service, run the following from root directory of opentelemetry-demo
docker compose build quoteExecute the below command to run the service.
docker compose up quoteIn order to get traffic into the service you have to deploy the whole opentelemetry-demo.
Please follow the root README to do so.
To build and run the quote service locally:
docker build src/quote --target base -t quote
cd src/quote
docker run --rm -it -v $(pwd):/var/www -e QUOTE_PORT=8999 -p "8999:8999" quoteThen, send some curl requests:
curl --location 'http://localhost:8999/getquote' \
--header 'Content-Type: application/json' \
--data '{"numberOfItems":3}'