Skip to content

Commit a8e92aa

Browse files
committed
improve README
1 parent 7f71395 commit a8e92aa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
A tiny integration library for Natchez and Akka Http.
66

7-
Only a server middleware has been implemented so far.
7+
Examples of usage are given for both the client and the server. A Tapir integration is also shown.
88

99
Head over the [site](http://massimosiani.github.io/natchez-akka-http/) for further information.

natchez-akka-http/src/main/scala/natchez/akka/http/NatchezAkkaHttp.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ object NatchezAkkaHttp {
103103
.put(("cancelled", TraceValue.BooleanValue(true)), Tags.error(true))
104104
}
105105

106-
private def addErrorFields[F[_]: Trace](e: Throwable): F[Unit] =
107-
Trace[F].put(Tags.error(true), "error.message" -> e.getMessage())
106+
private def addErrorFields[F[_]: Trace](e: Throwable): F[Unit] = Trace[F].attachError(e)
108107

109108
private def addRequestFields[F[_]: Trace](req: HttpRequest): F[Unit] =
110109
Trace[F].put(Tags.http.method(req.method.name), Tags.http.url(req.uri.toString()))

0 commit comments

Comments
 (0)