babysitter

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Babysitter

type Babysitter struct {
	// contains filtered or unexported fields
}

Babysitter starts and manages a weavelet inside the Pod.

func NewBabysitter

func NewBabysitter(
	ctx context.Context,
	cfg *config.GKEConfig,
	replicaSet string,
	podName string,
	useLocalhost bool,
	manager clients.ManagerClient,
	logSaver func(*protos.LogEntry),
	traceSaver func(spans []trace.ReadOnlySpan) error,
	metricExporter func(metrics []*metrics.MetricSnapshot) error) (*Babysitter, error)

NewBabysitter returns a new babysitter.

func (*Babysitter) ActivateComponent added in v0.2.0

ActivateComponent implements the envelope.EnvelopeHandler interface.

func (*Babysitter) CheckHealth

CheckHealth implements the clients.BabysitterClient interface.

func (*Babysitter) ExportListener added in v0.2.0

ExportListener implements the envelope.EnvelopeHandler interface.

func (*Babysitter) GetListenerAddress added in v0.2.0

GetListenerAddress implements the envelope.EnvelopeHandler interface.

func (*Babysitter) HandleLogEntry added in v0.2.0

func (b *Babysitter) HandleLogEntry(_ context.Context, entry *protos.LogEntry) error

HandleLogEntry implements the envelope.EnvelopeHandler interface.

func (*Babysitter) HandleTraceSpans added in v0.2.0

func (b *Babysitter) HandleTraceSpans(_ context.Context, traces []trace.ReadOnlySpan) error

HandleTraceSpans implements the envelope.EnvelopeHandler interface.

func (*Babysitter) Run

func (b *Babysitter) Run() error

Run runs the babysitter. This call will block until the context passed to NewBabysitter is canceled.

func (*Babysitter) RunProfiling

RunProfiling implements the clients.BabysitterClient interface.

type HttpClient

type HttpClient struct {
	Addr string // babysitter address
}

HttpClient is a Client that executes requests over HTTP.

func (*HttpClient) CheckHealth

CheckHealth implements the clients.BabysitterClient interface.

func (*HttpClient) RunProfiling

RunProfiling implements the clients.BabysitterClient interface.

Jump to

Keyboard shortcuts

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