diff --git a/instrumentation/kamon-armeria/src/main/scala/kamon/instrumentation/armeria/server/ArmeriaHttpServerInstrumentation.scala b/instrumentation/kamon-armeria/src/main/scala/kamon/instrumentation/armeria/server/ArmeriaHttpServerInstrumentation.scala index e3857be72..acee2bb4b 100644 --- a/instrumentation/kamon-armeria/src/main/scala/kamon/instrumentation/armeria/server/ArmeriaHttpServerInstrumentation.scala +++ b/instrumentation/kamon-armeria/src/main/scala/kamon/instrumentation/armeria/server/ArmeriaHttpServerInstrumentation.scala @@ -78,9 +78,7 @@ object HandleNotFoundMethodAdvisor { @Advice.Thrown throwable: Throwable): Unit = { if (throwable != null && statusException.httpStatus.code() == HttpStatus.NOT_FOUND.code()) { val requestHandler = ctx.attr(REQUEST_HANDLER_TRACE_KEY) - Kamon.runWithContext(requestHandler.context) { requestHandler.span.name(unhandledOperationName) - } } } }