Giter VIP home page Giter VIP logo

sentry-pagerduty's Introduction

sentry-pagerduty

Urban Airship private fork of the package sentry-pagerduty.

Configuration

Go to your project's configuration page (Projects -> [Project]) and click on "Manage Plugins". Switch on Pagerduty by ticking "Enabled" in the appropriate column. Click "Save Changes". Then select the "Pagerduty" tab and enter the pagerduty api-key, your sentry service-key and the domain name of your pagerduty instance.

Time out issues

You might experience issues with raven client's default timeout beeing to short for pagerduty to respond in time. In that case you need to adjust the timeout accordingly. This prooves challenging since providing a timeout query with the DSN is currently beeing disabled (getsentry/raven-python#253) as is passing a timeout value during client instance creation (getsentry/raven-python#183).

A temporarily solution which does not include changing 3rd party code would be to manually configure the client with a custom transport class e.g.:

from urlparse import urlparse
from raven import Client
from raven.transport.base import HTTPTransport

# instantiate client as usual
client = Client('http://<public_key>:<secret_key>@0.0.0.0:9000/2')

# create transport with custom timeout and register it with your sentry instance
transport = HTTPTransport(urlparse("http://0.0.0.0:9000/api/store/"), timeout=30)
client._registry._transports["http://0.0.0.0:9000/api/store/"] = transport

# use client at your convenience
client.captureMessage('hello world')

sentry-pagerduty's People

Contributors

jtcunning avatar leon-depop avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.