Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions neo-node.sln
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TokensTracker", "plugins\To
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeferredRelay", "plugins\DeferredRelay\DeferredRelay.csproj", "{7E3A9C12-4B5D-6E8F-A901-23456789ABCD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NodeDiagnostics", "plugins\NodeDiagnostics\NodeDiagnostics.csproj", "{12CB1904-A8A3-43D6-8280-3806490E3857}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Neo.Plugins.NodeDiagnostics.Tests", "tests\Neo.Plugins.NodeDiagnostics.Tests\Neo.Plugins.NodeDiagnostics.Tests.csproj", "{2644BA1A-A942-4257-8AC8-48607540572F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Neo.Cryptography.MPTTrie.Tests", "tests\Neo.Cryptography.MPTTrie.Tests\Neo.Cryptography.MPTTrie.Tests.csproj", "{1A6EB5BA-2FCD-3056-1C01-FC6FA24EF09C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Neo.Network.RPC.Tests", "tests\Neo.Network.RPC.Tests\Neo.Network.RPC.Tests.csproj", "{60E16A49-06EB-6F80-7228-21A7793B8250}"
Expand Down Expand Up @@ -207,6 +211,14 @@ Global
{8F4BAC23-5C6E-7F90-B012-34567890BCDE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F4BAC23-5C6E-7F90-B012-34567890BCDE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8F4BAC23-5C6E-7F90-B012-34567890BCDE}.Release|Any CPU.Build.0 = Release|Any CPU
{12CB1904-A8A3-43D6-8280-3806490E3857}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{12CB1904-A8A3-43D6-8280-3806490E3857}.Debug|Any CPU.Build.0 = Debug|Any CPU
{12CB1904-A8A3-43D6-8280-3806490E3857}.Release|Any CPU.ActiveCfg = Release|Any CPU
{12CB1904-A8A3-43D6-8280-3806490E3857}.Release|Any CPU.Build.0 = Release|Any CPU
{2644BA1A-A942-4257-8AC8-48607540572F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2644BA1A-A942-4257-8AC8-48607540572F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2644BA1A-A942-4257-8AC8-48607540572F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2644BA1A-A942-4257-8AC8-48607540572F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -244,6 +256,8 @@ Global
{834D4327-7DDF-4D6A-1624-B074700964F0} = {62F4DC79-BE3D-4E60-B402-8D5F9C4BB2D9}
{52D6F4D3-8AC9-DEA4-1D6F-FAF6943EE3D9} = {62F4DC79-BE3D-4E60-B402-8D5F9C4BB2D9}
{8F4BAC23-5C6E-7F90-B012-34567890BCDE} = {62F4DC79-BE3D-4E60-B402-8D5F9C4BB2D9}
{12CB1904-A8A3-43D6-8280-3806490E3857} = {876880F3-B389-4388-B3A4-00E6F2581D52}
{2644BA1A-A942-4257-8AC8-48607540572F} = {62F4DC79-BE3D-4E60-B402-8D5F9C4BB2D9}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6C1293A1-8EC4-44E8-9EE9-67892696FE26}
Expand Down
17 changes: 17 additions & 0 deletions plugins/NodeDiagnostics/NodeDiagnostics.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<None Update="NodeDiagnostics.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="$(PackageId).Tests" />
</ItemGroup>

</Project>
84 changes: 84 additions & 0 deletions plugins/NodeDiagnostics/NodeDiagnostics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"PluginConfiguration": {
"Environment": "production",
"ServiceName": "neo-node",
"NodeName": "",
"Tags": {
"role": "",
"region": ""
},
"CaptureUnhandledExceptions": true,
"CaptureUnobservedTaskExceptions": true,
"SendStartupDiagnosticEvent": false,
"IncludeStackTrace": true,
"HeartbeatIntervalSeconds": 60,
"ConsensusStallThresholdSeconds": 30,
"MaxQueueSize": 1024,
"BatchSize": 10,
"MaxRetries": 3,
"RetryDelayMilliseconds": 1000,
"RequestTimeoutMilliseconds": 5000,
"FlushTimeoutMilliseconds": 5000,
"MaxMessageLength": 4096,
"MaxStackTraceLength": 32768,
"Sinks": [
{
"Name": "custom-errors",
"Description": "Generic crash and error collector. Set Endpoint and Token for an internal gateway or webhook-compatible service.",
"Kind": "ErrorCollector",
"Provider": "CustomWebhook",
"Endpoint": "",
"Token": "",
"TokenHeader": "Authorization",
"TokenScheme": "Bearer",
"Headers": {},
"MinimumSeverity": "Error"
},
{
"Name": "sentry",
"Description": "Experimental Sentry event ingestion endpoint. Configure Endpoint from the project DSN store endpoint and provide the DSN auth header or key as required by your deployment.",
"Kind": "ErrorCollector",
"Provider": "Sentry",
"Endpoint": "",
"Token": "",
"TokenHeader": "X-Sentry-Auth",
"TokenScheme": "",
"Headers": {},
"MinimumSeverity": "Error"
},
{
"Name": "google-cloud-error-reporting",
"Description": "Experimental Google Cloud Error Reporting events.report endpoint. Configure Endpoint with the project path and use either an API key in the URL or an authorization token header.",
"Kind": "ErrorCollector",
"Provider": "GoogleCloudErrorReporting",
"Endpoint": "",
"Token": "",
"Headers": {},
"MinimumSeverity": "Error"
},
{
"Name": "betterstack-heartbeat",
"Description": "Better Stack heartbeat URL. The plugin sends periodic GET requests while the node process is running.",
"Kind": "StatusMonitor",
"Provider": "BetterStackHeartbeat",
"Endpoint": "",
"Method": "GET",
"Headers": {}
},
{
"Name": "ops-notifications",
"Description": "Webhook-compatible notification channel for node exceptions.",
"Kind": "Notification",
"Provider": "CustomWebhook",
"Endpoint": "",
"Token": "",
"TokenHeader": "Authorization",
"TokenScheme": "Bearer",
"Headers": {},
"MinimumSeverity": "Error"
}
],
"UnhandledExceptionPolicy": "Ignore"
},
"Dependency": []
}
Loading
Loading