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 quoteservice
Execute the below command to run the service.
docker compose up quoteservice
In 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/quoteservice --target base -t quoteservice
cd src/quoteservice
docker run --rm -it -v $(pwd):/var/www -e QUOTE_SERVICE_PORT=8999 -p "8999:8999" quoteservice
Then, send some curl requests:
curl --location 'http://localhost:8999/getquote' \
--header 'Content-Type: application/json' \
--data '{"numberOfItems":3}'