Skip to content

Commit bd5bdf1

Browse files
committed
leave only span reporter here
1 parent 1b5ef14 commit bd5bdf1

17 files changed

Lines changed: 228 additions & 222 deletions

‎README.md‎

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,53 @@
1-
# Erlang library / app template
2-
3-
## Features
4-
- elvis;
5-
- reasonable .dir-locals;
6-
- edown;
7-
- README.md generated from overview.md;
8-
- coveralls integration;
9-
- checks script - runs elvis, dialyzer and eunit;
10-
- Travis integration (using the same checks script);
11-
- Easily manage versions and tags with `bin/increment-version`;
12-
- Git precommit hook (again runs checks script).
1+
2+
3+
# opencensus_erlang_prometheus #
4+
5+
Copyright (c) 2018 Ilya Khaprov <<i.khaprov@gmail.com>>.
6+
7+
__Version:__ 0.0.1
8+
9+
[![Hex.pm][Hex badge]][Hex link]
10+
[![Hex.pm Downloads][Hex downloads badge]][Hex link]
11+
[![Build Status][Travis badge]][Travis link]
12+
[![Coverage Status][Coveralls badge]][Coveralls link]
13+
14+
## Contributing
15+
16+
Section order:
17+
18+
- Types
19+
- Macros
20+
- Callbacks
21+
- Public API
22+
- Deprecations
23+
- Private Parts
24+
25+
Install the `git` pre-commit hook:
26+
27+
```bash
28+
29+
./bin/pre-commit.sh install
30+
31+
```
32+
33+
The pre-commit check can be skipped by passing `--no-verify` to `git commit`.
1334

1435
## License
1536

1637
MIT
38+
39+
[Hex badge]: https://img.shields.io/hexpm/v/opencensus_erlang_prometheus.svg?maxAge=2592000?style=plastic
40+
[Hex link]: https://hex.pm/packages/opencensus_erlang_prometheus
41+
[Hex downloads badge]: https://img.shields.io/hexpm/dt/opencensus_erlang_prometheus.svg?maxAge=2592000
42+
[Travis badge]: https://travis-ci.org/deadtrickster/opencensus_erlang_prometheus.svg?branch=version-3
43+
[Travis link]: https://travis-ci.org/deadtrickster/opencensus_erlang_prometheus
44+
[Coveralls badge]: https://coveralls.io/repos/github/deadtrickster/opencensus_erlang_prometheus/badge.svg?branch=master
45+
[Coveralls link]: https://coveralls.io/github/deadtrickster/opencensus_erlang_prometheus?branch=master
46+
47+
48+
## Modules ##
49+
50+
51+
<table width="100%" border="0" summary="list of modules">
52+
<tr><td><a href="https://github.com/deadtrickster/opencensus-erlang-prometheus/blob/master/doc/oc_prometheus_reporter.md" class="module">oc_prometheus_reporter</a></td></tr></table>
53+

‎doc/README.md‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
3+
# opencensus_erlang_prometheus #
4+
5+
Copyright (c) 2018 Ilya Khaprov <<i.khaprov@gmail.com>>.
6+
7+
__Version:__ 0.0.1
8+
9+
[![Hex.pm][Hex badge]][Hex link]
10+
[![Hex.pm Downloads][Hex downloads badge]][Hex link]
11+
[![Build Status][Travis badge]][Travis link]
12+
[![Coverage Status][Coveralls badge]][Coveralls link]
13+
14+
## Contributing
15+
16+
Section order:
17+
18+
- Types
19+
- Macros
20+
- Callbacks
21+
- Public API
22+
- Deprecations
23+
- Private Parts
24+
25+
Install the `git` pre-commit hook:
26+
27+
```bash
28+
29+
./bin/pre-commit.sh install
30+
31+
```
32+
33+
The pre-commit check can be skipped by passing `--no-verify` to `git commit`.
34+
35+
## License
36+
37+
MIT
38+
39+
[Hex badge]: https://img.shields.io/hexpm/v/opencensus_erlang_prometheus.svg?maxAge=2592000?style=plastic
40+
[Hex link]: https://hex.pm/packages/opencensus_erlang_prometheus
41+
[Hex downloads badge]: https://img.shields.io/hexpm/dt/opencensus_erlang_prometheus.svg?maxAge=2592000
42+
[Travis badge]: https://travis-ci.org/deadtrickster/opencensus_erlang_prometheus.svg?branch=version-3
43+
[Travis link]: https://travis-ci.org/deadtrickster/opencensus_erlang_prometheus
44+
[Coveralls badge]: https://coveralls.io/repos/github/deadtrickster/opencensus_erlang_prometheus/badge.svg?branch=master
45+
[Coveralls link]: https://coveralls.io/github/deadtrickster/opencensus_erlang_prometheus?branch=master
46+
47+
48+
## Modules ##
49+
50+
51+
<table width="100%" border="0" summary="list of modules">
52+
<tr><td><a href="oc_prometheus_reporter.md" class="module">oc_prometheus_reporter</a></td></tr></table>
53+

