-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I just had the annoyance of adapting an application that doesn't use tracing to a library that does; I need a no-op Tracer to satisfy a MonadTracer constraint.
It would be neat if MonadTracer were actually something like getTracer :: m (Maybe Tracer) rather than m Tracer.
Alternatively it would be nice to just have a utility for easily creating a do-nothing Tracer.
noTracer = do
tracerProvider <- createTracerProvider [] emptyTracerProviderOptions
pure $ makeTracer tracerProvider "" tracerOptionsMetadata
Metadata
Assignees
Labels
No labels