Skip to content

Commit

Permalink
Add sentry error tracking (#304)
Browse files Browse the repository at this point in the history
* Add sentry error tracking

* Remove travis

* Add codeship build badge
  • Loading branch information
koddsson committed Jul 25, 2016
1 parent ba9cbcb commit 396a1cb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/apis-is/apis.svg?branch=master)](https://travis-ci.org/apis-is/apis)
[ ![Codeship Status for apis-is/apis](https://codeship.com/projects/7c0ce5a0-9901-0132-893b-365d53813970/status?branch=master)](https://codeship.com/projects/63542)
# [APIs.is](http://apis.is) - Making data pretty since 2012!

The purpose of [APIs.is](http://apis.is) is to make data readily available to anyone interested. All data that is delivered through APIs.is is JSON formatted and scraped from open public websites.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"lodash": "^4.7.0",
"mocha": "~2.4.5",
"moment": "~2.12.0",
"raven": "0.11.0",
"redis": "2.5.3",
"request": "~2.69.0",
"scraper": "0.0.9",
Expand Down
6 changes: 6 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ import makeDebug from 'debug'
const debug = makeDebug('server')
const app = express()

// Set up error tracking with Sentry
const SENTRY_URL = process.env.SENTRY_URL
const raven = require('raven')
const client = new raven.Client(SENTRY_URL)
client.patchGlobal()

app.use(expressMetrics({
port: 8091,
}))
Expand Down
Binary file removed travisapis.enc
Binary file not shown.

0 comments on commit 396a1cb

Please sign in to comment.