View Source CozyTelemetry.Reporter behaviour (cozy_telemetry v0.1.0)

A behaviour for declaring reporters.

Link to this section Summary

Callbacks

Checks required dependencies.

Generates child specification for starting a reporter.

Functions

Prints consistent error messages of missing package for reporters.

Link to this section Types

@type child_spec() :: %{id: term(), start: term(), type: term()}
@type init_arg() :: keyword()

Link to this section Callbacks

@callback check_deps() :: :ok

Checks required dependencies.

When dependencies are missing, an exception should be raised.

@callback child_spec(init_arg()) :: child_spec()

Generates child specification for starting a reporter.

Link to this section Functions