Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
arybczak committed Apr 11, 2024
1 parent 69d9f98 commit f58c2f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module Effectful.Tracing
module Effectful.Trace
(
-- * Effect
Trace
Expand All @@ -10,7 +10,7 @@ module Effectful.Tracing
, runNoTrace

-- * Zipkin utilities
, runZipkinTracing
, runZipkinTrace
, withZipkin

-- * Reexport
Expand Down Expand Up @@ -72,8 +72,8 @@ withZipkin settings f = do
-- | Runs a 'TraceT' action, sampling spans appropriately. Note that this method does not publish
-- spans on its own; to do so, either call 'publish' manually or specify a positive
-- 'settingsPublishPeriod' to publish in the background.
runZipkinTracing :: (IOE :> es) => Zipkin -> Eff (Trace : es) a -> Eff es a
runZipkinTracing zipkin = runTrace (zipkinTracer zipkin)
runZipkinTrace :: (IOE :> es) => Zipkin -> Eff (Trace : es) a -> Eff es a
runZipkinTrace zipkin = runTrace (zipkinTracer zipkin)

-- | Orphan, canonical instance.
instance Trace :> es => MonadTrace (Eff es) where
Expand Down
2 changes: 1 addition & 1 deletion tracing-effectful/tracing-effectful.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ common language

library
import: language
exposed-modules: Effectful.Tracing
exposed-modules: Effectful.Trace
build-depends:
, base <5
, effectful-core >=1.0.0.0 && <3.0.0.0
Expand Down

0 comments on commit f58c2f7

Please sign in to comment.