Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Crystal client for Rollbarhttps://rollbar.com

License

NotificationsYou must be signed in to change notification settings

msa7/crystal-rollbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)

Installation

  1. Add the dependency to yourshard.yml:

    dependencies:crystal-rollbar:github:msa7/crystal-rollbar
  2. Runshards install

Usage

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)

Contributing

  1. Fork it (https://github.com/your-github-user/crystal-rollbar/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

Crystal client for Rollbarhttps://rollbar.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp