Skip to content

Track and report errors, exceptions and messages from your Rust application to Rollbar.

License

Notifications You must be signed in to change notification settings

RoxasShadow/rollbar-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollbar-rs

Build Status

Track and report errors, exceptions and messages from your Rust application to Rollbar.

Usage

Automatic logging

examples/panic.rs will show you how to set a hook for all the panics that your application could raise so that they will be handled automatically by rollbar-rs in order to be tracked on Rollbar.

You can run it with $ cargo run --example panic if you remember to set the correct access_token.

Manual logging

Manual logging could be useful when you want to handle errors in your application but also notify Rollbar about them.

examples/error.rs shows how to deal with errors, while examples/message.rs is for plain text reports.

Customize the reports

Check the documentation to understand how you can add or modify one or more fields in the reports that will be sent to Rollbar. Generally, all the methods whose names starts with with_ or from_ is what you need.

About

Track and report errors, exceptions and messages from your Rust application to Rollbar.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages