Giter Club home page Giter Club logo

datadog_notifier's Introduction

Datadog Notifier

Send Custom Errors from Rails application to Dadatdog Error Tracking Dashboard

Steps

Installation

Add this line to your application's Gemfile:

gem 'datadog_notifier'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install datadog_notifier

Dependency

  • Datadog must be integrated in the project before we use this gem

Quick Use

Send notification to datadog(Traces to add errors in Datadog)

DatadogNotifier.notify(exception, payload_json)

Here exception is the error same as we send for Airbrake i.e ErrorTracking.notify(exception) and payload_json is an optional parameter where we can pass the payload(json value) to share extra details in datadog error tracking

Error Tracking Dashboard link

  • Error Tracking
  • We can filter out these custom errors using @custom_dd_notifier:true as we are passing this custom_dd_notifier while sending custom errors to datadog.

Replace existing custom ErrorTracking with DatadogNotifier

We have kept DatadogNotifier signature same as other ErrorTracking services. This will help us to just search and replace all occurences. Just replace ErrorTracking.notify with DatadogNotifier.notify

Before: ErrorTracking.notify("ProductErrorForm: Error while scraping new product", error_params_json)
After: DatadogNotifier.notify("ProductErrorForm: Error while scraping new product", error_params_json)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/patterninc/datadog_notifier

License

The gem is available as open source under the terms of the MIT License.

datadog_notifier's People

Contributors

amoludage avatar ssontakke avatar

Stargazers

Sibananda Kheti avatar

Watchers

Nate Salisbury avatar Josh Diaz avatar  avatar

Forkers

sagarjunnarkar

datadog_notifier's Issues

Using v1.0.3 doesn't work

Steps to reproduce

  1. Use the gem in a rails application with the tag v1.0.3
gem 'datadog_notifier', git: 'https://github.com/patterninc/datadog_notifier.git', tag: 'v1.0.3'
  1. Bundle install
Bundler 2.3.23 is running, but your lockfile was generated with 2.3.26. Installing Bundler 2.3.26 and restarting using that version.
Fetching gem metadata from https://rubygems.org/.
Fetching bundler 2.3.26
Installing bundler 2.3.26
Fetching https://github.com/patterninc/datadog_notifier.git

[!] There was an error while loading `datadog_notifier.gemspec`: cannot load such file -- ddtrace. Bundler cannot continue.

 #  from /Users/prateekchoudhary/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bundler/gems/datadog_notifier-634e26abda24/datadog_notifier.gemspec:3
 #  -------------------------------------------
 #  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
 >  require 'datadog_notifier'
 #  require "datadog_notifier/version"
 #  -------------------------------------------

EDIT - Adding ruby and ddtrace version as requested

ddtrace (1.18.0)
ruby - 3.1.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.