- Notifications
You must be signed in to change notification settings - Fork1
Crystal client for Rollbarhttps://rollbar.com
License
NotificationsYou must be signed in to change notification settings
msa7/crystal-rollbar
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An unofficial Crystal-language client and integration layer for theRollbar error reporting API.
Based onRollbar-gem andraven.cr
Features:
- report to Rollbar
- report about parent exception
- Kemal integration. Sumbit URL, HTTP variable based on Kemal environment
- Write example of async error reporting (fiber, sidekiq)
Add the dependency to your
shard.yml
:dependencies:crystal-rollbar:github:msa7/crystal-rollbar
Run
shards install
require"crystal-rollbar"Rollbar.access_token="rollbar_access_token"Rollbar.environment="staging"Rollbar.framework="Kemal"Rollbar.code_version="0.1"Rollbar.debug("Debug#{Time.utc}", user_id="777")beginraise"Error#{Time.utc}"rescue eRollbar.error(e, user_id="555")end
With Kemal
require"crystal-rollbar/kemal"Kemal.config.add_handler(Rollbar::Kemal::ExceptionHandler.new)Kemal.run
With Sidekiq
require"crystal-rollbar/sidekiq"cli=Sidekiq::CLI.newserver= cli.configuredo |config| config.error_handlers<<Rollbar::Sidekiq::ExceptionHandler.newendcli.run(server)
- Fork it (https://github.com/your-github-user/crystal-rollbar/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Sergey Makridenkov - creator and maintainer
Releases
No releases published
Packages0
No packages published