Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ZipkinOptions
- zipkinOptions :: Manager -> Endpoint -> ZipkinOptions
- zoManager :: Lens' ZipkinOptions Manager
- zoLocalEndpoint :: Lens' ZipkinOptions Endpoint
- zoEndpoint :: Lens' ZipkinOptions String
- zoLogfmt :: forall t. Foldable t => Getter ZipkinOptions (t LogField -> Builder)
- zoErrorLog :: Lens' ZipkinOptions (Builder -> IO ())
- defaultZipkinEndpoint :: String
- defaultZipkinAddr :: Addr 'HTTP
- data Zipkin
- newZipkin :: ZipkinOptions -> IO Zipkin
- closeZipkin :: Zipkin -> IO ()
- withZipkin :: (MonadIO m, MonadMask m) => ZipkinOptions -> (Zipkin -> m a) -> m a
- zipkinHttpReporter :: MonadIO m => Zipkin -> FinishedSpan -> m ()
- data Endpoint = Endpoint {}
- newManager :: ManagerSettings -> IO Manager
- defaultManagerSettings :: ManagerSettings
Documentation
data ZipkinOptions Source #
zipkinOptions :: Manager -> Endpoint -> ZipkinOptions Source #
zoErrorLog :: Lens' ZipkinOptions (Builder -> IO ()) Source #
defaultZipkinAddr :: Addr 'HTTP #
closeZipkin :: Zipkin -> IO () Source #
withZipkin :: (MonadIO m, MonadMask m) => ZipkinOptions -> (Zipkin -> m a) -> m a Source #
zipkinHttpReporter :: MonadIO m => Zipkin -> FinishedSpan -> m () Source #
Instances
ToJSON Endpoint | |
Generic Endpoint | |
Show Endpoint | |
Eq Endpoint | |
type Rep Endpoint | |
Defined in OpenTracing.Zipkin.Types type Rep Endpoint = D1 ('MetaData "Endpoint" "OpenTracing.Zipkin.Types" "opentracing-zipkin-common-0.3.0-CtZWGIGx5jfAXlUVzzCoSp" 'False) (C1 ('MetaCons "Endpoint" 'PrefixI 'True) ((S1 ('MetaSel ('Just "serviceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ipv4") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 IPv4)) :*: (S1 ('MetaSel ('Just "ipv6") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IPv6)) :*: S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Port))))) |
newManager :: ManagerSettings -> IO Manager #
Create a Manager
. The Manager
will be shut down automatically via
garbage collection.
Creating a new Manager
is a relatively expensive operation, you are
advised to share a single Manager
between requests instead.
The first argument to this function is often defaultManagerSettings
,
though add-on libraries may provide a recommended replacement.
Since 0.1.0
defaultManagerSettings :: ManagerSettings #
Default value for ManagerSettings
.
Note that this value does not have support for SSL/TLS. If you need to
make any https connections, please use the http-client-tls package, which
provides a tlsManagerSettings
value.
Since 0.1.0