AppSignal v0.0.3 Appsignal.TransactionRegistry

Internal module which keeps a registry of the transaction handles linked to their originating process.

This is used by the Appsignal.ErrorHandler module to be able to complete the transaction in case the originating process crashed.

The transactions are stored in an ETS table (with {:write_concurrency, true}, so no bottleneck is created); and the originating process is monitored to clean up the ETS table when the process has finished.

Summary

Functions

lookup(pid)
register(transaction)
remove_transaction(transaction)
start_link()

Specs

start_link :: {:ok, pid}