@@ -52,7 +52,7 @@ and `execute/2`.
5252? DOC ("""
5353Attaches the handler to the event.
5454
55- `handler_id ` must be unique, if another handler with the same ID already exists the
55+ `HandlerId ` must be unique, if another handler with the same ID already exists the
5656`{error, already_exists}` tuple is returned.
5757
5858See `execute/3` to learn how the handlers are invoked.
@@ -85,9 +85,9 @@ attach(HandlerId, EventName, Function, Config) ->
8585? DOC ("""
8686Attaches the handler to many events.
8787
88- The handler will be invoked whenever any of the events in the `event_names ` list is emitted. Note
88+ The handler will be invoked whenever any of the events in the `EventNames ` list is emitted. Note
8989that failure of the handler on any of these invocations will detach it from all the events in
90- `event_name ` (the same applies to manual detaching using `detach/1`).
90+ `EventNames ` (the same applies to manual detaching using `detach/1`).
9191
9292<b>Note:</b> due to how anonymous functions are implemented in the Erlang VM, it is best to use
9393function captures (i.e. `fun mod:fun/4` in Erlang or `&Mod.fun/4` in Elixir) as event handlers
@@ -146,7 +146,7 @@ arguments:
146146
147147#### Best practices and conventions:
148148
149- While you are able to emit messages of any `event_name` structure, it is recommended that you follow the
149+ While you are able to emit messages of any `t: event_name/0 ` structure, it is recommended that you follow the
150150the guidelines laid out in `span/3` if you are capturing start/stop events.
151151""" ).
152152-spec execute (EventName , Measurements , Metadata ) -> ok when
0 commit comments