Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MoveResourcesIf ¶
func MoveResourcesIf(from, to ptrace.Traces, f func(ptrace.ResourceSpans) bool)
MoveResourcesIf calls f sequentially for each ResourceSpans present in the first ptrace.Traces. If f returns true, the element is removed from the first ptrace.Traces and added to the second ptrace.Traces.
func MoveSpansWithContextIf ¶ added in v0.114.0
func MoveSpansWithContextIf(from, to ptrace.Traces, f func(ptrace.ResourceSpans, ptrace.ScopeSpans, ptrace.Span) bool)
MoveSpansWithContextIf calls f sequentially for each Span present in the first ptrace.Traces. If f returns true, the element is removed from the first ptrace.Traces and added to the second ptrace.Traces. Notably, the Resource and Scope associated with the Span are created in the second ptrace.Traces only once. Resources or Scopes are removed from the original if they become empty. All ordering is preserved.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.