Module oc_stat
OpenCensus Stats package.
Function Index
export/0 | Exports view_data of all subscribed views. |
record/2 | Records multiple measurements at once. |
record/3 | Records one or multiple measurements with the same tags at once. |
Function Details
export/0
export() -> [oc_stat_view:view_data()]
Exports view_data of all subscribed views
record/2
record(Tags::ctx:t() | oc_tags:tags(), Measures::[{oc_stat_measure:name(), number()}]) -> ok
Records multiple measurements at once.
Can be optimized with oc_stat_measure
parse transform.
Raises {unknown_measure, MeasureName}
if measure doesn't exist.
record/3
record(Tags::ctx:t() | oc_tags:tags(), MeasureName::oc_stat_measure:name(), Value::number()) -> ok
Records one or multiple measurements with the same tags at once. If there are any tags in the context, measurements will be tagged with them.
Can be optimized with oc_stat_measure
parse transform.
Raises {unknown_measure, MeasureName}
if measure doesn't exist.