mana-ethereum / ethereumex

Elixir JSON-RPC client for the Ethereum blockchain 0x063D3d782598744AF1252eBEaf3aA97D990Edf72
MIT License
378 stars 73 forks source link

error without optional telemetry dependency installed #70

Closed gregors closed 4 years ago

gregors commented 4 years ago

Looks like telemetry was added recently as an optional dependency - but it doesn't look optional


iex(1)> Ethereumex.HttpClient.web3_client_version
** (UndefinedFunctionError) function :telemetry.execute/3 is undefined (module :telemetry is not available)
    :telemetry.execute([:ethereumex], %{counter: 1}, %{method_name: "web3_clientVersion"})
    (ethereumex 0.6.1) lib/ethereumex/counter.ex:59: Ethereumex.Counter.inc/2
    (ethereumex 0.6.1) lib/ethereumex/client/base_client.ex:505: Ethereumex.HttpClient.prepare_request/1
    (ethereumex 0.6.1) lib/ethereumex/client/base_client.ex:485: Ethereumex.HttpClient.server_request/2```
InoMurko commented 4 years ago

https://github.com/mana-ethereum/ethereumex/pull/73

ayrat555 commented 4 years ago

resolved by https://github.com/mana-ethereum/ethereumex/pull/73