中文文档:
https://github.com/SkyAPM/document-cn-translation-of-skywalking
https://skywalking.apache.org/zh/2020-04-19-skywalking-quick-start/
安装:
https://blog.csdn.net/qq_33204709/article/details/121473297
使用
1、下载neget
<PackageReference Include="SkyAPM.Agent.AspNetCore" Version="2.1.0" />
2、配置启动参数
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:33705",
"sslPort": 0
}
},
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "SkyAPM.Agent.AspNetCore",
"SKYWALKING__SERVICENAME": "CBI360.API.JZW"
}
},
"CBI360.API.JZW": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "SkyAPM.Agent.AspNetCore",
"SKYWALKING__SERVICENAME": "CBI360.API.JZW"
},
"applicationUrl": "http://localhost:5001/swagger/index.html"
}
}
}
3、添加配置文件 > skyapm.json
{
"SkyWalking": {
"ServiceName": "CBI360.API.JZW",
"Namespace": "LiuLiang",
"HeaderVersions": [
"sw8"
],
"Sampling": {
"SamplePer3Secs": -1,
"Percentage": -1.0
},
"Logging": {
"Level": "Information",
"FilePath": "logs\\skyapm-{Date}.log"
},
"Transport": {
"Interval": 3000,
"ProtocolVersion": "v8",
"QueueSize": 30000,
"BatchSize": 3000,
"gRPC": {
"Servers": "192.168.11.101:11800",
"Timeout": 10000,
"ConnectTimeout": 10000,
"ReportTimeout": 600000,
"Authentication": ""
}
}
}
}
标签:ASPNETCORE,链路,json,API,跟踪,CBI360,JZW,Skywalking,skywalking
From: https://www.cnblogs.com/kkbk/p/17702186.html