Skip to main content

A Sentry plugin that adds support for geo data.

Project description

A plugin for Sentry which works with geo data. This adds a sentry_geo.interfaces.Geo interface which allows you to draw maps on your event pages.

This is just a hack to see how easy it would be to add custom interfaces to Sentry via plugins. Support for additional geo data types could be added, but this is probably not the ideal way to write interfaces.

Interface

Geographic points use following interface:

{
    "sentry_geo.interfaces.Geo": {
        "lat": 12.321,
        "lon": 45.654,
    }
}

Install

Install the package via pip:

pip install sentry-geo

Add sentry_geo to your INSTALLED_APPS:

INSTALLED_APPS = (
    # ...
    'sentry',
    'sentry_geo',
)

You’ll need to add the following lines to your urls.py:

import sentry_geo
sentry_geo_static_root = os.path.join(os.path.dirname(sentry_geo.__file__), 'static')

urlpatterns = patterns('',
    url(r'^_sentry_geo_static/(?P<path>.*)$', generic.static_media,
        kwargs={'root': sentry_geo_static_root},
        name='sentry-geo-static'),
) + urlpatterns

I’m still looking for a solution that doesn’t involve overwriting urls.py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentry-geo-0.0.0.tar.gz (323.4 kB view details)

Uploaded Source

File details

Details for the file sentry-geo-0.0.0.tar.gz.

File metadata

  • Download URL: sentry-geo-0.0.0.tar.gz
  • Upload date:
  • Size: 323.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sentry-geo-0.0.0.tar.gz
Algorithm Hash digest
SHA256 fb60a6f8eb6c0e7147fcb7fcf122984c5b2dd75db186f2a6fffc8d4e219a3f20
MD5 5b988fb9ff8d1b5d521622043cb1f481
BLAKE2b-256 2a94dda8dbbfa43ea9b052e03c6fa91e26bea4d0f707324484f84eed283cc0db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page