OpentelemetryOban (opentelemetry_oban v0.2.0-rc.3)

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

Link to this section Summary

Link to this section Functions

Link to this function

insert(name \\ Oban, changeset)

Link to this function

insert(name \\ Oban, multi, multi_name, changeset_or_fun)

Link to this function

insert!(name \\ Oban, changeset)

Link to this function

insert_all(name \\ Oban, changesets_or_wrapper)

Link to this function

insert_all(name \\ __MODULE__, multi, multi_name, changesets_or_wrapper)

Link to this function

setup(opts \\ [])

Initializes 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.