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.
- This project currently supports apps targeting netstandard2.0 or higher.
- Supported middlewares, frameworks and libraries.
A quick list of SkyWalking .NET Core Agent's capabilities
- Application Topology
- Distributed Tracing
- ASP.NET Core Diagnostics
- HttpClientFactory Diagnostics
- JDK 8+
You can run the following command to install the SkyWalking .NET Core Agent in your project.
PM> Install-Package SkyWalking.AspNetCore
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";
});
}
[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");
}
}
This section is in progress here: Contributing to skywalking-netcore
Expect to release 0.2 compatible in May. 2018
- Submit an issue
- Gitter English
- QQ Group(cn): 392443393