Releases: marcdel/open_telemetry_decorator
Releases · marcdel/open_telemetry_decorator
v0.4.0
BREAKING CHANGE: attributes to include are now under the :include
option.
This means your decorators will need to change from @decorate trace("worker.do_work", [:arg1, :arg2])
to @decorate trace("worker.do_work", include: [:arg1, :arg2])
A new decorator, simple_trace
has been added!
This will automatically add the input parameters, and result to the span attributes, and (optionally) generate a span name for you. Use it like this @decorate simple_trace()
or like this @decorate simple_trace("worker.do_work")
. The 0 arity version is great for normal module functions, while the 1 arity version allows you to specify a name for functions that would otherwise be ambiguous (handle_info
, handle_event
, etc.)