Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KmCollector ¶
type KmCollector struct {
// contains filtered or unexported fields
}
KmCollector is a wrapper around opentelemetry's collector
func NewKmCollector ¶
func NewKmCollector(set otelcol.CollectorSettings) (*KmCollector, error)
NewCollector creates and returns a new instance of Collector.
func (*KmCollector) GetState ¶
func (col *KmCollector) GetState() State
GetState returns current state of the collector server.
func (*KmCollector) Run ¶
func (col *KmCollector) Run(ctx context.Context) error
Run starts the collector according to the given configuration, and waits for it to complete. Consecutive calls to Run are not allowed, Run shouldn't be called once a collector is shut down. Sets up the control logic for config reloading and shutdown.
func (*KmCollector) Shutdown ¶
func (col *KmCollector) Shutdown()
Shutdown shuts down the collector server.
Click to show internal directories.
Click to hide internal directories.