Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Graborg committed Mar 20, 2024
1 parent 8f40bcc commit 0fd646d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions content/en/docs/languages/erlang/sampling.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,11 @@ description(_) ->
<<"AttributeSampler">>.

should_sample(_Ctx, _TraceId, _Links, _SpanName, _SpanKind, Attributes, ConfigAttributes) ->
AttributesSet = sets:from_list(maps:to_list(Attributes)),
ConfigSet = sets:from_list(maps:to_list(ConfigAttributes)),
case sets:is_disjoint(AttributesSet, ConfigSet) of
true -> {?RECORD_AND_SAMPLE, [], []}
_ -> {?DROP, [], []};

AttributesSet = sets:from_list(maps:to_list(Attributes)),
ConfigSet = sets:from_list(maps:to_list(ConfigAttributes)),
case sets:is_disjoint(AttributesSet, ConfigSet) of
true -> {?RECORD_AND_SAMPLE, [], []};
_ -> {?DROP, [], []}
end.
```

Expand Down

0 comments on commit 0fd646d

Please sign in to comment.