aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/sentryintegration.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add sentry for zen command (#373)Dan Engelbrecht2025-05-061-324/+0
| | | | * refactor sentry integration and add to zen command line tool * move add_ldflags("-framework Security")
* don't call sentry_set_user twice (#135)Dan Engelbrecht2024-08-221-2/+3
| | | use a temp variable that lives longer to make sentry happy
* Add zenserver session id to Sentry context (#133)Dan Engelbrecht2024-08-221-0/+5
|
* enable sentry on arm64 (#119)Stefan Boberg2024-08-151-1/+4
| | | * enable sentry on arm64
* improve logging on main failure (#111)Dan Engelbrecht2024-08-141-23/+13
| | | | | | * add support for indenting callstack output * Explicitly catch option-parse error and reduce log spam on bad parameters * add command line to sentry error reports * log command line at startup
* assert improvements (#72)Dan Engelbrecht2024-05-031-5/+5
| | | | | - Improvement: Asserts gives an immediate ERROR log entry with callstack and reason - Improvement: Asserts flushes the log before sending error report to Sentry
* improved assert (#37)Dan Engelbrecht2024-04-041-15/+2
| | | | - Improvement: Add file and line to ASSERT exceptions - Improvement: Catch call stack when throwing assert exceptions and log/output call stack at important places to provide more context to caller
* fix truncation of sentry hostnameDan Engelbrecht2023-11-241-1/+1
|
* add host name to sentry (#537)Dan Engelbrecht2023-11-151-7/+49
| | | * add hostname to sentry user id
* spdlog implementation hiding (#498)Stefan Boberg2023-11-061-8/+12
| | | | | | | | | this change aims to hide logging internals from client code, in order to make it easier to extend and take more control over the logging process in the future. As a bonus side effect, the generated code is much tighter (net delta around 2.5% on the resulting executable which includes lots of thirdparty code) and should take less time to compile and link. Client usage via macros is pretty much unchanged. The main exposure client code had to spdlog internals before was the use of custom loggers per subsystem, where it would be common to have `spdlog::logger` references to keep a reference to a logger within a class. This is now replaced by `zen::LoggerRef` which currently simply encapsulates an actual `spdlog::logger` instance, but this is intended to be an implementation detail which will change in the future. The way the change works is that we now handle any formatting of log messages in the zencore logging subsystem instead of relying on `spdlog` to manage this. We use the `fmt` library to do the formatting which means the client usage is identical to using `spdlog`. The formatted message is then forwarded onto any sinks etc which are still implememted via `spdlog`.
* block sending error reports from sentry_sink to Sentry unless the log is ↵Dan Engelbrecht2023-10-271-0/+4
| | | | actually an error log (#501)
* zenserver project restructuring (#442)Stefan Boberg2023-10-061-0/+288