Šis raksts ir mašīntulkošanas spoguļraksts, lūdzu, noklikšķiniet šeit, lai pārietu uz oriģinālo rakstu.

Skats: 40713|Atbildi: 2

[.NET kodols] ASP.NET Core saišu izsekošana (2) izmanto SkyAPM integrāciju

[Kopēt saiti]
Publicēts 2020-11-6 10:34:10 | | | |
Kā izveidot Skywalking apmācību ar Docker

ASP.NET Core Link Tracing (1) Instalējiet Skywalking apmācību
https://www.itsvse.com/thread-9456-1-1.html
Šajā rakstā ir paskaidrots, kā integrēt ASP.NET Core un Skywalking kopā.

Vispirms izveidojiet jaunu MVC projektu asp.net Core 3.1 ar nosaukumu: sky-apm-demo

Nuget instalēšanas komanda:




Instalējiet rīku SkyAPM.DotNet.CLI

Šis rīks tikai palīdz mums ģenerēt skyapm.json konfigurācijas failus, izmantojot komandrindas parametrus,Nav svarīgi, vai jūs to instalējat vai nē, un šeit ir bedre.



Ģenerētie konfigurācijas faili HeaderVersions un ProtocolVersion ir nepareizi, kā rezultātāDatus nevar iesniegt Skywalking pakalpojumam



Pareizā konfigurācija ir šāda:


Konfigurācijas dokumentācija:Hipersaites pieteikšanās ir redzama.

Kopējiet skyapm.json failu mūsu projekta saknē.

Modificējiet failu /Properties/launchSettings.json, lai pievienotu ASPNETCORE_HOSTINGSTARTUPASSEMBLIES konfigurāciju šādi:

Tajā pašā laikā kontrolierī mēs izveidojam divas jaunas metodes:

Palaidiet mūsu vietni un mēģiniet piekļūt citai URL adresei, kā norādīts tālāk.



Mēs varam apskatīt skyapm žurnālus projekta saknes žurnālu mapē šādi:

