Debian Codegraph @

src/Main/sentryIntegration.hxx

raw symbols SCIP
1 // sentryIntegration.hxx - Interface with Sentry.io crash reporting
2 //
3 // SPDX-FileCopyrightText: (C) 2018 James Turner <[email protected]>
4 // SPDX-License-Identifier: GPL-2.0-or-later
5
6 #pragma once
7
8 #include <simgear/misc/strutils.hxx>
9 #include <string>
10
11 namespace flightgear {
12
13 void initSentry(bool quiet);
14
15 void shutdownSentry();
16
17 void delayedSentryInit();
18
19 bool isSentryEnabled();
20
21 void addSentryBreadcrumb(const std::string& msg, const std::string& level);
22
23 void addSentryTag(const char* tag, const char* value);
24
25 void addSentryTag(const std::string& tag, const std::string& value);
26
27 void updateSentryTag(const std::string& tag, const std::string& value);
28
29
30 void sentryReportNasalError(const std::string& msg, const string_list& stack);
31
32 void sentryReportException(const std::string& msg, const std::string& location = {});
33
34 void sentryReportFatalError(const std::string& msg, const std::string& more = {});
35
36 void sentryReportUserError(const std::string& aggregate, const std::string& parameter, const std::string& details);
37
38 /**
39 * @brief retrive the anonymous user ID (a UUID) for this installation.
40 *
41 * The UUID is generated on first-run and stored in FG_HOME in a text file.
42 */
43 std::string sentryUserId();
44
45 } // namespace flightgear