Giter Site home page Giter Site logo

withlin / skywalking-netcore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skyapm/skyapm-dotnet

0.0 1.0 0.0 391 KB

The .NET Core instrument agent for Apache SkyWalking

License: Apache License 2.0

C# 98.10% PowerShell 0.92% CoffeeScript 0.01% Batchfile 0.34% Shell 0.63%

skywalking-netcore's Introduction

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
  • HttpClient Diagnostics
  • EntityFrameworkCore Diagnostics

Getting Started

Deploy SkyWalking Collector

Requirements

  • SkyWalking Collector 5.0.0-beta or higher. See SkyWalking backend deploy docs.

Install SkyWalking .NET Core Agent

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

// install SkyWalking DotNet CLI
dotnet tool install -g SkyWalking.DotNet.CLI

On windows, run as Administrator

dotnet skywalking install

On macOS/Linux

sudo dotnet skywalking install

How to use

Set the ASPNETCORE_HOSTINGSTARTUPASSEMBLIES and DOTNET_ADDITIONAL_DEPS environment variables to support the activation of the SkyWalking .NET Core Agent.

  • Add the assembly name of SkyWalking.Agent.AspNetCore to the ASPNETCORE_HOSTINGSTARTUPASSEMBLIES environment variable.
  • On Windows, set the DOTNET_ADDITIONAL_DEPS environment variable to %PROGRAMFILES%\dotnet\x64\additionalDeps\skywalking.agent.aspnetcore. On macOS/Linux, set the DOTNET_ADDITIONAL_DEPS environment variable to /usr/local/share/dotnet/x64/additionalDeps/skywalking.agent.aspnetcore.

Examples

  • On windows
dotnet new mvc -n sampleapp
cd sampleapp

// enable SkyWalking.Agent.AspNetCore
set ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=SkyWalking.Agent.AspNetCore
set DOTNET_ADDITIONAL_DEPS=%PROGRAMFILES%\dotnet\x64\additionalDeps\skywalking.agent.aspnetcore

// set Application_Code
set SKYWALKING__APPLICATIONCODE=sample_app

dotnet run
  • On macOS/Linux
dotnet new mvc -n sampleapp
cd sampleapp

// enable SkyWalking.Agent.AspNetCore
export ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=SkyWalking.Agent.AspNetCore
export DOTNET_ADDITIONAL_DEPS=/usr/local/share/dotnet/x64/additionalDeps/skywalking.agent.aspnetcore

// set Application_Code
export SKYWALKING__APPLICATIONCODE=sample_app

dotnet run

Configuration

Use dotnet skywalking config [your_application_code] [your_collector_server] to generate config file. Example

dotnet skywalking config sample_app 192.168.0.1:11800

Contributing

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

Contact Us

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

License

Apache 2.0 License.

skywalking-netcore's People

Contributors

beckjin avatar dimaaan avatar liuhaoyang avatar misaya avatar refactor2 avatar snakorse avatar withlin avatar wu-sheng avatar yang-xiaodong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.