From 1dcb8d33ba12fcb1c3a8cdc4c9f529c1f11d2da1 Mon Sep 17 00:00:00 2001 From: Kunal Dhingra Date: Mon, 15 Apr 2024 12:35:57 -0400 Subject: [PATCH] add method to collect telemetry from fips plugin --- src/EventStore.Plugins/MD5/IMD5Plugin.cs | 7 ++++++- src/EventStore.Plugins/Subsystems/ISubsystem.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/EventStore.Plugins/MD5/IMD5Plugin.cs b/src/EventStore.Plugins/MD5/IMD5Plugin.cs index 7ac45d7..f07e5c3 100644 --- a/src/EventStore.Plugins/MD5/IMD5Plugin.cs +++ b/src/EventStore.Plugins/MD5/IMD5Plugin.cs @@ -1,4 +1,7 @@ -namespace EventStore.Plugins.MD5; +using System; +using System.Text.Json.Nodes; + +namespace EventStore.Plugins.MD5; public interface IMD5Plugin { string Name { get; } @@ -6,6 +9,8 @@ public interface IMD5Plugin { string CommandLineName { get; } + void CollectTelemetry(Action reply); + /// /// Creates an MD5 provider factory for the MD5 plugin /// diff --git a/src/EventStore.Plugins/Subsystems/ISubsystem.cs b/src/EventStore.Plugins/Subsystems/ISubsystem.cs index 5dd29a8..8e24bb2 100644 --- a/src/EventStore.Plugins/Subsystems/ISubsystem.cs +++ b/src/EventStore.Plugins/Subsystems/ISubsystem.cs @@ -11,7 +11,7 @@ public interface ISubsystem { string Name { get; } IApplicationBuilder Configure(IApplicationBuilder builder); IServiceCollection ConfigureServices(IServiceCollection services, IConfiguration configuration); - void CollectTelemetry(Action collect); + void CollectTelemetry(Action reply); Task Start(); Task Stop(); }