The purpose of this project is to test App Dynamics Transaction Monitoring over RabbitMQ between Services Running in Service Fabric.
This project can also be run outside of Service Fabric.
Install Service Fabric SDK: Refer to SF Documentation
Install RabbitMQ: Refer to RabbitMQ Documentation
This sample requires at least .Net Framework 4.7.1.
Open Program.cs in both the WebApi and WorkerService and configure the
- RabbitMQ Host,
- RabbitMQ UserName,
- RabbitMQ Password
Download the SF Agent: NuGet
Unzip the NuGet, ex: C:\AppDynamics\sf
Open the ServiceManifest.xml in both the WebApi and WorkerService and configure the
- Environment Variable:
COR_PROFILER_PATHto point to the folder above.
Open both WorkerService.AppDynamicsConfig.json and WebApi.AppDynamicsConfig.json and
configure the relevant account parameters.
Open the solution in Visual Studio and make sure that the TestApplication Project is
selected as the Startup Project. Make sure that build configuration is set to
Debug and x64.
Simply Run or Debug the Project.
NLog will output log files to: c:\Logs. This can be configured in NLog.config
Open a browser: http://localhost:8350/api/values/1
This will send a Request Message from WebApi to WorkerService.
The WorkerService will then send a response message back containing a random value.