{"action":"opened","issue":{"url":"https://api.github.com/repos/deadtrickster/prometheus.ex/issues/26","repository_url":"https://api.github.com/repos/deadtrickster/prometheus.ex","labels_url":"https://api.github.com/repos/deadtrickster/prometheus.ex/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/deadtrickster/prometheus.ex/issues/26/comments","events_url":"https://api.github.com/repos/deadtrickster/prometheus.ex/issues/26/events","html_url":"https://github.com/deadtrickster/prometheus.ex/issues/26","id":369002588,"node_id":"MDU6SXNzdWUzNjkwMDI1ODg=","number":26,"title":"Do not change API over Prometheus.erl","user":{"login":"hauleth","id":291639,"node_id":"MDQ6VXNlcjI5MTYzOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/291639?v=4","gravatar_id":"","url":"https://api.github.com/users/hauleth","html_url":"https://github.com/hauleth","followers_url":"https://api.github.com/users/hauleth/followers","following_url":"https://api.github.com/users/hauleth/following{/other_user}","gists_url":"https://api.github.com/users/hauleth/gists{/gist_id}","starred_url":"https://api.github.com/users/hauleth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hauleth/subscriptions","organizations_url":"https://api.github.com/users/hauleth/orgs","repos_url":"https://api.github.com/users/hauleth/repos","events_url":"https://api.github.com/users/hauleth/events{/privacy}","received_events_url":"https://api.github.com/users/hauleth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-11T08:14:34Z","updated_at":"2018-10-11T08:14:34Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"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).\r\n\r\nSolutions that I see are 2:\r\n\r\n- deprecate `prometheus_ex` in favour of raw `prometheus` calls and just don't care about error wrapping\r\n- make `prometheus_ex` API 1:1 mapping of the Erlang one with graceful handling of the errors"}}
{"actor":{"display_login":"hauleth"}}