GithubHelp home page GithubHelp logo

sentry-hipchat's Introduction

sentry-hipchat

An extension for Sentry which integrates with Hipchat. It will send issues notification to Hipchat.

Install

Install the package via pip:

pip install sentry-hipchat

Configuration

Go to your project's configuration page (Projects -> [Project]) and select the Hipchat tab. Enter the required credentials and click save changes.

sentry-hipchat's People

Contributors

aadis avatar camilonova avatar dcramer avatar enmand avatar ghickman avatar item4 avatar mattrobenolt avatar mitsuhiko avatar xordoquy avatar

Stargazers

 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

Watchers

 avatar  avatar  avatar

sentry-hipchat's Issues

Unicode issue

Hello. I'm using Korean and I tried notify error messages to our dev room. But it's not work.

It's traceback.

Error processing 'post_process' on 'HipchatMessage': 'ascii' codec can't encode characters in position 15-16: ordinal not in range(128)
Traceback (most recent call last):
  File "/home/trex/.virtualenvs/sentry/local/lib/python2.7/site-packages/sentry/utils/safe.py", line 19, in safe_execute
    result = func(*args, **kwargs)
  File "/home/trex/.virtualenvs/sentry/local/lib/python2.7/site-packages/sentry_hipchat/models.py", line 91, in post_process
    }, notify, color=COLORS.get(level, 'purple'))
  File "/home/trex/.virtualenvs/sentry/local/lib/python2.7/site-packages/sentry_hipchat/models.py", line 103, in send_payload
    data = urllib.urlencode(values)
  File "/usr/lib/python2.7/urllib.py", line 1332, in urlencode
    v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 15-16: ordinal not in range(128)
Error processing 'post_process' on 'HipchatMessage': 'ascii' codec can't encode characters in position 15-16: ordinal not in range(128)
Traceback (most recent call last):
  File "/home/trex/.virtualenvs/sentry/local/lib/python2.7/site-packages/sentry/utils/safe.py", line 19, in safe_execute
    result = func(*args, **kwargs)
  File "/home/trex/.virtualenvs/sentry/local/lib/python2.7/site-packages/sentry_hipchat/models.py", line 91, in post_process
    }, notify, color=COLORS.get(level, 'purple'))
  File "/home/trex/.virtualenvs/sentry/local/lib/python2.7/site-packages/sentry_hipchat/models.py", line 103, in send_payload
    data = urllib.urlencode(values)
  File "/usr/lib/python2.7/urllib.py", line 1332, in urlencode
    v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 15-16: ordinal not in range(128)

I configed like this.

Token: SECRET
Room: ReadyApp
checked Notify
checked Include project name

I think if project names contain non-ascii character, it occur error(I tried only alphabet project name. it was not occur error.) and it will can fix by .encode('utf-8').

Remove @register

No longer needed as part of API

This is now handled by the setuptools hook

Escape HTML in error messages

Right now the following message appears in hipchat:

NoMethodError: undefined method `bytesize' for #

The complete error message is:

NoMethodError: undefined method `bytesize' for #<Hash:0x00000002426088>

Make Error-Levels to Report configurable

Code:
models.py:L38

    reporting_levels = forms.CharField(help_text="Comma separated", required=False)

models.py:L85

        reporting_levels = self.get_option('reporting_levels', event.project) or ''
        reporting_levels = reporting_levels.split(',') if reporting_levels.strip() else COLORS.keys()

        if token and room and (level in reporting_levels):

The Code should have some Error-Checks, but it works.

Option to show team in message?

This would be really useful when working with many teams with cross-membership which means a room per team is impractical for some users (10+ different sentry rooms D:).

Don't notify of muted events.

Even though an event is muted in the UI (aka "I don't want to hear about it anymore"), we still get notified in HipChat.

Very useful feature for buggy and noisy Google Chrome extensions.

Release a new version

There are a lot of changes, and for some reason a new version hasn't been released in a long time

Add option to change HipChat server

Due to the upcoming new "self-hosted" version of HC it should be possible to let the user choose which server he want to use. The default HC-server or a specific URL pointing to an own HC-server instance. It's also integrated with all the clients for HC.

Add config option for only new/changed events

Right now, you get every event that comes into the project you have configured for hipchat alerts.

I'd love there to be a config option to only make it send notifications when a new event has come in, or a regression, like the way emails work.

Add resource links

I added a resource_links attribute in plugins to improve the interface. It renders like this in master:

http://cl.ly/image/1k2d0K0T3G1c

Just set Plugin.resource_links to a list of tuples, like this:

    resource_links = [
        ('Bug Tracker', 'https://github.com/getsentry/sentry-github/issues'),
        ('Source', 'https://github.com/getsentry/sentry-github'),
    ]

Duplicate Hipchat Notifications

I'm getting duplicate messages to HipChat when this plugin is enabled. For instance using Raven on the frontend, simply doing this:

Raven.captureMessage("Hello!");

Results in 2 messages in the connected HipChat room, both linking to the same event. Disabling the plugin results in no messages, as expected. I've also tried creating a brand new room and received the same duplicate notifications. So I don't think there's a different integration causing issues.

I assume that I must have something incorrectly configured but I can't seem to sort out what.

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.