Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { // Arrival time the first span for the trace was received. ArrivalTime time.Time // EarliestStartTime is the time of the earliest start of a span that we've seen for this trace. EarliestStartTime pcommon.Timestamp // LatestEndTime is the latest time of the latest end to a span that we've seen for this trace. LatestEndTime pcommon.Timestamp // SpanCount track the number of spans on the trace. SpanCount int32 // Priority of the trace data. May be used to tier caching. Priority priority.Priority // LastLowPriorityDecisionName is the policy's name that was previously made decision to low priority. LastLowPriorityDecisionName *string }
type TraceData ¶
type TraceData struct { Metadata *Metadata // contains filtered or unexported fields }
TraceData stores the sampling related trace data. The zero value for this type is invalid, use NewTraceData to create.
func NewTraceData ¶
func NewTraceData(arrival time.Time, traces ptrace.Traces, p priority.Priority, compress bool) (*TraceData, error)
NewTraceData creates a new TraceData given traces This function cannot return an error if compress is false
func (*TraceData) AbsorbTraceData ¶
AbsorbTraceData merges the data from the other TraceData into this TraceData. It modifies both the current TraceData instance (td) and the one passed in (other). other MUST NOT be used after calling this function, as it's trace data is moved into td.
func (*TraceData) GetPriority ¶
GetPriority implements priority.Getter
Click to show internal directories.
Click to hide internal directories.