Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 2.95 KB

CHANGELOG.md

File metadata and controls

69 lines (50 loc) · 2.95 KB

OpenTelemetryDecorator

v1.4.6

  • Updates dependencies, notably minor versions of the opentelemetry api and sdk
mix hex.outdated
Dependency              Current  Latest  Status
credo                   1.7.0    1.7.1   Update possible
decorator               1.4.0    1.4.0   Up-to-date
dialyxir                1.3.0    1.4.1   Update possible
ex_doc                  0.30.3   0.30.6  Update possible
excoveralls             0.16.1   0.17.1  Update not possible
opentelemetry           1.3.0    1.3.1   Update possible
opentelemetry_api       1.2.1    1.2.2   Update possible
opentelemetry_exporter  1.6.0    1.6.0   Up-to-date

v1.4.5

  • Fixes an issue with included input parameters not being recorded in the span attributes when an exception is raised. Included body parameters will still not be included since they are not available from the rescue block.

v1.4.4

  • Fixes an issue with error not being recorded in the span attributes when using Attributes.set since it was being passed as an atom.

v1.4.3

  • Do not prefix "error" attributes with the configured prefix since these have special meaning in open telemetry

v1.4.2

  • Bump opentelemetry_exporter from 1.4.1 to 1.5.0 by @dependabot in marcdel#111
  • Ensure that keys are strings before we call Span.set_attributes (marcdel#114)
  • Adds with_span decorator (delegates to trace, so you can use either)
  • Ensure attributes set with the helper get prefixed

v1.4.1

Features

  • Adds span set attribute helper that treats attributes the same way :include does (currently inspects anything it doesn't know how to handle) (thanks @ulissesalmeida)
  • Updates :include attribute validator to allow nested string keys (thanks @leggebroten)

Bug fixes

  • Fixes an issue where indexing into a nested struct via :include would crash due to a *Struct* does not implement the Access behaviour error
  • Protect against context corruption (thanks @leggebroten)

v1.4.0

API

  • You're now able to :include nested result elements e.g. include: [[:result, :name]]
  • You're now able to index into string keyed maps e.g. include: [[:user, "id"]]
  • Complex object attributes (lists, maps, tuples, etc.) are now inspected rather than omitted from the trace
  • 🚨The default joiner for nested attributes is now . rather than _ e.g. user.id=1 rather than user_id=1🚨
    • You can change this behavior via configuration e.g. config :open_telemetry_decorator, attr_joiner: "_"

v1.3.0

Introduces a breaking (kind of) change. The API hasn't changed at all, but it will no longer overwrite function input parameters in the span attributes if they are rebound in the body of the function.

e.g. this param_override(3, 2) will add x=3 to the span, where previously it would have been x=4

@decorate trace("param_override", include: [:x, :y])
def param_override(x, y) do
  x = x + 1

  {:ok, x + y}
end