A .NET client for Butterfly-APM.
- start butterfly-server
git clone https://github.com/ButterflyAPM/butterfly-csharp.git
cd butterfly-csharp
dotnet run -p sample/Butterfly.Client.Sample.Frontend
anddotnet 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 services
inConfigureServices
method (theCollectorUrl
andService
options 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