Este artigo é um artigo espelhado de tradução automática, por favor clique aqui para ir para o artigo original.

Vista: 40713|Resposta: 2

[.NET Core] ASP.NET O rastreamento de links core (2) utiliza integração SkyAPM

[Copiar link]
Postado em 2020-11-6 10:34:10 | | | |
Como construir um tutorial de Skywalking com o Docker

ASP.NET Rastreamento de Link Principal (1) Instale o tutorial de Skywalking
https://www.itsvse.com/thread-9456-1-1.html
Este artigo explica como integrar ASP.NET Core e Skywalking juntos.

Primeiro, crie um novo projeto MVC para asp.net Core 3.1 com o nome: sky-apm-demo

Comando de instalação Nuget:




Instale a ferramenta SkyAPM.DotNet.CLI

Essa ferramenta nos ajuda a gerar arquivos de configuração skyapm.json por meio de parâmetros de linha de comando, na verdade,Não importa se você instala ou não, e há um buraco aqui.



Os arquivos de configuração gerados HeaderVersions e ProtocolVersion estão errados, o que resulta emDados não podem ser enviados ao serviço Skywalking



A configuração correta é a seguinte:


Documentação de configuração:O login do hiperlink está visível.

Copie o arquivo skyapm.json para a raiz do nosso projeto.

Modifique o arquivo /Properties/launchSettings.json para adicionar a configuração ASPNETCORE_HOSTINGSTARTUPASSEMBLIES da seguinte forma:

Ao mesmo tempo, criamos dois novos métodos no controlador, conforme segue:

Abra nosso site e tente acessar um endereço URL diferente, conforme segue:



Podemos visualizar os logs do skyapm na pasta logs da raiz do projeto, da seguinte forma:

