aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_metrics_h.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_metrics_h.erl')
-rw-r--r--src/cowboy_metrics_h.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cowboy_metrics_h.erl b/src/cowboy_metrics_h.erl
index 559952b..3a2a8f0 100644
--- a/src/cowboy_metrics_h.erl
+++ b/src/cowboy_metrics_h.erl
@@ -106,6 +106,9 @@
}.
-export_type([metrics/0]).
+-type metrics_callback() :: fun((metrics()) -> any()).
+-export_type([metrics_callback/0]).
+
-record(state, {
next :: any(),
callback :: fun((metrics()) -> any()),