Skip to content

Commit

Permalink
Make service name overrideable to enable distinguishing different pla…
Browse files Browse the repository at this point in the history
…y applications in traces
  • Loading branch information
drpacman committed Jun 28, 2015
1 parent 2c463a1 commit 4e7b32c
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 4e7b32c

Please sign in to comment.