ServiceReport is a monitoring plug-in. NET core services. Its main function is monitoring, analysis and tracking. It is well suited for business analysis.
The attempt page uses the Ant Design for Blazor framework.
-
Step 1: Introduce the nuget package
NuGet\Install-Package ServiceReport -Version 1.0.0
//new builder.Services.AddServiceReportModule().AddServiceReportSendHttpModule();
//new app.UseHttpReports();
-
Step 2:Modify the appsetting.json file of the project
"ServiceReportOptions": { "ServiceReportSendOptions": { "PushAddress": "https://localhost:5003/", "PushSecond": 1, "PushCount": 1000 }, "Server": "http://localhost:5169/", "ServiceName": "ApiServer", "RecordRequest": true, "RecordResponse": true, "RecordCookie": true, "RecordHeader": true, "RequestFilter": [ ] }
Parameter Specification:
ServiceReportSendOptions-
PushAddress(Service address for sending data)
PushSecond(Data sent per second)
PushCount(Amount of data sent at a time)
Server(Service address)
ServiceName(Service name)
RecordRequest(Whether to record request)
RecordResponse(Whether to record response)
RecordCookie(Whether to record cookie)
RecordHeader(Whether to record http header)
RecordHeader(Filter path)
-
Step 3: 下载 tem/ServiceReport.Ui.Web 模板