NatchezMiddleware
natchez.http4s.NatchezMiddleware$
object NatchezMiddleware
Attributes
- Source:
- NatchezMiddleware.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- NatchezMiddleware.type
Members list
Concise view
Value members
Concrete methods
A middleware that adds the current span's kernel to outgoing requests, performs requests in
a span called http4s-client-request
, and adds the following fields to that span.
A middleware that adds the current span's kernel to outgoing requests, performs requests in
a span called http4s-client-request
, and adds the following fields to that span.
- "client.http.method" -> "GET", "PUT", etc.
- "client.http.uri" -> request URI
- "client.http.status_code" -> "200", "403", etc. // why is this a string?
Attributes
- Source:
- NatchezMiddleware.scala
def server[F[_] : Trace](routes: HttpRoutes[F])(implicit evidence$2: Trace[F], ev: MonadCancel[F, Throwable]): HttpRoutes[F]
A middleware that adds the following standard fields to the current span:
A middleware that adds the following standard fields to the current span:
- "http.method" -> "GET", "PUT", etc.
- "http.url" -> request URI (not URL)
- "http.status_code" -> "200", "403", etc. // why is this a string?
- "error" -> true // only present in case of error
In addition the following non-standard fields are added in case of error:
- "error.message" -> Exception message
- "error.stacktrace" -> Exception stack trace as a multi-line string
- "cancelled" -> true // only present in case of cancellation
Attributes
- Source:
- NatchezMiddleware.scala
Deprecated methods
def apply[F[_] : Trace](routes: HttpRoutes[F])(implicit evidence$1: Trace[F], ev: MonadCancel[F, Throwable]): HttpRoutes[F]
Attributes
- Deprecated
- true
- Source:
- NatchezMiddleware.scala