Modules

oc_reporter oc_reporter_noop oc_reporter_sequential oc_reporter_zipkin oc_sampler oc_sampler_always oc_sampler_never oc_sampler_probability oc_server oc_span oc_span_ctx_binary oc_span_ctx_header oc_stat oc_stat_aggregation oc_stat_aggregation_count oc_stat_aggregation_distribution oc_stat_aggregation_latest oc_stat_aggregation_sum oc_stat_config oc_stat_exporter oc_stat_exporter_prometheus oc_stat_measure oc_stat_view oc_std_encoder oc_tag_ctx_binary oc_tag_ctx_header oc_tags oc_trace oc_trace_pb oc_transform ocp opencensus opencensus_app opencensus_sup

Module oc_stat

OpenCensus Stats package.

Function Index

export/0Exports 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.