Add migration guide for #9718 (#10578)
[cabal.git] / Cabal-tests / tests / ParserTests / regressions / jaeger-flamegraph.cabal
blobc5b8162438f0628eaccfcc2078e7355e28b25257
1 cabal-version:       2.2
2 name:                jaeger-flamegraph
3 version:             1.0.0
4 synopsis:            Generate flamegraphs from Jaeger .json dumps.
5 license:             BSD-3-Clause
6 license-file:        LICENSE
7 author:              Sam Halliday
8 maintainer:          Sam Halliday
9 copyright:           (c) 2018 Symbiont.io
10 bug-reports:         https://github.com/symbiont-io/jaeger-flamegraph/pulls
11 tested-with:         GHC ^>= 8.4.4 || ^>= 8.6.2
12 category:            Testing
13 description:
14   This is a small tool to convert JSON dumps obtained from a Jaeger
15   server (<https://www.jaegertracing.io/>) into a format consumable
16   by [FlameGraph](https://github.com/brendangregg/FlameGraph).
17   .
18   First download the traces for your SERVICE limiting to LIMIT traces
19   .
20   > $ curl http://your-jaeger-installation/api/traces?service=SERVICE&limit=LIMIT > input.json
21   .
22   using the [undocumented Jaeger API](https://github.com/jaegertracing/jaeger/issues/456#issuecomment-412560321)
23   then use @jaeger-flamegraph@ to convert the data and send to @flamegraph.pl@
24   .
25   > $ jaeger-flamegraph -f input.json | flamegraph.pl > output.svg
26   .
28 source-repository head
29   type: git
30   location: https://github.com/symbiont-io/jaeger-flamegraph
32 -- https://www.haskell.org/cabal/users-guide/cabal-projectindex.html
34 common deps
35   build-depends:    , base ^>= 4.11.1.0 || ^>= 4.12.0.0
36   ghc-options:        -Wall
37                       -Werror=missing-home-modules
38   default-language:   Haskell2010
40 executable jaeger-flamegraph
41   import:             deps
42   hs-source-dirs:     exe
43   main-is:            Main.hs
44   build-depends:    , jaeger-flamegraph
45                     , bytestring           ^>= 0.10.8.2
46                     , containers           ^>= 0.6.0.1
47                     , extra                ^>= 1.6.13
48                     , aeson                ^>= 1.4.1.0
49                     , optparse-applicative ^>= 0.14.3.0
50                     , text                 ^>= 1.2.3.1
51   ghc-options:        -threaded
53 library
54   import:             deps
55   hs-source-dirs:     library
56   exposed-modules:    Interval
57   build-depends:    , QuickCheck ^>= 2.12.6.1
59 test-suite            tests
60   import:             deps
61   hs-source-dirs:     test
62   type:               exitcode-stdio-1.0
63   main-is:            Driver.hs
64   other-modules:      IntervalTest
65   build-depends:    , jaeger-flamegraph
66                     , tasty            ^>= 1.1.0.4
67                     , tasty-hspec      ^>= 1.1.5
68                     , tasty-quickcheck ^>= 0.10
69   build-tool-depends: tasty-discover:tasty-discover ^>= 4.2.1
70   ghc-options:        -threaded