File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
natchez-akka-http/src/main/scala/natchez/akka/http Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
A tiny integration library for Natchez and Akka Http.
6
6
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 .
8
8
9
9
Head over the [ site] ( http://massimosiani.github.io/natchez-akka-http/ ) for further information.
Original file line number Diff line number Diff line change @@ -103,8 +103,7 @@ object NatchezAkkaHttp {
103
103
.put((" cancelled" , TraceValue .BooleanValue (true )), Tags .error(true ))
104
104
}
105
105
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)
108
107
109
108
private def addRequestFields [F [_]: Trace ](req : HttpRequest ): F [Unit ] =
110
109
Trace [F ].put(Tags .http.method(req.method.name), Tags .http.url(req.uri.toString()))
You can’t perform that action at this time.
0 commit comments