TraceMiddleware

com.ovoenergy.natchez.extras.http4s.server.TraceMiddleware$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply[F[_]](entryPoint: EntryPoint[F], configuration: Configuration[F])(service: HttpApp[[_] =>> Kleisli[F, Span[F], _$5]])(implicit F: Sync[F]): HttpApp[F]

Wrap the given traced HTTP4s routes and upon receiving requests create a new trace and pass the root span to the routes

Wrap the given traced HTTP4s routes and upon receiving requests create a new trace and pass the root span to the routes

Attributes

def removeNumericPathSegments(uri: Uri): String

Given a URI produce its path but with any segments containing only two or more numbers replace with an underscore. This is to stop things like Account IDs showing up in URLs

Given a URI produce its path but with any segments containing only two or more numbers replace with an underscore. This is to stop things like Account IDs showing up in URLs

Attributes