Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventType ¶
type EventType string
EventType describes the type of event a component might experience during a config run.
type NodeEvent ¶
NodeEvent represents a single event that occurred within the stream.
func EventConsumeOf ¶ added in v4.14.0
EventConsumeOf creates a consumed event from a message part.
func EventDeleteOf ¶ added in v4.14.0
func EventDeleteOf() NodeEvent
EventDeleteOf creates a deleted event from a message part.
func EventErrorOf ¶ added in v4.14.0
EventErrorOf creates an error event from a message part.
func EventProduceOf ¶ added in v4.14.0
EventProduceOf creates a produce event from a message part.
type Summary ¶
type Summary struct { Input uint64 Output uint64 ProcessorErrors uint64 // contains filtered or unexported fields }
Summary is a high level description of all traced events.
func NewSummary ¶
func NewSummary() *Summary
NewSummary creates a new tracing summary that can be passed to component constructors for adding traces.
func TracedBundle ¶
func TracedBundle(b *bundle.Environment) (*bundle.Environment, *Summary)
TracedBundle modifies a provided bundle environment so that traceable components are wrapped by components that add trace events to the returned summary.
func (*Summary) InputEvents ¶
InputEvents returns a map of input labels to events traced during the execution of a stream pipeline. Set flush to true in order to clear the events after obtaining them.
func (*Summary) OutputEvents ¶
OutputEvents returns a map of output labels to events traced during the execution of a stream pipeline.
func (*Summary) ProcessorEvents ¶
ProcessorEvents returns a map of processor labels to events traced during the execution of a stream pipeline.
func (*Summary) SetEnabled ¶ added in v4.14.0
SetEnabled sets whether tracing events are enabled across the stream.
func (*Summary) SetEventLimit ¶ added in v4.14.0
SetEventLimit sets a limit as to how many event traces are stored, this limit is per component that's traced.