on 7753427 help sign in
2 files changed+26−4
since splitsnapshots
unifiedsplit
katip-elasticsearch/src/Katip/Scribes/ElasticSearch/Internal.hs+4−3 stack.yaml+22−1
katip-elasticsearch/src/Katip/Scribes/ElasticSearch/Internal.hs+4−3
@@ -28,7 +28,7 @@ import Control.Retry (RetryPolicy,
2828 recovering)
2929import Data.Aeson
3030import Data.ByteString.Lazy (ByteString)
31−import Data.List.NonEmpty (NonEmpty(..))
31+import Data.List.NonEmpty (NonEmpty (..))
3232import Data.Monoid ((<>))
3333import Data.Text (Text)
3434import qualified Data.Text as T
@@ -266,13 +266,14 @@ mkEsScribe
266266 )
267267 => EsScribeCfg v
268268 -> BHEnv v
269+ -> (ESVersion v => proxy v -> MappingName v -> Value)
269270 -> IndexName v
270271 -- ^ Treated as a prefix if index sharding is enabled
271272 -> MappingName v
272273 -> Severity
273274 -> Verbosity
274275 -> IO Scribe
275−mkEsScribe cfg@EsScribeCfg {..} env ix mapping sev verb = do
276+mkEsScribe cfg@EsScribeCfg {..} env indexMapper ix mapping sev verb = do
276277 q <- newTBMQueueIO $ unEsQueueSize essQueueSize
277278 endSig <- newEmptyMVar
278279
@@ -320,7 +321,7 @@ mkEsScribe cfg@EsScribeCfg {..} env ix mapping sev verb = do
320321 NoIndexSharding -> False
321322 _ -> True
322323 tpl = toIndexTemplate prx (toTemplatePattern prx (ixn <> "-*")) (Just essIndexSettings) [toJSON base]
323− base = baseMapping prx mapping
324+ base = indexMapper prx mapping
324325 ixn = fromIndexName prx ix
325326 itemJson' :: LogItem a => Item a -> Value
326327 itemJson' i
stack.yaml+22−1
@@ -1,10 +1,31 @@
1−resolver: lts-11.14
1+# resolver: lts-11.14
2+nix:
3+ packages:
4+ - zlib
5+resolver: lts-13.21
26packages:
37 - katip
48 - katip-elasticsearch
9+
510extra-deps:
611 - bloodhound-0.16.0.0
12+ - containers-0.5.11.0
13+ - derive-2.6.5
14+ - libssh2-0.2.0.7
15+ - mersenne-random-1.0.0.1
16+ - open-union-0.3.0.0
17+ - proto-lens-0.5.0.0
18+ - proto-lens-protobuf-types-0.5.0.0
19+ - proto-lens-protoc-0.5.0.0
20+ - proto-lens-runtime-0.5.0.0
21+ - proto-lens-setup-0.4.0.2
22+ - binary-0.8.7.0
23+ - quickcheck-arbitrary-template-0.2.0.0
24+ - quickcheck-properties-0.1
25+ - transformers-0.5.6.2
726 - unliftio-core-0.1.2.0
27+ - writer-cps-transformers-0.1.1.4
28+
829flags:
930 katip:
1031 lib-Werror: true