notifier for Play 2.2.x
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 3 commits ahead of teamon:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
build.sbt notifier for Play 2.2.2


Add play-airbrake to your project/Build.scala/build.sbt file

val appDependencies = Seq(
  "com.tegonal" %% "play-airbrake" % "0.3.2"

val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
  resolvers += "Tegonal Releases" at ""

Your app/Global.scala should look like this

import play.api._
import play.api.mvc._
import play.airbrake.Airbrake

object Global extends GlobalSettings {

  override def onError(request: RequestHeader, ex: Throwable) = {
    Airbrake.notify(request, ex)
    super.onError(request, ex)


For javascript notifications (not free plan)


For java integration your app/ should look like this

class Global extends GlobalSettings {
  public Result onError(RequestHeader request, Throwable t) {
    Airbrake.notify(request, t);
    return super.onError(request, t);


Key Description
airbrake.apiKey String, required airbrake project api key
airbrake.ssl Boolean, optional, defaults to false set to true if you have airbrake plan with SSL support
airbrake.enabled Boolean, optional, defaults to Play.isProd optionally enable/disable notifications for different environment
airbrake.endpoint String, optional, defaults to point notifier to you custom airbrake compatible service (e.g. errbit)