2020-11-06 10:04:49.972 +08:00 [sky_apm_demo] [Informācija] SkyApm.InstrumentStartup : Inicializē ...
2020-11-06 10:04:50.004 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.RegisterService : Ielādēts instrumentu pakalpojums [SkyApm.Service.RegisterService].
2020-11-06 10:04:50.004 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ielādēts instrumentu pakalpojums [SkyApm.Service.PingService].
2020-11-06 10:04:50.005 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.SegmentReportService : Ielādēts instrumentu pakalpojums [SkyApm.Service.SegmentReportService].
2020-11-06 10:04:50.005 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ielādēts instrumentu pakalpojums [SkyApm.Service.CLRStatsService].
2020-11-06 10:04:50.005 +08:00 [sky_apm_demo] [Informācija] SkyApm.Sampling.SimpleCountSamplingInterceptor : Ielādēts instrumentu pakalpojums [ SkyApm.Sampling.SimpleCountSamplingInterceptor].
2020-11-06 10:04:50.005 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.ConnectService : Ielādēts instrumentu pakalpojums [SkyApm.Transport.Grpc.ConnectService].
2020-11-06 10:04:50.038 +08:00 [sky_apm_demo] [Informācija] SkyApm.Diagnostics.TracingDiagnosticProcessorObserver : Ielādēts diagnostikas uztvērējs [Microsoft.AspNetCore].
2020-11-06 10:04:50.039 +08:00 [sky_apm_demo] [Informācija] SkyApm.InstrumentStartup : Startēts SkyAPM .NET Core Agent.
2020-11-06 10:04:50.080 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.ConnectionManager : Savienotais serveris[192.168.40.129:11800].
2020-11-06 10:04:51.030 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.RegisterService : Ziņotie pakalpojuma instances rekvizīti[Service=sky_apm_demo,InstanceId= e0a72ff567ea445eb51bd43c1d8983fc].
2020-11-06 10:05:08.194 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.V8.SegmentReporter : 2. ziņojuma izsekošanas segments. Izmaksas: 00:00:00.1514860s
2020-11-06 10:05:10.996 +08:00 [sky_apm_demo] [Informācija] SkyApm.Diagnostics.TracingDiagnosticProcessorObserver : Ielādēts diagnostikas uztvērējs [HttpHandlerDiagnosticListener].
2020-11-06 10:05:14.037 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.V8.SegmentReporter : Ziņojuma 4 izsekošanas segments. Izmaksas: 00:00:00.0230363S
2020-11-06 10:05:20.041 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:05:20 +00:00
2020-11-06 10:05:20.045 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 8M ThreadPool 32759 32767 1000 1000
2020-11-06 10:05:29.021 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.V8.SegmentReporter : 3. ziņojuma izsekošanas segments. Izmaksas: 00:00:00.0098886S
2020-11-06 10:05:32.023 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.V8.SegmentReporter : Ziņojuma 3 izsekošanas segments. Izmaksas: 00:00:00.0082101s
2020-11-06 10:05:35.031 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.V8.SegmentReporter : 6. ziņojuma izsekošanas segments. Izmaksas: 00:00:00.0180070s
2020-11-06 10:05:41.024 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.V8.SegmentReporter : Ziņojums 6 izsekošanas segments. Izmaksas: 00:00:00.0124269S
2020-11-06 10:05:47.021 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.V8.SegmentReporter : 2. ziņojuma izsekošanas segments. Izmaksas: 00:00:00.0101354S
2020-11-06 10:05:50.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 10M ThreadPool 32762 32767 1000 1000
2020-11-06 10:06:20.018 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:06:20 +00:00
2020-11-06 10:06:20.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 10M ThreadPool 32760 32767 1000 1000
2020-11-06 10:06:50.018 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 10M ThreadPool 32762 32767 1000 1000
2020-11-06 10:07:20.023 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:07:20 +00:00
2020-11-06 10:07:20.023 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 10M ThreadPool 32761 32767 1000 1000
2020-11-06 10:07:50.016 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņot par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 11M ThreadPool 32760 32767 1000 1000
2020-11-06 10:08:20.018 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:08:20 +00:00
2020-11-06 10:08:20.018 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 11M ThreadPool 32759 32767 1000 1000
2020-11-06 10:08:50.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņot par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 11M ThreadPool 32759 32767 1000 1000
2020-11-06 10:09:20.025 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:09:20 +00:00
2020-11-06 10:09:20.029 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 11M ThreadPool 32758 32767 1000 1000
2020-11-06 10:09:50.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 12M ThreadPool 32762 32767 1000 1000
2020-11-06 10:10:20.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 12M ThreadPool 32761 32767 1000 1000
2020-11-06 10:10:20.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:10:20 +00:00
2020-11-06 10:10:50.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 12M ThreadPool 32761 32767 1000 1000
2020-11-06 10:11:20.026 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 13M ThreadPool 32760 32767 1000 1000
2020-11-06 10:11:20.026 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:11:20 +00:00
2020-11-06 10:11:50.015 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 13M ThreadPool 32760 32767 1000 1000
2020-11-06 10:12:20.023 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:12:20 +00:00
2020-11-06 10:12:20.025 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņot par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 13M ThreadPool 32761 32767 1000 1000
2020-11-06 10:12:50.024 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 13M ThreadPool 32761 32767 1000 1000
2020-11-06 10:13:20.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:13:20 +00:00
2020-11-06 10:13:20.021 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 14M ThreadPool 32759 32767 1000 1000
2020-11-06 10:13:50.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 1 0 0 4M ThreadPool 32759 32767 1000 1000
2020-11-06 10:14:20.016 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 4M ThreadPool 32760 32767 1000 1000
2020-11-06 10:14:20.016 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:14:20 +00:00
2020-11-06 10:14:50.014 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņot par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 5M ThreadPool 32758 32767 1000 1000
2020-11-06 10:15:20.029 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 5M ThreadPool 32761 32767 1000 1000
2020-11-06 10:15:20.029 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:15:20 +00:00
2020-11-06 10:15:50.014 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 5M ThreadPool 32762 32767 1000 1000
2020-11-06 10:16:20.018 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:16:20 +00:00
2020-11-06 10:16:20.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 5M ThreadPool 32759 32767 1000 1000
2020-11-06 10:16:50.013 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 6M ThreadPool 32763 32767 1000 1000
2020-11-06 10:17:20.024 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 6M ThreadPool 32763 32767 1000 1000
2020-11-06 10:17:20.024 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:17:20 +00:00
2020-11-06 10:17:50.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 6M ThreadPool 32763 32767 1000 1000
2020-11-06 10:18:20.017 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 7M ThreadPool 32763 32767 1000 1000
2020-11-06 10:18:20.017 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:18:20 +00:00
2020-11-06 10:18:50.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 7M ThreadPool 32762 32767 1000 1000
2020-11-06 10:19:20.021 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 7M ThreadPool 32763 32767 1000 1000
2020-11-06 10:19:20.021 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:19:20 +00:00
2020-11-06 10:19:50.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 7M ThreadPool 32763 32767 1000 1000
2020-11-06 10:20:20.018 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:20:20 +00:00
2020-11-06 10:20:20.018 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 8M ThreadPool 32760 32767 1000 1000
2020-11-06 10:20:50.014 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 8M ThreadPool 32763 32767 1000 1000
2020-11-06 10:21:20.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 8M ThreadPool 32760 32767 1000 1000
2020-11-06 10:21:20.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:21:20 +00:00
2020-11-06 10:21:50.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums CLR statistika. CPU UsagePercent 0 GenCollectCount 0 0 0 8M ThreadPool 32760 32767 1000 1000
2020-11-06 10:22:20.014 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 9M ThreadPool 32763 32767 1000 1000
2020-11-06 10:22:20.015 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:22:20 +00:00
2020-11-06 10:22:50.018 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 9M ThreadPool 32764 32767 1000 1000
2020-11-06 10:23:20.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņot par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 9M ThreadPool 32762 32767 1000 1000
2020-11-06 10:23:20.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:23:20 +00:00
2020-11-06 10:23:50.014 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 9M ThreadPool 32764 32767 1000 1000
2020-11-06 10:24:20.014 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums CLR statistika. CPU UsagePercent 0 GenCollectCount 0 0 0 10M ThreadPool 32761 32767 1000 1000
2020-11-06 10:24:20.014 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:24:20 +00:00
2020-11-06 10:24:50.008 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 10M ThreadPool 32765 32767 1000 1000
2020-11-06 10:25:20.021 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:25:20 +00:00
2020-11-06 10:25:20.022 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 10M ThreadPool 32763 32767 1000 1000
2020-11-06 10:25:50.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 10M ThreadPool 32765 32767 1000 1000
2020-11-06 10:26:20.018 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 11M ThreadPool 32763 32767 1000 1000
2020-11-06 10:26:20.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:26:20 +00:00
2020-11-06 10:26:50.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 11M ThreadPool 32763 32767 1000 1000
2020-11-06 10:27:20.017 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 12M ThreadPool 32761 32767 1000 1000
2020-11-06 10:27:20.017 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:27:20 +00:00
2020-11-06 10:27:20.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.V8.SegmentReporter : 2. ziņojuma izsekošanas segments. Izmaksas: 00:00:00.0075005S
2020-11-06 10:27:23.031 +08:00 [sky_apm_demo] [Informācija] SkyApm.Transport.Grpc.V8.SegmentReporter : 6. ziņojuma izsekošanas segments. Izmaksas: 00:00:00.0156606S
2020-11-06 10:27:50.015 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 13M ThreadPool 32763 32767 1000 1000
2020-11-06 10:28:20.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 13M ThreadPool 32763 32767 1000 1000
2020-11-06 10:28:20.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:28:20 +00:00
2020-11-06 10:28:50.020 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 13M ThreadPool 32763 32767 1000 1000
2020-11-06 10:29:20.021 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 13M ThreadPool 32763 32767 1000 1000
2020-11-06 10:29:20.021 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:29:20 +00:00
2020-11-06 10:29:50.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 14M ThreadPool 32765 32767 1000 1000
2020-11-06 10:30:20.033 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:30:20 +00:00
2020-11-06 10:30:20.033 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 14M ThreadPool 32763 32767 1000 1000
2020-11-06 10:30:50.019 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums CLR statistika. CPU UsagePercent 0 GenCollectCount 0 0 0 14M ThreadPool 32761 32767 1000 1000
2020-11-06 10:31:20.017 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.PingService : Ping serveris @2020/11/6 2:31:20 +00:00
2020-11-06 10:31:20.017 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums par CLR statistiku. CPU UsagePercent 0 GenCollectCount 0 0 0 14M ThreadPool 32761 32767 1000 1000
2020-11-06 10:31:50.015 +08:00 [sky_apm_demo] [Informācija] SkyApm.Service.CLRStatsService : Ziņojums CLR statistika. CPU UsagePercent 0 GenCollectCount 0 0 0 15M ThreadPool 32763 32767 1000 1000



