Skip to content

v0.5.0

Choose a tag to compare

@mattludwigs mattludwigs released this 31 May 22:09
· 76 commits to main since this release

Breaking changes for three functions in the Mobius.Exports module:

  1. Mobius.Exports.series/4
  2. Mobius.Exports.metrics/4
  3. Mobius.Exports.plot/4

If you are now directly calling these functions in code you're safe to upgrade.

The first two use to return either {:ok, results} or {:error, reason} but
now they will only return their result. For Mobius.Exports.series/4 the return
value is now [integer()] and for Mobius.Exports.metrics/4 the return type is
now [Mobius.metric()]. Mobius.Exports.plot/4 still returns :ok on success,
but can now return {:error, UnsupportedMetricError.t()}.

Changed

  • Mobius.Exports.series/4 return type was
    {:ok, [integer()]} | {:error, UnsupportedMetricError.t()} and now is
    [integer()].
  • Mobius.Exports.metrics/4 return type was
    {:ok, [Mobius.metric()]} | {:error, UnsupportedMetricError.t()} and now is
    [Mobius.metric()]
  • Mobius.Exports.plot/4 was just :ok but now is
    :ok | {:error, UnsupportedMetricError.t()}

Added

  • Mobius.RemoteReporter behaviour to allow for reporting metrics to a remote
    server.
  • Add :remote_reporter and :remote_report_interval options to the
    Mobius.arg() type.
  • Super for specify which summery metric you want to export. (@ewildgoose)
  • Support for summary metrics types in some exports. (@ewildgoose)
  • Add standard deviation calculation to the summary metric type. (@ewildgoose)
  • New Mobius.Exports.export_metric_type() that allows for specifying the
    summary metric type.

Misc

  • Update ex_doc to v.0.28.4
  • Update telemetry to v1.1.0
  • Fix up typos (@kianmeng)