Otel.SDK.Trace.SpanLimits (otel v0.2.0)

Copy Markdown View Source

Configurable limits for Span data.

Prevents unbounded growth of span attributes, events, and links. Excess items are silently discarded. A log message SHOULD be emitted at most once per span when items are discarded (trace/sdk.md L873-L876).

Summary

Types

t()

@type t() :: %Otel.SDK.Trace.SpanLimits{
  attribute_count_limit: pos_integer(),
  attribute_per_event_limit: pos_integer(),
  attribute_per_link_limit: pos_integer(),
  attribute_value_length_limit: pos_integer() | :infinity,
  event_count_limit: pos_integer(),
  link_count_limit: pos_integer()
}