From a09c0c0716ebcd2ea64f4974ab96fdbd08e95841 Mon Sep 17 00:00:00 2001 From: ieQu1 <99872536+ieQu1@users.noreply.github.com> Date: Thu, 2 May 2024 17:25:22 +0200 Subject: [PATCH] Fix dialyzer errors --- src/snabbkaffe.erl | 2 +- src/snabbkaffe_collector.erl | 6 +++--- src/snabbkaffe_nemesis.erl | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/snabbkaffe.erl b/src/snabbkaffe.erl index 6298af4..5c3bb53 100644 --- a/src/snabbkaffe.erl +++ b/src/snabbkaffe.erl @@ -124,7 +124,7 @@ -export_type([ kind/0, timestamp/0, event/0, timed_event/0, trace/0 , maybe_pair/0, maybe/1, metric/0, run_config/0, predicate/0 - , predicate2/0, trace_spec/1, trace_specs/1 + , predicate2/0, trace_spec/1, trace_specs/1, filter/0 ]). %%==================================================================== diff --git a/src/snabbkaffe_collector.erl b/src/snabbkaffe_collector.erl index 5c25fe5..cc0ada3 100644 --- a/src/snabbkaffe_collector.erl +++ b/src/snabbkaffe_collector.erl @@ -1,4 +1,4 @@ -%% Copyright 2021-2023 snabbkaffe contributors +%% Copyright 2021-2024 snabbkaffe contributors %% Copyright 2019-2020 Klarna Bank AB %% %% Licensed under the Apache License, Version 2.0 (the "License"); @@ -44,7 +44,7 @@ -export([ do_forward_trace/1 ]). --export_type([async_action/0, subscription/0]). +-export_type([async_action/0, subscription/0, datapoints/0]). -define(SERVER, ?MODULE). @@ -116,7 +116,7 @@ get_stats() -> gen_server:call(?SERVER, get_stats, infinity). %% NOTE: Concuerror only supports `Timeout=0' --spec flush_trace() -> snabbkaffe:timed_trace(). +-spec flush_trace() -> snabbkaffe:trace(). flush_trace() -> {ok, Trace} = gen_server:call(?SERVER, flush_trace, infinity), Trace. diff --git a/src/snabbkaffe_nemesis.erl b/src/snabbkaffe_nemesis.erl index befe90d..9d802c5 100644 --- a/src/snabbkaffe_nemesis.erl +++ b/src/snabbkaffe_nemesis.erl @@ -1,5 +1,5 @@ -%% Copyright 2019-2020, 2022 Klarna Bank AB -%% Copyright 2021 snabbkaffe contributors +%% Copyright 2021-2024 snabbkaffe contributors +%% Copyright 2019-2020 Klarna Bank AB %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -91,7 +91,7 @@ -record(fault, { reference :: reference() , predicate :: snabbkaffe:predicate() - , scenario :: snabbkaffe:fault_scenario() + , scenario :: fault_scenario() , reason :: term() }).