A .NET client for Butterfly-APM.
- start butterfly-server
git clone https://github.com/ButterflyAPM/butterfly-csharp.gitcd butterfly-csharpdotnet run -p sample/Butterfly.Client.Sample.Frontendanddotnet run -p sample/Butterfly.Client.Sample.Backend- browse to http://localhost:5001/api/values
- browse to http://localhost:9618 to view traces
- create new Asp.Net Core web project.
Install-Package Butterfly.Client.AspNetCore- register
Butterfly servicesinConfigureServicesmethod (theCollectorUrlandServiceoptions are required)public void ConfigureServices(IServiceCollection services) { //your other code services.AddButterfly(option => { option.CollectorUrl = "http://localhost:9618"; option.Service = "my service"; }); } - run your application and browse to http://localhost:9618 to view traces