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
Step | Represents an step done previous to an event. It gets internally converted to a sentry breadcrumb. |
User | Sentry Log level & User config |
Enums
LogLevel | Sentry Log level & User config |
StepType | It helps the step to be better represented visually in sentry. |
Functions
fairing | Returns an instance of |
init | Initialize a sentry client instance with the recommended sentry configuration. Reads the SENTRY_DNS variable from the environment to start the client |
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_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. |