Skip to content

Commit

Permalink
Merge pull request #60 from drpacman/master
Browse files Browse the repository at this point in the history
Make service name overrideable to enable distinguishing different pla…
  • Loading branch information
levkhomich committed Jun 30, 2015
2 parents 2c463a1 + 4e7b32c commit 0131334
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ import com.github.levkhomich.akka.tracing.http.TracingHeaders

trait TracingSettings extends GlobalSettings with PlayControllerTracing {

lazy val serviceName = play.libs.Akka.system.name

protected def sample(request: RequestHeader): Unit = {
trace.sample(request, play.libs.Akka.system.name)
trace.sample(request, serviceName)
}

protected def addHttpAnnotations(request: RequestHeader): Unit = {
Expand Down

0 comments on commit 0131334

Please sign in to comment.