ghcide-2.8.0.0: The core of an IDE
Safe HaskellSafe-Inferred
LanguageGHC2021

Development.IDE.Core.Tracing

Synopsis

Documentation

otTracedHandler Source #

Arguments

:: MonadUnliftIO m 
=> String

Message type

-> String

Message label

-> (SpanInFlight -> m a) 
-> m a 

Trace a handler using OpenTelemetry. Adds various useful info into tags in the OpenTelemetry span.

otTracedAction Source #

Arguments

:: Show k 
=> k

The Action's Key

-> NormalizedFilePath

Path to the file the action was run for

-> RunMode 
-> (a -> String) 
-> (([FileDiagnostic] -> Action ()) -> Action (RunResult a))

The action

-> Action (RunResult a) 

Trace a Shake action using opentelemetry.

withTrace :: (MonadMask m, MonadIO m) => String -> ((String -> String -> m ()) -> m a) -> m a Source #

withEventTrace :: (MonadMask m, MonadIO m) => String -> ((ByteString -> m ()) -> m a) -> m a Source #

withTelemetryRecorder :: (MonadIO m, MonadMask m) => (Recorder (WithPriority (Doc a)) -> m c) -> m c Source #

Returns a logger that produces telemetry events in a single span