Crate rocket_sentry_logger

Source
Expand description

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§

  • A fairing for monitoring requests & responses with the sentry SDK for a Rocket Application

Structs§

  • Helper struct that is returned from init.
  • Initial Logger configuration. Lets you configure the service name such as Recipes API, release name & running environment.
  • Represents an step done previous to an event. It gets internally converted to a sentry breadcrumb.
  • Represents user info.

Enums§

  • Represents the level of severity of an event or breadcrumb.
  • It helps the step to be better represented visually in sentry.

Functions§

  • Allows you to set extra data about the message.
  • Returns an instance of LoggerFairing to be attached on a rocket instance
  • Initialize a sentry client instance with the recommended sentry configuration & additional config which can be set with the InitConfig struct.
  • 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.
  • Allows you to set additional tags to the sentry issue.
  • Allows you to set info about the user related with the current scope.
  • Tracks an step to be sent along with the next logged message or event.