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_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 opencensus

opencensus main module.

Data Types

annotation()


      annotation() = #annotation{}
      

attribute_value()


      attribute_value() = any()
      

attributes()


      attributes() = #{unicode:unicode_binary() => attribute_value()}
      

      link() = #link{}
      

      link_type() = ?LINK_TYPE_UNSPECIFIED | ?LINK_TYPE_CHILD_LINKED_SPAN | ?LINK_TYPE_PARENT_LINKED_SPAN
      

      links() = [link()]
      

message_event()


      message_event() = #message_event{}
      

message_event_type()


      message_event_type() = ?MESSAGE_EVENT_TYPE_UNSPECIFIED | ?MESSAGE_EVENT_TYPE_SENT | ?MESSAGE_EVENT_TYPE_RECEIVED
      

span()


      span() = #span{}
      

span_ctx()


      span_ctx() = #span_ctx{}
      

span_id()


      span_id() = non_neg_integer()
      

stack_trace()


      stack_trace() = [erlang:stack_item()]
      

status()


      status() = #status{}
      

tags()


      tags() = oc_tags:tags()
      

time_events()


      time_events() = [{wts:timestamp(), annotation() | message_event()}]
      

trace_id()


      trace_id() = non_neg_integer()
      

Function Index

generate_span_id/0 Generates a 64 bit random integer to use as a span id.
generate_trace_id/0 Generates a 128 bit random integer to use as a trace id.

Function Details

generate_span_id/0


      generate_span_id() -> span_id()
      

Generates a 64 bit random integer to use as a span id.

generate_trace_id/0


      generate_trace_id() -> trace_id()
      

Generates a 128 bit random integer to use as a trace id.