Crate rocket_sentry_logger[−][src]
A Logger wrapper to integrate the Sentry SDK on a Rocket Server easily
Offers a set of functions which helps to log simple messages to sentry, configure users, and set up a fairing on a Rocket server
Modules
fairing | A fairing for monitoring requests & responses with the sentry SDK for a Rocket Application |
Structs
Guard | Helper struct that is returned from |
InitConfig | Initial Logger configuration. Lets you configure the service name such as Recipes API, release name & running environment. |
Step | Represents an step done previous to an event. It gets internally converted to a sentry breadcrumb. |
User | Represents user info. |
Enums
LogLevel | Represents the level of severity of an event or breadcrumb. |
StepType | It helps the step to be better represented visually in sentry. |
Functions
add_data | Allows you to set extra data about the message. |
fairing | Returns an instance of |
init | Initialize a sentry client instance with the recommended sentry configuration &
additional config which can be set with the |
log | Logs a message to sentry. Use the LogLevel enum to set up the desired logging level. Every step tracked previous to the log on the same execution thread will be sent along with the message. |
set_tag | Allows you to set additional tags to the sentry issue. |
set_user | Allows you to set info about the user related with the current scope. |
track_step | Tracks an step to be sent along with the next logged message or event. |