-
Notifications
You must be signed in to change notification settings - Fork 1
/
jaeger-flamegraph.cabal
82 lines (70 loc) · 2.43 KB
/
jaeger-flamegraph.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
cabal-version: 2.2
name: jaeger-flamegraph
version: 1.3.2
synopsis: Generate flamegraphs from Jaeger .json dumps.
license: BSD-3-Clause
license-file: LICENSE
author: Sam Halliday
maintainer: Sam Halliday
copyright: (c) 2018 Symbiont.io
bug-reports: https://github.com/symbiont-io/jaeger-flamegraph/pulls
tested-with: GHC ^>=8.4.4 || ^>=8.6.2
category: Testing
description:
This is a small tool to convert JSON dumps obtained from a Jaeger
server (<https://www.jaegertracing.io/>) into a format consumable
by [FlameGraph](https://github.com/brendangregg/FlameGraph).
.
First download the traces for your SERVICE limiting to LIMIT traces
.
> $ curl http://your-jaeger-installation/api/traces?service=SERVICE&limit=LIMIT > input.json
.
using the [undocumented Jaeger API](https://github.com/jaegertracing/jaeger/issues/456#issuecomment-412560321)
then use @jaeger-flamegraph@ to convert the data and send to @flamegraph.pl@
.
> $ jaeger-flamegraph -f input.json | flamegraph.pl > output.svg
.
source-repository head
type: git
location: https://github.com/symbiont-io/jaeger-flamegraph
-- https://www.haskell.org/cabal/users-guide/cabal-projectindex.html
common deps
build-depends: base ^>=4.11.1.0 || ^>=4.12.0.0
ghc-options: -Wall -Werror=missing-home-modules
build-depends:
, aeson ^>=1.4.1.0
, containers ^>=0.5.11.0 || ^>=0.6.0.1
, text ^>=1.2.3.1
default-language: Haskell2010
executable jaeger-flamegraph
import: deps
hs-source-dirs: exe
main-is: Main.hs
build-depends:
, bytestring ^>=0.10.8.2
, extra ^>=1.6.13
, jaeger-flamegraph
, optparse-applicative ^>=0.14.3.0 || ^>=0.15.0.0
ghc-options: -threaded
library
import: deps
hs-source-dirs: library
-- cabal-fmt: expand library
exposed-modules:
Jaeger.Data
Jaeger.Interval
build-depends: QuickCheck ^>=2.11.3 || ^>=2.12.6.1 || ^>=2.13.2
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: IntervalTest
build-depends:
, jaeger-flamegraph
, tasty ^>=1.1.0.4
, tasty-hspec ^>=1.1.5
, tasty-quickcheck ^>=0.10
build-tool-depends: tasty-discover:tasty-discover ^>=4.2.1
ghc-options: -threaded