Safe Haskell | None |
---|---|
Language | Haskell2010 |
A module for creating great logs in code that sends commands to Redis.
Documentation
A type describing redis commands.
emptyDetails { commands = [ "GET weather" ] , host = Just "my-redis-host" }
Instances
Generic Details Source # | |
ToJSON Details Source # | |
Defined in Log.RedisCommands | |
TracingSpanDetails Details Source # | |
Defined in Log.RedisCommands toTracingSpanDetails :: Details -> SomeTracingSpanDetails fromTracingSpanDetails :: SomeTracingSpanDetails -> Maybe Details | |
type Rep Details Source # | |
Defined in Log.RedisCommands type Rep Details = D1 ('MetaData "Details" "Log.RedisCommands" "nri-observability-0.1.1.3-inplace" 'False) (C1 ('MetaCons "Details" 'PrefixI 'True) (S1 ('MetaSel ('Just "commands") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (List Text)) :*: (S1 ('MetaSel ('Just "host") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) |
emptyDetails :: Details Source #
An empty details value to be modified by you.
commands :: Details -> List Text Source #
The commands that were sent to redis. Because Redis support for pipelining and transactions it's possible for one logical operation from the application perspective to contain multiple commands.
These commands are expected not to contain any sensitive information. Make sure sensitive values are mocked out, for example by replacing them with *****.