diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-04-27 11:59:21 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-04-27 11:59:21 +0200 |
commit | a235694717365c6bd18f4c2183a5280d454aa428 (patch) | |
tree | 6def5c294b7365124b57eaa781c41e4ec78d5bb4 /kamon-spray/src/main/scala/kamon/spray/SprayExtension.scala | |
parent | 3f53e1de02a6e6ec82db426bf4069e280800de65 (diff) | |
download | Kamon-a235694717365c6bd18f4c2183a5280d454aa428.tar.gz Kamon-a235694717365c6bd18f4c2183a5280d454aa428.tar.bz2 Kamon-a235694717365c6bd18f4c2183a5280d454aa428.zip |
! spray: rename SprayNameGenerator to just NameGenerator.
Diffstat (limited to 'kamon-spray/src/main/scala/kamon/spray/SprayExtension.scala')
-rw-r--r-- | kamon-spray/src/main/scala/kamon/spray/SprayExtension.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kamon-spray/src/main/scala/kamon/spray/SprayExtension.scala b/kamon-spray/src/main/scala/kamon/spray/SprayExtension.scala index 37e12702..ebf79496 100644 --- a/kamon-spray/src/main/scala/kamon/spray/SprayExtension.scala +++ b/kamon-spray/src/main/scala/kamon/spray/SprayExtension.scala @@ -60,13 +60,13 @@ class SprayExtensionImpl(system: ExtendedActorSystem) extends SprayExtension { settings.nameGenerator.generateHostLevelApiSegmentName(request) } -trait SprayNameGenerator { +trait NameGenerator { def generateTraceName(request: HttpRequest): String def generateRequestLevelApiSegmentName(request: HttpRequest): String def generateHostLevelApiSegmentName(request: HttpRequest): String } -class DefaultSprayNameGenerator extends SprayNameGenerator { +class DefaultNameGenerator extends NameGenerator { def generateRequestLevelApiSegmentName(request: HttpRequest): String = { val uriAddress = request.uri.authority.host.address |