This project is based on the NServiceBus Step-by-step tutoriial. I've modified it to use the IHostBuilder to register NServiceBus instead of the default implementation. I have also implemented OpenTelemetry and the docker stack contains both the OpenTelemetry collector as well as some backends.
-
Run the following PowerShell command:
('traces', 'metrics', 'logs') | Foreach-Object {New-Item "C:\temp\otel\$_.json"}
-
Start docker containers.
docker-compose up
-
Add this JSON to user secrets for the
ClientUIproject.{ "ConnectionStrings": { "Persistence": "<SqlConnectionString>", "Transport": "<RabbitMqConnectionString>" } } -
Connect to the SQL database with the username and password defined in
docker-compose.yml. -
Add the
NServiceBusDemodatabase. -
Run
Billing,ClientUI,SalesandShippingand send messages from theClientUIwindow. -
Go to http://localhost:16686 to view traces in Jaeger.
-
Go to http://localhost:9090 to view metrics in Prometheus.