Watch Star Fork

SkyWalking / skywalking-netcoreC#Apache-2.0

加入码云
与超过 300 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
The .NET Core instrument agent for Apache SkyWalking
Loading...
README.md 2.79 KB

SkyWalking C#/.NET instrument agent

Sky Walking logo

Apache SkyWalking is an APM designed for microservices, cloud native and container-based (Docker, K8s, Mesos) architectures. SkyWalking-netcore provides the native support agent in C# and .NETStandard platform, with the helps from Apache SkyWalking committer team.

Twitter Follow

Build status

Supported

Features

A quick list of SkyWalking .NET Core Agent's capabilities

  • Application Topology
  • Distributed Tracing
  • ASP.NET Core Diagnostics
  • HttpClientFactory Diagnostics

Getting Started

Deploy SkyWalking Collector

Requirements

  • JDK 8+

Download

Deploy

Install SkyWalking .NET Core Agent

You can run the following command to install the SkyWalking .NET Core Agent in your project.

PM> Install-Package SkyWalking.AspNetCore

Configuration

First,You need to config SkyWalking in your Startup.cs:

public void ConfigureServices(IServiceCollection services)
{
    //......

    services.AddSkyWalking(option =>
    {
        // Application code is showed in sky-walking-ui
        option.ApplicationCode = "Your_ApplicationName";

        //Collector agent_gRPC/grpc service addresses.
        option.DirectServers = "localhost:11800";
        
    });
}

HttpClientFactory

[Route("api/[controller]")]
public class ValuesController : Controller
{
    [HttpGet("{id}")]
    public Task<string> Get(int id, [FromServices] IHttpClientFactory httpClientFactory)
    {
        var httpClient = httpClientFactory.CreateClient("sw-tracing");
        return httpClient.GetStringAsync("http://api.xxx.com/values");
    }
}

Contributing

This section is in progress here: Contributing to skywalking-netcore

Roadmap

Expect to release 0.2 compatible in May. 2018

Contact Us

  • Submit an issue
  • Gitter English
  • QQ Group(cn): 392443393

License

Apache 2.0 License.

项目点评 ( 0 )

你可以在登录后,发表评论

搜索帮助