Otel.Trace.SpanLimits (otel v0.4.1)

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).

Construct via Otel.Trace.SpanLimits.new/1.

Summary

Functions

SDK — Construct span limits. Defaults match trace/sdk.md §SpanLimits.

Types

t()

@type t() :: %Otel.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()
}

Functions

new(opts \\ %{})

@spec new(opts :: map()) :: t()

SDK — Construct span limits. Defaults match trace/sdk.md §SpanLimits.