ptraceutil

package
v0.116.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL