Module oc_telemetry

Function Index

attach/4Creates measurement and attach it to the telemetry dispatcher.
track/1Creates measurement, view, and attaches measurement to the telemetry.

Function Details

attach/4

attach(Name::oc_stat_measure:name(), EventName::telemetry:event_name(), Description::oc_stat_measure:description(), Unit::oc_stat_measure:unit()) -> {ok, oc_stat_measure:measure()} | {error, already_registered}

Creates measurement and attach it to the telemetry dispatcher

On success it returns {ok, Measurement} where Measurement is newly created OpenCensus measurement that can be used for creating views.

When there is already attached listener for given name then it will return {error, already_registered}.

track/1

track(Metric::map()) -> {ok, oc_stat_view:view()} | {error, term()}

Creates measurement, view, and attaches measurement to the telemetry

On success it returns {ok, View} where View is newly created OpenCensus view.

When there is already attached listener for given name then it will return {error, already_registered}.


Generated by EDoc