View Source OpentelemetryOban (opentelemetry_oban v1.1.0)
OpentelemetryOban uses telemetry handlers to
create OpenTelemetry
spans from Oban events.
Supported events include job start/stop and also when an exception is raised.
Usage
In your application start:
def start(_type, _args) do
OpentelemetryOban.setup()
# ...
end
Summary
Functions
Initializes and configures telemetry handlers.
Functions
Link to this function
insert_all(name \\ Oban, multi, multi_name, changesets_or_wrapper)
View SourceInitializes and configures telemetry handlers.
By default jobs and plugins are traced. If you wish to trace only jobs then use:
OpentelemetryOban.setup(trace: [:jobs])
Note that if you don't trace plugins, but inside the plugins, there are spans from other instrumentation libraries (e.g. ecto) then these will still be traced. This setting controls only the spans that are created by opentelemetry_oban.