2020-11-06 10:04:49.972 +08:00 [sky_apm_demo] [Informações] SkyApm.InstrumentStartup : Inicializando ...
2020-11-06 10:04:50.004 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.RegisterService : Serviço de instrumento carregado [SkyApm.Service.RegisterService].
2020-11-06 10:04:50.004 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Serviço de instrumentos carregado [SkyApm.Service.PingService].
2020-11-06 10:04:50.005 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.SegmentReportService: Serviço de instrumento carregado [SkyApm.Service.SegmentReportService].
2020-11-06 10:04:50.005 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Serviço de instrumento carregado [SkyApm.Service.CLRStatsService].
2020-11-06 10:04:50.005 +08:00 [sky_apm_demo] [Informações] SkyApm.Sampling.SimpleCountSamplingInterceptor : Serviço de instrumentos carregado [ SkyApm.Amostragem.SimpleCountSamplingInterceptor].
2020-11-06 10:04:50.005 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.ConnectService: Serviço de instrumentos carregado [SkyApm.Transport.Grpc.ConnectService].
2020-11-06 10:04:50.038 +08:00 [sky_apm_demo] [Informações] SkyApm.Diagnostics.TracingDiagnosticProcessorObserver : Carregado o ouvinte de diagnóstico [Microsoft.AspNetCore].
2020-11-06 10:04:50.039 +08:00 [sky_apm_demo] [Informações] SkyApm.InstrumentStartup: Iniciei o SkyAPM .NET Core Agent.
2020-11-06 10:04:50.080 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.ConnectionManager : Servidor conectado[192.168.40.129:11800].
2020-11-06 10:04:51.030 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.RegisterService : Propriedades da Instância de Serviço Reportada[Service=sky_apm_demo,InstanceId= e0a72ff567ea445eb51bd43c1d8983fc].
2020-11-06 10:05:08.194 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.V8.SegmentRepórter: Relatório 2 segmento de rastreamento. Custo: 00:00:00.1514860s
2020-11-06 10:05:10.996 +08:00 [sky_apm_demo] [Informações] SkyApm.Diagnostics.TracingDiagnosticProcessorObserver : Ouvinte diagnóstico carregado [HttpHandlerDiagnosticListener].
2020-11-06 10:05:14.037 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.V8.SegmentReporter: Relatório 4 segmento de rastreamento. Custo: 00:00:00.0230363s
2020-11-06 10:05:20.041 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:05:20 +00:00
2020-11-06 10:05:20.045 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Relatório de Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 8M ThreadPool 32759 32767 1000 1000
2020-11-06 10:05:29.021 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.V8.SegmentRepórter: Relatório 3 segmento de rastreamento. Custo: 00:00:00.0098886s
06-11-2020 10:05:32.023 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.V8.SegmentReporter: Relatório 3 segmento de rastreamento. Custo: 00:00:00.0082101s
2020-11-06 10:05:35.031 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.V8.SegmentRepórter: Relatório 6 segmento de rastreamento. Custo: 00:00:00.0180070s
2020-11-06 10:05:41.024 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.V8.SegmentReporter: Relatório 6 segmento de rastreamento. Custo: 00:00:00.0124269s
2020-11-06 10:05:47.021 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.V8.SegmentReporter: Relatório 2 segmento de rastreamento. Custo: 00:00:00.0101354s
2020-11-06 10:05:50.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 10M ThreadPool 32762 32767 1000 1000
2020-11-06 10:06:20.018 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:06:20 +00:00
2020-11-06 10:06:20.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 10M ThreadPool 32760 32767 1000 1000
2020-11-06 10:06:50.018 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 10M ThreadPool 32762 32767 1000 1000
2020-11-06 10:07:20.023 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:07:20 +00:00
2020-11-06 10:07:20.023 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Relatório de Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 10M ThreadPool 32761 32767 1000 1000
2020-11-06 10:07:50.016 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso do CPUPercentual 0 GenCollectCount 0 0 0 11M ThreadPool 32760 32767 1000 1000
2020-11-06 10:08:20.018 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:08:20 +00:00
2020-11-06 10:08:20.018 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Relate Estatísticas CLR. Uso da CPUPercent% 0 GenCollectCount 0 0 0 11M ThreadPool 32759 32767 1000 1000
2020-11-06 10:08:50.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPercent% 0 GenCollectCount 0 0 0 11M ThreadPool 32759 32767 1000 1000
2020-11-06 10:09:20.025 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:09:20 +00:00
2020-11-06 10:09:20.029 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 11M ThreadPool 32758 32767 1000 1000
2020-11-06 10:09:50.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Relate Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 12M ThreadPool 32762 32767 1000 1000
2020-11-06 10:10:20.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 12M ThreadPool 32761 32767 1000 1000
2020-11-06 10:10:20.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:10:20 +00:00
2020-11-06 10:10:50.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 12M ThreadPool 32761 32767 1000 1000
2020-11-06 10:11:20.026 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso do CPUPorcentagem 0 GenCollectCount 0 0 0 13M ThreadPool 32760 32767 1000 1000
2020-11-06 10:11:20.026 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:11:20 +00:00
2020-11-06 10:11:50.015 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso do CPUPorcentagem 0 GenCollectCount 0 0 0 13M ThreadPool 32760 32767 1000 1000
2020-11-06 10:12:20.023 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:12:20 +00:00
2020-11-06 10:12:20.025 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 13M ThreadPool 32761 32767 1000 1000
2020-11-06 10:12:50.024 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 13M ThreadPool 32761 32767 1000 1000
2020-11-06 10:13:20.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:13:20 +00:00
2020-11-06 10:13:20.021 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 14M ThreadPool 32759 32767 1000 1000
2020-11-06 10:13:50.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 1 0 0 4M ThreadPool 32759 32767 1000 1000
2020-11-06 10:14:20.016 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 4M ThreadPool 32760 32767 1000 1000
2020-11-06 10:14:20.016 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:14:20 +00:00
06-11-2020 10:14:50.014 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 5M ThreadPool 32758 32767 1000 1000
2020-11-06 10:15:20.029 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 5M ThreadPool 32761 32767 1000 1000
2020-11-06 10:15:20.029 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:15:20 +00:00
2020-11-06 10:15:50.014 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 5M ThreadPool 32762 32767 1000 1000
2020-11-06 10:16:20.018 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:16:20 +00:00
06-11-2020 10:16:20.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 5M ThreadPool 32759 32767 1000 1000
2020-11-06 10:16:50.013 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 6M ThreadPool 32763 32767 1000 1000
2020-11-06 10:17:20.024 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 6M ThreadPool 32763 32767 1000 1000
2020-11-06 10:17:20.024 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:17:20 +00:00
2020-11-06 10:17:50.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 6M ThreadPool 32763 32767 1000 1000
2020-11-06 10:18:20.017 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 7M ThreadPool 32763 32767 1000 1000
2020-11-06 10:18:20.017 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:18:20 +00:00
2020-11-06 10:18:50.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 7M ThreadPool 32762 32767 1000 1000
2020-11-06 10:19:20.021 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 7M ThreadPool 32763 32767 1000 1000
2020-11-06 10:19:20.021 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:19:20 +00:00
2020-11-06 10:19:50.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 7M ThreadPool 32763 32767 1000 1000
2020-11-06 10:20:20.018 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:20:20 +00:00
2020-11-06 10:20:20.018 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Relate Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 8M ThreadPool 32760 32767 1000 1000
2020-11-06 10:20:50.014 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 8M ThreadPool 32763 32767 1000 1000
2020-11-06 10:21:20.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 8M ThreadPool 32760 32767 1000 1000
2020-11-06 10:21:20.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:21:20 +00:00
2020-11-06 10:21:50.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 8M ThreadPool 32760 32767 1000 1000
2020-11-06 10:22:20.014 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 9M ThreadPool 32763 32767 1000 1000
2020-11-06 10:22:20.015 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:22:20 +00:00
2020-11-06 10:22:50.018 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 9M ThreadPool 32764 32767 1000 1000
2020-11-06 10:23:20.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 9M ThreadPool 32762 32767 1000 1000
2020-11-06 10:23:20.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:23:20 +00:00
2020-11-06 10:23:50.014 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 9M ThreadPool 32764 32767 1000 1000
2020-11-06 10:24:20.014 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 10M ThreadPool 32761 32767 1000 1000
2020-11-06 10:24:20.014 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:24:20 +00:00
2020-11-06 10:24:50.008 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercent% 0 GenCollectCount 0 0 0 10M ThreadPool 32765 32767 1000 1000
2020-11-06 10:25:20.021 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:25:20 +00:00
2020-11-06 10:25:20.022 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 10M ThreadPool 32763 32767 1000 1000
2020-11-06 10:25:50.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercent% 0 GenCollectCount 0 0 0 10M ThreadPool 32765 32767 1000 1000
2020-11-06 10:26:20.018 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService: Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 11M ThreadPool 32763 32767 1000 1000
2020-11-06 10:26:20.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:26:20 +00:00
2020-11-06 10:26:50.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 11M ThreadPool 32763 32767 1000 1000
2020-11-06 10:27:20.017 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 12M ThreadPool 32761 32767 1000 1000
2020-11-06 10:27:20.017 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:27:20 +00:00
06-11-2020 10:27:20.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.V8.SegmentRepórter: Relatório 2 segmento de rastreamento. Custo: 00:00:00.0075005s
2020-11-06 10:27:23.031 +08:00 [sky_apm_demo] [Informações] SkyApm.Transport.Grpc.V8.SegmentRepórter: Relatório 6 segmento de rastreamento. Custo: 00:00:00.0156606s
06-11-2020 10:27:50.015 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 13M ThreadPool 32763 32767 1000 1000
06-11-2020 10:28:20.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 13M ThreadPool 32763 32767 1000 1000
2020-11-06 10:28:20.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:28:20 +00:00
2020-11-06 10:28:50.020 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 13M ThreadPool 32763 32767 1000 1000
2020-11-06 10:29:20.021 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 13M ThreadPool 32763 32767 1000 1000
2020-11-06 10:29:20.021 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:29:20 +00:00
2020-11-06 10:29:50.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 14M ThreadPool 32765 32767 1000 1000
2020-11-06 10:30:20.033 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:30:20 +00:00
2020-11-06 10:30:20.033 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 14M ThreadPool 32763 32767 1000 1000
2020-11-06 10:30:50.019 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 14M ThreadPool 32761 32767 1000 1000
2020-11-06 10:31:20.017 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.PingService : Servidor de ping @2020/11/6 2:31:20 +00:00
2020-11-06 10:31:20.017 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPorcentagem 0 GenCollectCount 0 0 0 14M ThreadPool 32761 32767 1000 1000
2020-11-06 10:31:50.015 +08:00 [sky_apm_demo] [Informações] SkyApm.Service.CLRStatsService : Reporte Estatísticas CLR. Uso da CPUPercentual 0 GenCollectCount 0 0 0 15M ThreadPool 32763 32767 1000 1000



