class ov::frontend::TelemetryExtension¶
Provides callback to report telemetry information back to Python code.
#include <telemetry.hpp>
class TelemetryExtension: public ov::Extension
{
public:
// typedefs
typedef std::shared_ptr<TelemetryExtension> Ptr;
typedef std::function<void(const std::string&category, const std::string&error_message)> error_callback;
typedef std::function<void(const std::string&category, const std::string&action, const std::string&label, int value)> event_callback;
// construction
TelemetryExtension(
const std::string& event_category,
const event_callback& send_event,
const error_callback& send_error,
const error_callback& send_stack_trace
);
// methods
void send_event(
const std::string& action,
const std::string& label,
int value = 1
);
void send_error(const std::string& error_message);
void send_stack_trace(const std::string& error_message);
};