on master help sign in
Some package cleanup to get the full build working
commit7c6943a9f2723d9812d41745041cb95d5acf2051 authorMichael Xavier <michael@michaelxavier.net> dateTue 18 Dec 2018, 11:39 (8 years ago) parentc53de11
3 files changed+44−11
katip-datadog/LICENSE+30 katip-datadog/katip-datadog.cabal+2 katip-datadog/src/Katip/Scribes/Datadog/TCP.hs+12−11
katip-datadog/LICENSEnew file+30
@@ -0,0 +1,30 @@
1+Copyright (c) 2018, Soostone Inc
2+
3+All rights reserved.
4+
5+Redistribution and use in source and binary forms, with or without
6+modification, are permitted provided that the following conditions are met:
7+
8+ * Redistributions of source code must retain the above copyright
9+ notice, this list of conditions and the following disclaimer.
10+
11+ * Redistributions in binary form must reproduce the above
12+ copyright notice, this list of conditions and the following
13+ disclaimer in the documentation and/or other materials provided
14+ with the distribution.
15+
16+ * Neither the name of Ozgun Ataman nor the names of other
17+ contributors may be used to endorse or promote products derived
18+ from this software without specific prior written permission.
19+
20+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
katip-datadog/katip-datadog.cabal+2
@@ -33,6 +33,8 @@ library
3333 build-depends:
3434 --TODO: shed a lot of these
3535 base >=4.4.0.0 && <5
36+ , aeson >= 1.0.0.0
37+ , bytestring
3638 , katip >= 0.2.0.0 && < 0.8
3739 , text
3840 , connection
katip-datadog/src/Katip/Scribes/Datadog/TCP.hs+12−11
@@ -1,3 +1,4 @@
1+{-# LANGUAGE OverloadedStrings #-}
12-- | Creates a scribe as a Custom Forwarder for Datadog that sends log
23-- messages over TCP via their TLS endpoint.
34module Katip.Scribes.Datadog.TCP
@@ -77,14 +78,14 @@ data DataDogScribeSettings = DataDogScribeSettings
7778-- authentication.
7879directAPIConnectionParams :: C.ConnectionParams
7980directAPIConnectionParams = C.ConnectionParams
80− { connectionHostname = "intake.logs.datadoghq.com"
81− , connectionPort = 10516
82− , connectionUseSecure = Just $ C.TLSSettingsSimple
83− { settingDisableCertificateValidation = False
84− , settingDisableSession = False
85− , settingUseServerName = False
81+ { C.connectionHostname = "intake.logs.datadoghq.com"
82+ , C.connectionPort = 10516
83+ , C.connectionUseSecure = Just $ C.TLSSettingsSimple
84+ { C.settingDisableCertificateValidation = False
85+ , C.settingDisableSession = False
86+ , C.settingUseServerName = False
8687 }
87− , connectionUseSocks = Nothing
88+ , C.connectionUseSocks = Nothing
8889 }
8990
9091
@@ -94,10 +95,10 @@ directAPIConnectionParams = C.ConnectionParams
9495-- handled by the agent configuration.
9596localAgentConnectionParams :: Net.PortNumber -> C.ConnectionParams
9697localAgentConnectionParams port = C.ConnectionParams
97− { connectionHostname = "127.0.0.1"
98− , connectionPort = port
99− , connectionUseSecure = Nothing
100− , connectionUseSocks = Nothing
98+ { C.connectionHostname = "127.0.0.1"
99+ , C.connectionPort = port
100+ , C.connectionUseSecure = Nothing
101+ , C.connectionUseSocks = Nothing
101102 }
102103
103104