tracex v0.1.0 Tracex.Classifier View Source

Default classifier that generates annotations for common modules, that are being picked up by the collector.

The following annotations are currently supported:

  • {:track, module, file} - tracks module definition in given source file and enables trace collection for that module (collector does not collect traces for untracked modules)
  • {:tag, module, tag} - adds tag to module's tags
  • {:extra, module, key, value} - adds key/value pair to module's extra attributes

Consult README for information about providing custom classifiers for your project.

Link to this section Summary

Functions

Sets up tracking and generates module annotations for module types common among mix projects, (e.g. ecto schemas, phoenix controllers, views routers and channels).

Link to this section Functions

Link to this function

classify(trace)

View Source
classify(Tracex.Trace.t()) ::
  nil | {:tag, atom(), atom()} | {:track, atom(), binary()}

Sets up tracking and generates module annotations for module types common among mix projects, (e.g. ecto schemas, phoenix controllers, views routers and channels).