Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureError ¶
CaptureError takes an error and captures the details about it and sends it off to Sentry, if Sentry has been set up.
func FromRequestID ¶
FromRequestID generates a new context with the given context as its parent, and stores the given ID with the context. The ID can be retrieved again using RequestIDFromContext. If this is the beginning of the request, it is inherited from the X-Request-ID from Heroku.
func LoggerFromContext ¶
LoggerFromContext returns a logrus.Entry with the PID of the current process set as a field, and also includes every field set using the From* functions this package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.