We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We want to have a better monitoring of the database, to detect bottlenecks or area of improvements
We have to leverage telemetry for:
telemetry
The text was updated successfully, but these errors were encountered:
hello Team, I think , we might have to add this only ,maybe. It might also cause regression in Metrics.Poller. Whaty'all think?
start =System.monotonic_time() :telemetry.execute([:archethic, :db], %{duration: System.monotonic_time() - start}, %{ query: "write_transaction_chain" })
@spec write_transaction_chain(list(Transaction.t())) :: :ok def write_transaction_chain(chain) do start =System.monotonic_time() sorted_chain = Enum.sort_by(chain, & &1.validation_stamp.timestamp, {:asc, DateTime}) first_tx = List.first(sorted_chain) genesis_address = Transaction.previous_address(first_tx) Enum.each(sorted_chain, fn tx -> unless ChainIndex.transaction_exists?(tx.address, db_path()) do ChainWriter.append_transaction(genesis_address, tx) end end) :telemetry.execute([:archethic, :db], %{duration: System.monotonic_time() - start}, %{ query: "write_transaction_chain" }) end
Sorry, something went wrong.
Hey team! Please add your planning poker estimate with ZenHub @apoorv-2204 @blackode @Neylix @samuel-uniris @nilesh-uniris
apoorv-2204
No branches or pull requests
Problem to solve
We want to have a better monitoring of the database, to detect bottlenecks or area of improvements
Solution
We have to leverage
telemetry
for:The text was updated successfully, but these errors were encountered: