Skip to content

Commit

Permalink
improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
massimosiani committed Jun 10, 2023
1 parent 7f71395 commit a8e92aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

A tiny integration library for Natchez and Akka Http.

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

Head over the [site](http://massimosiani.github.io/natchez-akka-http/) for further information.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ object NatchezAkkaHttp {
.put(("cancelled", TraceValue.BooleanValue(true)), Tags.error(true))
}

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

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

0 comments on commit a8e92aa

Please sign in to comment.