‎doc/edoc-info‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
%% encoding: UTF-8
2+
{application,opencensus_erlang_prometheus}.
3+
{modules,[oc_prometheus_reporter]}.

‎doc/erlang.png‎

2.06 KB
Loading

‎doc/oc_prometheus_reporter.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
3+
# Module oc_prometheus_reporter #
4+
* [Function Index](#index)
5+
* [Function Details](#functions)
6+
7+
__Behaviours:__ [`oc_reporter`](oc_reporter.md).
8+
9+
<a name="index"></a>
10+
11+
## Function Index ##
12+
13+
14+
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#init-1">init/1</a></td><td></td></tr><tr><td valign="top"><a href="#report-2">report/2</a></td><td></td></tr></table>
15+
16+
17+
<a name="functions"></a>
18+
19+
## Function Details ##
20+
21+
<a name="init-1"></a>
22+
23+
### init/1 ###
24+
25+
`init(Config) -> any()`
26+
27+
<a name="report-2"></a>
28+
29+
### report/2 ###
30+
31+
`report(Spans, Opts) -> any()`
32+

‎doc/overview.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@copyright 2017 Ilya Khaprov <<i.khaprov@gmail.com>>.
1+
@copyright 2018 Ilya Khaprov <<i.khaprov@gmail.com>>.
22
@title opencensus_erlang_prometheus
33
@version 0.0.1
44

‎doc/stylesheet.css‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/* standard EDoc style sheet */
2+
body {
3+
font-family: Verdana, Arial, Helvetica, sans-serif;
4+
margin-left: .25in;
5+
margin-right: .2in;
6+
margin-top: 0.2in;
7+
margin-bottom: 0.2in;
8+
color: #000000;
9+
background-color: #ffffff;
10+
}
11+
h1,h2 {
12+
margin-left: -0.2in;
13+
}
14+
div.navbar {
15+
background-color: #add8e6;
16+
padding: 0.2em;
17+
}
18+
h2.indextitle {
19+
padding: 0.4em;
20+
background-color: #add8e6;
21+
}
22+
h3.function,h3.typedecl {
23+
background-color: #add8e6;
24+
padding-left: 1em;
25+
}
26+
div.spec {
27+
margin-left: 2em;
28+
background-color: #eeeeee;
29+
}
30+
a.module {
31+
text-decoration:none
32+
}
33+
a.module:hover {
34+
background-color: #eeeeee;
35+
}
36+
ul.definitions {
37+
list-style-type: none;
38+
}
39+
ul.index {
40+
list-style-type: none;
41+
background-color: #eeeeee;
42+
}
43+
44+
/*
45+
* Minor style tweaks
46+
*/
47+
ul {
48+
list-style-type: square;
49+
}
50+
table {
51+
border-collapse: collapse;
52+
}
53+
td {
54+
padding: 3
55+
}

‎mix.exs‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule OpencensusErlangPrometheus.Mixfile do
33

44
def project do
55
[app: :opencensus_erlang_prometheus,
6-
version: "0.0.1",
6+
version: "0.1.0",
77
elixir: "~> 1.4",
88
deps: deps(),
99
description: description(),
@@ -31,9 +31,10 @@ defmodule OpencensusErlangPrometheus.Mixfile do
3131
end
3232

3333
defp deps do
34-
[{:prometheus, "~> 3.4", manager: :rebar3},
35-
{:opencensus, git: "https://github.com/deadtrickster/opencensus-erlang", branch: "dev"},
36-
{:credo, "~> 0.8.7", only: [:dev, :test]},
37-
{:excoveralls, "~> 0.7.3", only: [:test]}]
34+
[{:prometheus, "~> 4.1"},
35+
{:opencensus, "~> 0.3"},
36+
37+
# test
38+
{:credo, "~> 0.8.7", only: [:dev, :test]}]
3839
end
3940
end

‎mix.lock‎

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
%{"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"},
2-
"certifi": {:hex, :certifi, "2.0.0", "a0c0e475107135f76b8c1d5bc7efb33cd3815cb3cf3dea7aefdd174dabead064", [:rebar3], [], "hexpm"},
3-
"credo": {:hex, :credo, "0.8.7", "b1aad9cd3aa7acdbaea49765bfc9f1605dc4555023a037dc9ea7a70539615bc8", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}], "hexpm"},
4-
"excoveralls": {:hex, :excoveralls, "0.7.3", "6c05cc452e6ebfc347fccc0de7339e9bc1ed8678c52765353303fa0d2c44c70d", [:mix], [{:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: false]}, {:hackney, ">= 0.12.0", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm"},
5-
"exjsx": {:hex, :exjsx, "4.0.0", "60548841e0212df401e38e63c0078ec57b33e7ea49b032c796ccad8cde794b5c", [:mix], [{:jsx, "~> 2.8.0", [hex: :jsx, repo: "hexpm", optional: false]}], "hexpm"},
6-
"hackney": {:hex, :hackney, "1.9.0", "51c506afc0a365868469dcfc79a9d0b94d896ec741cfd5bd338f49a5ec515bfe", [:rebar3], [{:certifi, "2.0.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "5.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.1", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm"},
7-
"idna": {:hex, :idna, "5.1.0", "d72b4effeb324ad5da3cab1767cb16b17939004e789d8c0ad5b70f3cea20c89a", [:rebar3], [{:unicode_util_compat, "0.3.1", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm"},
8-
"jsx": {:hex, :jsx, "2.8.2", "7acc7d785b5abe8a6e9adbde926a24e481f29956dd8b4df49e3e4e7bcc92a018", [:mix, :rebar3], [], "hexpm"},
9-
"metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm"},
10-
"mimerl": {:hex, :mimerl, "1.0.2", "993f9b0e084083405ed8252b99460c4f0563e41729ab42d9074fd5e52439be88", [:rebar3], [], "hexpm"},
11-
"opencensus": {:git, "https://github.com/deadtrickster/opencensus-erlang", "7e248db230955fb3c441627dd2c7375aa67eb5a5", [branch: "dev"]},
12-
"prometheus": {:hex, :prometheus, "3.4.1", "90c4f37670c4dc7de9319a0c310bf12cb619715ebe285f583f3b46d955ee8f81", [:mix, :rebar3], [], "hexpm"},
1+
%{
2+
"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"},
3+
"credo": {:hex, :credo, "0.8.10", "261862bb7363247762e1063713bb85df2bbd84af8d8610d1272cd9c1943bba63", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}], "hexpm"},
4+
"ctx": {:hex, :ctx, "0.4.1", "e4297dd25ccde992bc7de298f514beacd0a44faa9126a1f2567306d94c519a13", [:rebar3], [], "hexpm"},
5+
"jsx": {:hex, :jsx, "2.9.0", "d2f6e5f069c00266cad52fb15d87c428579ea4d7d73a33669e12679e203329dd", [:mix, :rebar3], [], "hexpm"},
6+
"opencensus": {:hex, :opencensus, "0.3.0", "444061b6e5e4d07f0a00144312c19a6fcf0b58f743bf267994d0def6c95ece54", [:rebar3], [{:ctx, "~> 0.4.1", [hex: :ctx, repo: "hexpm", optional: false]}, {:jsx, "~> 2.9.0", [hex: :jsx, repo: "hexpm", optional: false]}, {:prometheus, "~> 4.1.0", [hex: :prometheus, repo: "hexpm", optional: false]}, {:wts, "~> 0.3", [hex: :wts, repo: "hexpm", optional: false]}], "hexpm"},
7+
"prometheus": {:hex, :prometheus, "4.1.0", "3bb851df031c204d1c94bf55fff2ecc9ab834f0236e64c080c9d5945b48d428d", [:mix, :rebar3], [], "hexpm"},
138
"rfc3339": {:hex, :rfc3339, "0.9.0", "2075653dc9407541c84b1e15f8bda2abe95fb17c9694025e079583f2d19c1060", [:mix, :rebar], [], "hexpm"},
14-
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.1", "28a4d65b7f59893bc2c7de786dec1e1555bd742d336043fe644ae956c3497fbe", [:make, :rebar], [], "hexpm"},
15-
"unicode_util_compat": {:hex, :unicode_util_compat, "0.3.1", "a1f612a7b512638634a603c8f401892afbf99b8ce93a45041f8aaca99cadb85e", [:rebar3], [], "hexpm"},
16-
"wts": {:hex, :wts, "0.3.0", "5cdf22c775cb1ebae24c326a5db6074d753c42f4bd12a9aa47cc62d3e2c71ad1", [:rebar3], [{:rfc3339, "~>0.9.0", [hex: :rfc3339, repo: "hexpm", optional: false]}], "hexpm"}}
9+
"wts": {:hex, :wts, "0.3.0", "5cdf22c775cb1ebae24c326a5db6074d753c42f4bd12a9aa47cc62d3e2c71ad1", [:rebar3], [{:rfc3339, "~>0.9.0", [hex: :rfc3339, repo: "hexpm", optional: false]}], "hexpm"},
10+
}

‎rebar.config‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
{post_hooks, []}.
55

6-
{deps, []}.
6+
{deps, [{prometheus, "~> 4.0"},
7+
{opencensus, "~> 0.3.0"}]}.
78
% {shell, [{apps, [opencensus_erlang_prometheus]}]}.
89
{cover_enabled, true}.
910
{cover_export_enabled, true}.
@@ -31,10 +32,7 @@
3132
"https://github.com/deadtrickster/opencensus-erlang-prometheus"}}]}]},
3233
{test, [{plugins, [{coveralls, "1.4.0"},
3334
{rebar3_elvis_plugin, "0.0.4"}]},
34-
{deps, [{prometheus, "~> 4.0"},
35-
{opencensus,
36-
{git, "https://github.com/census-instrumentation/opencensus-erlang",
37-
{branch, "master"}}}]},
35+
{deps, []},
3836
{erl_opts, [nowarn_export_all]}]},
3937
{benchmark, [{src_dirs, ["src", "benchmark"]},
4038
{deps, [{'erlang-color',

0 commit comments

Comments
 (0)