worker

package
v0.0.0-...-f73114c Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, input models.Input, testName string, stop <-chan struct{}) (models.Report, error)

Run executes a load test work with the given input, prints the results, indexes a performance report, and returns it along any error.

If the context is cancelled, the worker exits with the context's error. If the stop channel is signalled, the worker exits gracefully with no error.

Types

type Result

type Result struct {
	apm.TracerStats
	TransportStats
	Start   time.Time
	End     time.Time
	Flushed time.Time
}

Result holds stats captured from a Go agent plus timing information.

func (Result) ElapsedSeconds

func (r Result) ElapsedSeconds() float64

func (Result) EventsGenerated

func (r Result) EventsGenerated() uint64

func (Result) EventsSent

func (r Result) EventsSent() uint64

func (Result) String

func (r Result) String() string

type TransportStats

type TransportStats struct {
	EventsAccepted uint64
	UniqueErrors   []string
	NumRequests    uint64
}

TransportStats are captured by reading apm-server responses.

Jump to

Keyboard shortcuts

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