Piekļūstot SkyWalking lietotāja interfeisa panelim, varat redzēt lietotāja pieprasīto URL adresi un pakalpojuma izsaukuma statusu, kā parādīts šajā attēlā:



Visbeidzot, pievienojiet avota kodu:

Tūristi, ja vēlaties redzēt šīs ziņas slēpto saturu, lūdzuAtbildi





Iepriekšējo:ASP.NET Core Link Tracing (1) Instalējiet Skywalking apmācību
Nākamo:.NET JWT pastkastes validācijas apmācība
Publicēts 2020-11-30 11:39:33 |
[HttpGet]
        publiskais asinhronais uzdevumu<IActionResult> tests()
        {
            var klients = clientFactory.CreateClient();
            var atbilde = gaidīt klientu. GetAsync($"https://www.itsvse.com/");
            ja (atbilde. IsSuccessStatusCode)
            {
                var str = gaidīt atbildi. Content.ReadAsStringAsync();
                atgriezt Content(str);
            }
            citādi atgriezt Saturu ("kļūda");
        }


        [HttpGet]
        publiskais asinhronais uzdevums<IActionResult> Test1()
        {
            var klients = clientFactory.CreateClient();
            var atbilde = gaidīt klientu. GetAsync($"https://www.baidu.com/");
            ja (atbilde. IsSuccessStatusCode)
            {
                var str = gaidīt atbildi. Content.ReadAsStringAsync();
                atgriezt Content(str);
            }
            citādi atgriezt Saturu ("kļūda");
        }
Publicēts 2021-4-7 10:42:03 |
Es varu izveidot savienojumu, nav TRACE apņemšanās!?
Atruna:
Visa programmatūra, programmēšanas materiāli vai raksti, ko publicē Code Farmer Network, ir paredzēti tikai mācību un pētniecības mērķiem; Iepriekš minēto saturu nedrīkst izmantot komerciāliem vai nelikumīgiem mērķiem, pretējā gadījumā lietotājiem ir jāuzņemas visas sekas. Informācija šajā vietnē nāk no interneta, un autortiesību strīdiem nav nekāda sakara ar šo vietni. Iepriekš minētais saturs ir pilnībā jāizdzēš no datora 24 stundu laikā pēc lejupielādes. Ja jums patīk programma, lūdzu, atbalstiet oriģinālu programmatūru, iegādājieties reģistrāciju un iegūstiet labākus oriģinālus pakalpojumus. Ja ir kādi pārkāpumi, lūdzu, sazinieties ar mums pa e-pastu.

Mail To:help@itsvse.com