Skip to content

Commit

Permalink
Fix the telemetry:span_function/0 type (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide authored Jan 15, 2025
1 parent 8d8af76 commit 7b99309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/telemetry.erl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ and `execute/2`.
-type handler_config() :: term().
-type handler_function() :: fun((event_name(), event_measurements(), event_metadata(), handler_config()) -> any()).
-type span_result() :: term().
-type span_function() :: fun(() -> {span_result(), event_metadata()}) | {span_result(), event_measurements(), event_metadata()}.
-type span_function() :: fun(() -> {span_result(), event_metadata()} | {span_result(), event_measurements(), event_metadata()}).
-type handler() :: #{id := handler_id(),
event_name := event_name(),
function := handler_function(),
Expand Down

0 comments on commit 7b99309

Please sign in to comment.