diff options
Diffstat (limited to 'kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala')
-rw-r--r-- | kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala b/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala index 82d3ceb1..b1bca22d 100644 --- a/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala +++ b/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala @@ -38,7 +38,7 @@ class ServerRequestInstrumentation { val defaultTraceName = SprayExtension.generateTraceName(request) val token = if (SprayExtension.settings.includeTraceTokenHeader) { - request.headers.find(_.name == SprayExtension.settings.traceTokenHeaderName).map(_.value) + request.headers.find(_.name.equalsIgnoreCase(SprayExtension.settings.traceTokenHeaderName)).map(_.value) } else None val newContext = tracer.newContext(defaultTraceName, token) |