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_aggregation

Aggregation represents a data aggregation method.

This module defines the oc_stat_aggregation behaviour. Required callback functions: init/3, type/0, add_sample/4, export/2, clear_rows/2.

Data Types

data()


      data() = data(latest, number()) | data(count, number()) | data(sum, #{count => non_neg_integer(), mean => number(), sum => number()}) | data(distribution, #{count => non_neg_integer(), mean => number(), sum => number(), buckets => [{number(), non_neg_integer()}]})
      

data()


      data(Type, AggregationValue) = #{type => Type, rows => data_rows(AggregationValue)}
      

data_rows()


      data_rows(AggregationValue) = [#{tags => tv(), value => AggregationValue}]
      

tv()


      tv() = [oc_tags:value()]