census-instrumentation / opencensus-erlang

A stats collection and distributed tracing framework
https://opencensus.io
Apache License 2.0
134 stars 39 forks source link

Track trace with ets tables #155

Open tsloughter opened 5 years ago

tsloughter commented 5 years ago

I think we should investigate the performance of using ETS tables to track traces/spans. This would work similar to how db_connection works now with @fishcakez pool. Setting an heir to be a cleanup process provides the feature of a crashed process can have its open spans closed and finishing can be done with ets:giveaway.

It might be too much overhead on a system with thousands of concurrent traces, but I think worth measuring to be sure.