// sentryIntegration.hxx - Interface with Sentry.io crash reporting // // SPDX-FileCopyrightText: (C) 2018 James Turner // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include #include namespace flightgear { void initSentry(bool quiet); void shutdownSentry(); void delayedSentryInit(); bool isSentryEnabled(); void addSentryBreadcrumb(const std::string& msg, const std::string& level); void addSentryTag(const char* tag, const char* value); void addSentryTag(const std::string& tag, const std::string& value); void updateSentryTag(const std::string& tag, const std::string& value); void sentryReportNasalError(const std::string& msg, const string_list& stack); void sentryReportException(const std::string& msg, const std::string& location = {}); void sentryReportFatalError(const std::string& msg, const std::string& more = {}); void sentryReportUserError(const std::string& aggregate, const std::string& parameter, const std::string& details); /** * @brief retrive the anonymous user ID (a UUID) for this installation. * * The UUID is generated on first-run and stored in FG_HOME in a text file. */ std::string sentryUserId(); } // namespace flightgear