Sibyl.Plugins.Ecto (Sibyl v0.1.11)

View Source

Sibyl plugin module for listening to telemetry events emitted by Ecto. See docs for Sibyl.Plugin for more information about plugins themselves.

This plugin will extend Sibyl and enable any configured Sibyl handler to listen to various events emitted by Ecto including field resolution, query execution, and batching.

Use via Sibyl.Handlers.attach_all_events(plugins: [Sibyl.Plugins.Ecto]).

Note

This plugin is very much still a work in progress, and should not be used in production code! This is due to the fact that Sibyl doesn't expose an easy way to skew the time of events. As a result, any spans containing Ecto functions will be very skewed and offset. Ecto spans alone work fine however, so this is a workable first PoC

Additionally, as this plugin is still a work in progress, it is not guaranteed to be stable. There are no unit tests provided to ensure this module does not change.