This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
datadog-tracing.cabal
122 lines (105 loc) · 3.37 KB
/
datadog-tracing.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
cabal-version: 2.2
name: datadog-tracing
version: 1.5.0
synopsis: Datadog tracing client and mock agent.
license: BSD-3-Clause
license-file: LICENSE
author: Sam Halliday
maintainer: Sam Halliday
copyright: (c) 2019 Symbiont.io
bug-reports: https://github.com/symbiont-io/haskell-datadog/pulls
tested-with: GHC ^>=8.4.4 || ^>=8.6.3
category: Logging
description:
An HTTP client to publish tracing to
a [datadog agent](https://docs.datadoghq.com/agent/?tab=agentv6).
.
In addition, an HTTP server is provided that can be used in place of
the official agent, that does not communicate with upstream datadog
servers, allowing replay of all data from a `GET /dump` endpoint,
compatible with `jaeger-flamegraph`.
source-repository head
type: git
location: https://github.com/symbiont-io/haskell-datadog
-- https://www.haskell.org/cabal/users-guide/cabal-projectindex.html
flag manual
description: Enable building the manual test binary
manual: True
default: False
common deps
build-depends:
, aeson ^>=1.4.1.0
, base ^>=4.11.1.0 || ^>=4.12.0.0
, bytestring ^>=0.10.8.2
, containers ^>=0.5.11.0 || ^>=0.6.0.1
, jaeger-flamegraph ^>=1.3.0
, mtl ^>=2.2.2
, servant >=0.14 && <0.16
, text ^>=1.2.3.1
ghc-options: -Wall -Werror=missing-home-modules
default-language: Haskell2010
library
import: deps
hs-source-dirs: library internal
-- cabal-fmt: expand library
exposed-modules:
Datadog.Agent
Datadog.Client
Datadog.Jaeger
-- cabal-fmt: expand internal
other-modules: Servant.MsgPack
build-depends:
, ffunctor ^>=1.1.0 || ^>=1.2.0
, generic-random ^>=1.2.0.0
, http-media ^>=0.7.1.3
, msgpack ^>=1.1.0.0
, msgpack-aeson ^>=0.2.0.0
, prettyprinter ^>=1.2.1
, QuickCheck ^>=2.11.3 || ^>=2.12.6.1 || ^>=2.13.2
, quickcheck-text ^>=0.1.2.1
, refined ^>=0.2.3.0 || ^>=0.4
, scientific ^>=0.3.6.2
, servant-client >=0.14 && <0.16
, time ^>=1.8.0.2
, unordered-containers ^>=0.2.9.0
, vector ^>=0.12.0.2
executable datadog-agent
import: deps
hs-source-dirs: exe
main-is: Main.hs
build-depends:
, data-default ^>=0.7.1.1
, datadog-tracing
, servant-server >=0.14 && <0.16
, wai-extra ^>=3.0.24
, warp ^>=3.2.25
ghc-options: -threaded
executable manual-test
import: deps
hs-source-dirs: manual-test
main-is: Main.hs
if flag(manual)
build-depends:
, binary
, cryptonite ^>=0.25
, datadog-tracing
, http-client
, servant-client
, time
ghc-options: -threaded
else
buildable: False
test-suite tests
import: deps
hs-source-dirs: test
type: exitcode-stdio-1.0
main-is: Driver.hs
-- cabal-fmt: expand test -Driver
other-modules: Datadog.AgentTest
build-depends:
, datadog-tracing
, hspec-golden-aeson ^>=0.7.0.0
, tasty ^>=1.1.0.4
, tasty-hspec ^>=1.1.5.1
build-tool-depends: tasty-discover:tasty-discover ^>=4.2.1
ghc-options: -threaded