Skip to content

onest/skywalking-netcore

 
 

Repository files navigation

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 a compatible agent in C# and .NETStandard platform.

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 async Task<string> Get(int id, [FromServices] IHttpClientFactory httpClientFactory)
    {
        var httpClient = httpClientFactory.CreateClient("sw-tracing");
        return await 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

Support Framework

Contact Us

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

License

Apache 2.0 License.

About

The .NET Core instrument agent for Apache SkyWalking

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 97.5%
  • PowerShell 1.3%
  • Other 1.2%