Crow
0.0.4
|
a C++ client for Sentry More...
#include <crow.hpp>
Public Member Functions | |
crow (const std::string &dsn, const json &context=nullptr, bool install_handlers=true) | |
create a client More... | |
void | install_handler () |
install termination handler to handle uncaught exceptions More... | |
crow (const crow &other) | |
copy constructor More... | |
~crow () | |
destructor More... | |
event capturing | |
void | capture_message (const std::string &message, const json &attributes=nullptr, bool asynchronous=true) |
capture a message More... | |
void | capture_exception (const std::exception &exception, const json &context=nullptr, bool asynchronous=true, bool handled=true) |
capture an exception More... | |
void | add_breadcrumb (const std::string &message, const json &attributes=nullptr) |
add a breadcrumb to the current context More... | |
std::string | get_last_event_id () const |
return the id of the last reported event More... | |
context management | |
const json & | get_context () const |
return current context More... | |
void | add_user_context (const json &data) |
add elements to the "user" context for future events More... | |
void | add_tags_context (const json &data) |
add elements to the "tags" context for future events More... | |
void | add_request_context (const json &data) |
add elements to the "request" context for future events More... | |
void | add_extra_context (const json &data) |
add elements to the "extra" context for future events More... | |
void | merge_context (const json &context) |
add context information to payload for future events More... | |
void | clear_context () |
reset context for future events More... | |