File tree 1 file changed +2
-2
lines changed
ghcide/src/Development/IDE/Core
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import Ide.Types (PluginId (..))
46
46
import Language.LSP.Types (NormalizedFilePath ,
47
47
fromNormalizedFilePath )
48
48
import Numeric.Natural (Natural )
49
- import OpenTelemetry.Eventlog (Instrument , SpanInFlight ,
49
+ import OpenTelemetry.Eventlog (Instrument , SpanInFlight ( .. ) ,
50
50
Synchronicity (Asynchronous ),
51
51
addEvent , beginSpan , endSpan ,
52
52
mkValueObserver , observe ,
@@ -69,7 +69,7 @@ otTracedHandler requestType label act
69
69
-- Add an event so all requests can be quickly seen in the viewer without searching
70
70
runInIO <- askRunInIO
71
71
liftIO $ withSpan (fromString name) (\ sp -> addEvent sp " " (fromString $ name <> " received" ) >> runInIO (act sp))
72
- | otherwise = act
72
+ | otherwise = act ( SpanInFlight 0 )
73
73
74
74
otSetUri :: SpanInFlight -> Uri -> IO ()
75
75
otSetUri sp (Uri t) = setTag sp " uri" (encodeUtf8 t)
You can’t perform that action at this time.
0 commit comments