ExSeq.CLEFEvent (exseq v0.1.1)

View Source

Represents a Compact Log Event Format (CLEF) log event.

Summary

Types

t()

CLEF event

Types

t()

@type t() :: %ExSeq.CLEFEvent{
  exception: String.t() | nil,
  level: ExSeq.CLEFLevel.t(),
  message: String.t() | nil,
  parent_span_id: String.t() | nil,
  properties: map(),
  resource_attributes: map() | nil,
  span_id: String.t() | nil,
  span_kind: String.t() | nil,
  span_start: DateTime.t() | NaiveDateTime.t() | nil,
  timestamp: DateTime.t() | NaiveDateTime.t() | nil,
  trace_id: String.t() | nil
}

CLEF event

  • timestamp – a DateTime (or NaiveDateTime) for the log time.
  • message – the main log message string.
  • exception – an exception stacktrace or error details.
  • level – one of the ExSeq.CLEFLevel variants.
  • trace_id – a string trace ID for distributed tracing.
  • span_id – a string span ID for distributed tracing.
  • span_start – a DateTime marking when the span began.
  • span_kind – a string describing the kind of span (client, server, etc.).
  • resource_attributes – a map of key/value pairs describing the resource.
  • parent_span_id – a span ID for the parent span (if any).
  • properties – additional arbitrary key/value pairs.