Skip to content

liuhaoyang/butterfly-csharp

Repository files navigation

butterfly-csharp

Build status

A .NET client for Butterfly-APM.

Example

Quickstart

  • create new Asp.Net Core web project.
  • Install-Package Butterfly.Client.AspNetCore
  • register Butterfly services in ConfigureServices method (the CollectorUrl and Service 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