From a4d3681626082234abb71f118cb9be6e71fc52eb Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Mon, 13 Jan 2025 11:42:02 -0800 Subject: [PATCH] [user_events] Add force_flush to user_events logs exporter (#510) --- .../opentelemetry/exporters/user_events/logs/exporter.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exporters/user_events/include/opentelemetry/exporters/user_events/logs/exporter.h b/exporters/user_events/include/opentelemetry/exporters/user_events/logs/exporter.h index 526be2297..b5c8e01b0 100644 --- a/exporters/user_events/include/opentelemetry/exporters/user_events/logs/exporter.h +++ b/exporters/user_events/include/opentelemetry/exporters/user_events/logs/exporter.h @@ -42,6 +42,12 @@ class Exporter final : public opentelemetry::sdk::logs::LogRecordExporter bool Shutdown( std::chrono::microseconds timeout = (std::chrono::microseconds::max)()) noexcept override; + bool ForceFlush( + std::chrono::microseconds timeout = (std::chrono::microseconds::max)()) noexcept override { + // TODO: implement forceflush + return true; + } + bool isShutdown() const noexcept; private: