Skip to content

Commit 8d8af76

Browse files
authored
Release v1.3.0 (#135)
1 parent 98714d1 commit 8d8af76

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.3.0](https://github.com/elixir-telemetry/telemetry/tree/v1.3.0)
9+
10+
### Added
11+
12+
- Ability to return extra measurements from `telemetry:span/3`.
13+
14+
### Changed
15+
16+
- Rewrite docs from edoc to OTP 27 `-moduledoc`/`-doc`.
17+
18+
Internal macros `?DOC` and `?MODULEDOC` are used. They are no-ops prior to OTP 27.
19+
820
## [1.2.1](https://github.com/elixir-telemetry/telemetry/tree/v1.2.0)
921

1022
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ apply. If an exception does occur, an `EventPrefix ++ [exception]` event will be
124124
will be re-raised.
125125

126126
The measurements for the `EventPrefix ++ [start]` event will contain a key called `system_time` which is
127-
derived by calling `erlang:system_time()`. For `EventPrefix ++ [stop]` and `EventPrefix ++ [exception]`
127+
derived by calling `erlang:system_time/0`. For `EventPrefix ++ [stop]` and `EventPrefix ++ [exception]`
128128
events, the measurements will contain a key called `duration` and its value is derived by calling
129129
`erlang:monotonic_time() - StartMonotonicTime`. All events include a `monotonic_time` measurement too.
130130
All of them represent time as native units.

rebar.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{xref_checks,[undefined_function_calls, undefined_functions, locals_not_used,
2020
deprecated_function_calls, deprecated_functions]}.
2121

22-
{plugins, [rebar3_ex_doc]}.
22+
{project_plugins, [rebar3_hex, rebar3_ex_doc]}.
2323

2424
{hex, [
2525
{doc, #{provider => ex_doc}}

src/telemetry.app.src

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{application, telemetry,
22
[{description, "Dynamic dispatching library for metrics and instrumentations"},
3-
{vsn, "1.2.1"},
3+
{vsn, "1.3.0"},
44
{registered, []},
55
{mod, {telemetry_app, []}},
66
{applications,
@@ -11,7 +11,7 @@
1111
{modules, []},
1212

1313
{licenses, ["Apache-2.0"]},
14-
{links, [{"Github", "https://github.com/beam-telemetry/telemetry"}]},
14+
{links, [{"GitHub", "https://github.com/beam-telemetry/telemetry"}]},
1515
{doc, "doc"},
1616
{include_files, ["mix.exs"]}
1717
]}.

src/telemetry.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ and `execute/2`.
5252
?DOC("""
5353
Attaches 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
5858
See `execute/3` to learn how the handlers are invoked.
@@ -85,9 +85,9 @@ attach(HandlerId, EventName, Function, Config) ->
8585
?DOC("""
8686
Attaches 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
8989
that 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
9393
function 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
150150
the 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

Comments
 (0)