ApolloTracing

caliban.wrappers.ApolloTracing
object ApolloTracing

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Execution(resolvers: List[Resolver])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Parsing(startOffset: Long, durationNanos: Long)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Resolver(path: List[PathValue], parentType: String, fieldName: String, returnType: String, startOffset: Long, durationNanos: Long)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Resolver

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Resolver.type
case class Tracing(version: Int, startTime: Long, endTime: Long, startTimeMonotonic: Long, durationNanos: Long, parsing: Parsing, validation: Validation, execution: Execution)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Validation(startOffset: Long, durationNanos: Long)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apolloTracing(excludePureFields: Boolean): EffectfulWrapper[Any]

Returns a wrapper that adds tracing information to every response following Apollo Tracing format: https://github.com/apollographql/apollo-tracing.

Returns a wrapper that adds tracing information to every response following Apollo Tracing format: https://github.com/apollographql/apollo-tracing.

Value parameters

excludePureFields

Optionally disable tracing of pure fields. Setting this to true can help improve performance at the cost of generating incomplete traces. WARNING: Use this with caution as it could potentially cause issues if the tracing client expects all queried fields to be included in the traces

Attributes

See also

enabled and enabledWith to optionally control whether tracing is enabled for the current scope This can be used in combination with HttpInterpreter.configure from the caliban-tapir module or http middlewares to enable / disable tracing based on the request params (e.g., headers)

def enabled(value: Boolean): ZIO[Scope, Nothing, Unit]

Disable or enable tracing for the current scope

Disable or enable tracing for the current scope

Attributes

def enabledWith[R, E, A](value: Boolean)(zio: ZIO[R, E, A]): ZIO[R, E, A]

Disable or enable tracing for the provided effect

Disable or enable tracing for the provided effect

Attributes