diff options
-rw-r--r-- | kamon-spray/src/main/resources/reference.conf | 2 | ||||
-rw-r--r-- | kamon-spray/src/main/scala/kamon/spray/Spray.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kamon-spray/src/main/resources/reference.conf b/kamon-spray/src/main/resources/reference.conf index 9fed5a2b..5c5e9317 100644 --- a/kamon-spray/src/main/resources/reference.conf +++ b/kamon-spray/src/main/resources/reference.conf @@ -18,7 +18,7 @@ kamon { # Fully qualified name of the implementation of kamon.spray.SprayNameGenerator that will be used for assigning names # to traces and client http segments. - name-generator = kamon.spray.SimpleSprayNameGenerator + name-generator = kamon.spray.DefaultSprayNameGenerator client { # Strategy used for automatic trace segment generation when issue requests with spray-client. The possible values diff --git a/kamon-spray/src/main/scala/kamon/spray/Spray.scala b/kamon-spray/src/main/scala/kamon/spray/Spray.scala index 4a0fd74e..c1c81116 100644 --- a/kamon-spray/src/main/scala/kamon/spray/Spray.scala +++ b/kamon-spray/src/main/scala/kamon/spray/Spray.scala @@ -65,7 +65,7 @@ trait SprayNameGenerator { def generateHostLevelApiSegmentName(request: HttpRequest): String } -class SimpleSprayNameGenerator extends SprayNameGenerator { +class DefaultSprayNameGenerator extends SprayNameGenerator { def generateRequestLevelApiSegmentName(request: HttpRequest): String = request.method.value + ": " + request.uri.path def generateTraceName(request: HttpRequest): String = request.method.value + ": " + request.uri.path def generateHostLevelApiSegmentName(request: HttpRequest): String = request.uri.authority.host.address |