deadtrickster / prometheus.ex

Prometheus.io Elixir client
411 stars 68 forks source link

Do not change API over Prometheus.erl #26

Open hauleth opened 6 years ago

hauleth commented 6 years ago

Currently API provided by prometheus_ex for no reason tries to use keyword list as a first argument and do some magic parsing before calling functions from prometheus (Erlang one). Why though? I find Erlang API much cleaner and easier to work with, only gripe is fact that it throws ErlangError instead of Elixir-like ones (but that isn't big problem IMHO).

Solutions that I see are 2: