Tapper v0.6.0 Tapper.Encoder.Json View Source

Encode protocol spans to JSON suitable for sending to V1 Zipkin Server API.

V1 - zipkin-api.yaml

Link to this section Summary

Link to this section Functions

Link to this function

add_service_name(map, service_name) View Source

Link to this function

encode!(spans) View Source
encode!([
  %Tapper.Protocol.Span{
    annotations: term(),
    binary_annotations: term(),
    debug: term(),
    duration: term(),
    id: term(),
    name: term(),
    parent_id: term(),
    timestamp: term(),
    trace_id: term()
  }
]) :: iodata() | no_return()
encode!(%Tapper.Protocol.Span{
  annotations: term(),
  binary_annotations: term(),
  debug: term(),
  duration: term(),
  id: term(),
  name: term(),
  parent_id: term(),
  timestamp: term(),
  trace_id: term()
}) :: iodata() | no_return()

Link to this function

encode_annotation(annotation) View Source

Link to this function

encode_annotations(map, span) View Source

Link to this function

encode_binary_annotation(binary_annotation) View Source

Link to this function

encode_binary_annotation_type(annotation, type) View Source

Link to this function

encode_binary_annotation_value(type, value) View Source

Link to this function

encode_binary_annotations(map, span) View Source

Link to this function

encode_endpoint(endpoint) View Source

Link to this function

encode_parent_id(map, span) View Source

Link to this function

encode_span_id(map, span) View Source

Link to this function

encode_trace_id(map, span) View Source