Skip to content

Commit b2cdcf6

Browse files
committed
fix: incorrect guard on matching successful report
This checked whether value was greater than 200 OR less than 299 which meant that it was always true. Changed to AND.
1 parent fa8dc9f commit b2cdcf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oc_reporter_datadog.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ report(Spans, #{
6161
[],
6262
[]
6363
) of
64-
{ok, {{_, Code, _}, _, _}} when Code >= 200; Code =< 299 ->
64+
{ok, {{_, Code, _}, _, _}} when Code >= 200, Code =< 299 ->
6565
ok;
6666
{ok, {{_, Code, _}, _, Message}} ->
6767
?LOG_ERROR("DD: Unable to send spans, DD reported an error: ~p: ~p",

0 commit comments

Comments
 (0)