Skip to content

Commit 982db73

Browse files
committed
style: cleanup lint errors
1 parent 5ca1135 commit 982db73

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

rebar.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{erl_opts, [debug_info]}.
22
{deps, [{opencensus, "~> 0.6.0"},
33
{jsx, "~> 2.9"}]}.
4-
{project_plugins, [rebar3_lint, rebar3_hex]}.
4+
5+
{project_plugins, [rebar3_lint,
6+
covertool]}.
57

68
{shell, [{config, "config/dev.conf"}]}.
79

rebar.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{"1.1.0",
2-
[{<<"counters">>,{pkg,<<"counters">>,<<"0.2.0">>},1},
3-
{<<"ctx">>,{pkg,<<"ctx">>,<<"0.4.1">>},1},
2+
[{<<"counters">>,{pkg,<<"counters">>,<<"0.2.1">>},1},
3+
{<<"ctx">>,{pkg,<<"ctx">>,<<"0.5.0">>},1},
44
{<<"jsx">>,{pkg,<<"jsx">>,<<"2.9.0">>},0},
55
{<<"opencensus">>,{pkg,<<"opencensus">>,<<"0.6.0">>},0},
66
{<<"rfc3339">>,{pkg,<<"rfc3339">>,<<"0.9.0">>},2},
77
{<<"wts">>,{pkg,<<"wts">>,<<"0.3.0">>},1}]}.
88
[
99
{pkg_hash,[
10-
{<<"counters">>, <<"EF00F33404FDD9BD233F9B7966233222469E4560DBE1C712EA2E1AB63BB8FEFD">>},
11-
{<<"ctx">>, <<"E4297DD25CCDE992BC7DE298F514BEACD0A44FAA9126A1F2567306D94C519A13">>},
10+
{<<"counters">>, <<"AA3D97E88F92573488987193D0F48EFCE0F3B2CD1443BF4EE760BC7F99322F0C">>},
11+
{<<"ctx">>, <<"78E0F16712E12D707A7F34277381B8E193D7C71EAA24D37330DC02477C09EDA5">>},
1212
{<<"jsx">>, <<"D2F6E5F069C00266CAD52FB15D87C428579EA4D7D73A33669E12679E203329DD">>},
1313
{<<"opencensus">>, <<"90C1078A3BA18817D6445B3F79E7515122823198FEDD5A880F74D69C205D8B90">>},
1414
{<<"rfc3339">>, <<"2075653DC9407541C84B1E15F8BDA2ABE95FB17C9694025E079583F2D19C1060">>},

src/oc_reporter_datadog.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ report(Spans, #{
6464
{ok, {{_, Code, _}, _, _}} when Code >= 200, Code =< 299 ->
6565
ok;
6666
{ok, {{_, Code, _}, _, Message}} ->
67-
?LOG_ERROR("DD: Unable to send spans, DD reported an error: ~p: ~p",
67+
?LOG_ERROR("DD: Unable to send spans,"
68+
" DD reported an error: ~p: ~p",
6869
[Code, Message]);
6970
{error, Reason} ->
7071
?LOG_ERROR("DD: Unable to send spans, client error: ~p",

src/oc_stat_exporter_datadog.erl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
%%
77
%% <ul>
88
%% <li>`host' - address where DataDog Agent lives (default `"localhost"')</li>
9-
%% <li>`port' - port on which Agent listens for statsd metrics (default `8125')</li>
9+
%% <li>
10+
%% `port' - port on which Agent listens for statsd metrics (default `8125')
11+
%% </li>
1012
%% </ul>
1113
-module(oc_stat_exporter_datadog).
1214

@@ -74,7 +76,11 @@ build_row(_Type, Value, Tags) ->
7476
[[$:, format_num(Value), "|g", Tags]].
7577

7678
bucket_row({Bound, Count}, Tags) when is_integer(Count) ->
77-
[$:, format_num(Count), "|g", tags_append(Tags, ["le:", format_num(Bound)])].
79+
[
80+
$:, format_num(Count),
81+
"|g",
82+
tags_append(Tags, ["le:", format_num(Bound)])
83+
].
7884

7985
tags_append([], Value) -> ["|#", Value];
8086
tags_append(List, Value) -> [List, $,, Value].

0 commit comments

Comments
 (0)