Skip to content

Commit

Permalink
Extract b3 propagation headers using case insensitive comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
simao committed Feb 28, 2024
1 parent 914b57f commit 5aad467
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ZipkinTracing(httpTracing: HttpTracing) extends Tracing {
HttpServerHandler.create(tracing, new ZipkinTracingHttpAdapter)

private def extractor(tracing: HttpTracing): TraceContext.Extractor[HttpRequest] =
tracing.tracing.propagation.extractor((carrier: HttpRequest, key: String) => carrier.headers.find(_.name() == key).map(_.value()).orNull)
tracing.tracing.propagation.extractor((carrier: HttpRequest, key: String) => carrier.headers.find(_.name().equalsIgnoreCase(key)).map(_.value()).orNull)

private def traceRequest(req: HttpRequest): Boolean = {
List("/health", "/metrics").forall { p =>
Expand Down

0 comments on commit 5aad467

Please sign in to comment.