on 6795822 help sign in
katip-elasticsearch/src/Katip/Scribes/ElasticSearch/Internal.hs+4−3
since splitsnapshots
unifiedsplit
@@ -28,7 +28,7 @@ import Control.Retry (RetryPolicy,
28 recovering)
28 recovering)
29import Data.Aeson
29import Data.Aeson
30import Data.ByteString.Lazy (ByteString)
30import Data.ByteString.Lazy (ByteString)
31−import Data.List.NonEmpty (NonEmpty(..))
31+import Data.List.NonEmpty (NonEmpty (..))
32import Data.Monoid ((<>))
32import Data.Monoid ((<>))
33import Data.Text (Text)
33import Data.Text (Text)
34import qualified Data.Text as T
34import qualified Data.Text as T
@@ -266,13 +266,14 @@ mkEsScribe
266 )
266 )
267 => EsScribeCfg v
267 => EsScribeCfg v
268 -> BHEnv v
268 -> BHEnv v
269+ -> (ESVersion v => proxy v -> MappingName v -> Value)
269 -> IndexName v
270 -> IndexName v
270 -- ^ Treated as a prefix if index sharding is enabled
271 -- ^ Treated as a prefix if index sharding is enabled
271 -> MappingName v
272 -> MappingName v
272 -> Severity
273 -> Severity
273 -> Verbosity
274 -> Verbosity
274 -> IO Scribe
275 -> IO Scribe
275−mkEsScribe cfg@EsScribeCfg {..} env ix mapping sev verb = do
276+mkEsScribe cfg@EsScribeCfg {..} env indexMapper ix mapping sev verb = do
276 q <- newTBMQueueIO $ unEsQueueSize essQueueSize
277 q <- newTBMQueueIO $ unEsQueueSize essQueueSize
277 endSig <- newEmptyMVar
278 endSig <- newEmptyMVar
278
279
@@ -320,7 +321,7 @@ mkEsScribe cfg@EsScribeCfg {..} env ix mapping sev verb = do
320 NoIndexSharding -> False
321 NoIndexSharding -> False
321 _ -> True
322 _ -> True
322 tpl = toIndexTemplate prx (toTemplatePattern prx (ixn <> "-*")) (Just essIndexSettings) [toJSON base]
323 tpl = toIndexTemplate prx (toTemplatePattern prx (ixn <> "-*")) (Just essIndexSettings) [toJSON base]
323− base = baseMapping prx mapping
324+ base = indexMapper prx mapping
324 ixn = fromIndexName prx ix
325 ixn = fromIndexName prx ix
325 itemJson' :: LogItem a => Item a -> Value
326 itemJson' :: LogItem a => Item a -> Value
326 itemJson' i
327 itemJson' i
stack.yaml+19−1
@@ -1,10 +1,28 @@
1−resolver: lts-11.14
1+# resolver: lts-11.14
2+resolver: lts-13.21
2packages:
3packages:
3 - katip
4 - katip
4 - katip-elasticsearch
5 - katip-elasticsearch
6+
5extra-deps:
7extra-deps:
6 - bloodhound-0.16.0.0
8 - bloodhound-0.16.0.0
9+ - containers-0.5.11.0
10+ - derive-2.6.5
11+ - libssh2-0.2.0.7
12+ - mersenne-random-1.0.0.1
13+ - open-union-0.3.0.0
14+ - proto-lens-0.5.0.0
15+ - proto-lens-protobuf-types-0.5.0.0
16+ - proto-lens-protoc-0.5.0.0
17+ - proto-lens-runtime-0.5.0.0
18+ - proto-lens-setup-0.4.0.2
19+ - binary-0.8.7.0
20+ - quickcheck-arbitrary-template-0.2.0.0
21+ - quickcheck-properties-0.1
22+ - transformers-0.5.6.2
7 - unliftio-core-0.1.2.0
23 - unliftio-core-0.1.2.0
24+ - writer-cps-transformers-0.1.1.4
25+
8flags:
26flags:
9 katip:
27 katip:
10 lib-Werror: true
28 lib-Werror: true