Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugins ¶
type Plugins struct { // HandleLogEntry handles log entries produced by a component logger. HandleLogEntry func(context.Context, *protos.LogEntry) error // HandleTraceSpans handles spans produced by inter-component communication. HandleTraceSpans func(context.Context, []trace.ReadOnlySpan) error // HandleMetrics is called periodically on a snapshot of all metric values. HandleMetrics func(context.Context, []*metrics.MetricSnapshot) error }
Plugins configure a Service Weaver application deployed on Kubernetes.
Note that the handlers inside a Plugins struct are invoked on every replica of a Service Weaver application binary on locally produced logs, metrics, and traces. Handlers may be called concurrently from multiple goroutines.
Click to show internal directories.
Click to hide internal directories.