Records would help Elixir developers extend the ecosystem
garthk opened this issue · comments
Rather than have everyone write the same code to use Record
(see lib/opencensus/logger.ex
in #15, Opencensus.Plug
, and OpencensusPhoenix
) to look into their spans and span contexts for unit tests and other machinery to help make good use of :opencensus
, it strikes me we could wrap records for :span
and :span_ctx
in Opencensus.Elixir
. That'd save them the effort, and along with #15 make this module a more useful dependency for other participants of both ecosystems.
Having just had to do that on our internal :opencensus
helper, I've got the code handy. Let me know, eh?
Fixed in #20.