Ao acessar o painel da interface SkyWalking, você pode ver o endereço URL solicitado pelo usuário e o status da chamada de serviço, conforme mostrado na figura a seguir:



Por fim, anexe o código-fonte:

Turistas, se quiserem ver o conteúdo oculto deste post, por favorResposta





Anterior:ASP.NET Rastreamento de Link Principal (1) Instale o tutorial de Skywalking
Próximo:Tutorial de validação de caixa de correio baseado em .NET JWT
Postado em 30-11-2020 11:39:33 |
[HttpGet]
        Teste de Tarefa público<IActionResult> assíncrono()
        {
            var client = clienteFactory.CreateClient();
            VAR Resposta = aguardar o cliente. GetAsync($"https://www.itsvse.com/");
            se (resposta. IsSuccessStatusCode)
            {
                var str = aguardar resposta. Content.ReadAsStringAsync();
                return Content(str);
            }
            else return Content("error");
        }


        [HttpGet]
        Teste de Tarefa público<IActionResult> assíncrono1()
        {
            var client = clienteFactory.CreateClient();
            VAR Resposta = aguardar o cliente. GetAsync($"https://www.baidu.com/");
            se (resposta. IsSuccessStatusCode)
            {
                var str = aguardar resposta. Content.ReadAsStringAsync();
                return Content(str);
            }
            else return Content("error");
        }
Postado em 2021-4-7 10:42:03 |
Consigo conectar, sem TRACE comprometido!?
Disclaimer:
Todo software, material de programação ou artigos publicados pela Code Farmer Network são apenas para fins de aprendizado e pesquisa; O conteúdo acima não deve ser usado para fins comerciais ou ilegais, caso contrário, os usuários terão todas as consequências. As informações deste site vêm da Internet, e disputas de direitos autorais não têm nada a ver com este site. Você deve deletar completamente o conteúdo acima do seu computador em até 24 horas após o download. Se você gosta do programa, por favor, apoie um software genuíno, compre o registro e obtenha serviços genuínos melhores. Se houver qualquer infração, por favor, entre em contato conosco por e-mail.

Mail To:help@itsvse.com