tests

package
v0.118.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scenario10kItemsPerSecond

func Scenario10kItemsPerSecond(
	t *testing.T,
	sender testbed.DataSender,
	receiver testbed.DataReceiver,
	resourceSpec testbed.ResourceSpec,
	resultsSummary testbed.TestResultsSummary,
	processors []ProcessorNameAndConfigBody,
	extensions map[string]string,
	loadOptions *testbed.LoadOptions,
)

Scenario10kItemsPerSecond runs 10k data items/sec test using specified sender and receiver protocols.

func Scenario10kItemsPerSecondAlternateBackend added in v0.90.0

func Scenario10kItemsPerSecondAlternateBackend(
	t *testing.T,
	sender testbed.DataSender,
	receiver testbed.DataReceiver,
	backend testbed.DataReceiver,
	resourceSpec testbed.ResourceSpec,
	resultsSummary testbed.TestResultsSummary,
	processors []ProcessorNameAndConfigBody,
	extensions map[string]string,
)

Scenario10kItemsPerSecondAlternateBackend runs 10k data items/sec test using specified sender and receiver protocols. The only difference from Scenario10kItemsPerSecond is that this method can be used to specify a different backend. This is useful when testing components for which there is no exporter that emits the same format as the receiver format.

func Scenario1kSPSWithAttrs

func Scenario1kSPSWithAttrs(t *testing.T, args []string, tests []TestCase, processors []ProcessorNameAndConfigBody, extensions map[string]string)

Scenario1kSPSWithAttrs runs a performance test at 1k sps with specified span attributes and test options.

func ScenarioLong added in v0.109.0

func ScenarioLong(
	t *testing.T,
	sender testbed.DataSender,
	receiver testbed.DataReceiver,
	loadOptions testbed.LoadOptions,
	resultsSummary testbed.TestResultsSummary,
	sleepTime int,
	processors []ProcessorNameAndConfigBody,
)

func ScenarioMemoryLimiterHit added in v0.114.0

func ScenarioMemoryLimiterHit(
	t *testing.T,
	sender testbed.DataSender,
	receiver testbed.DataReceiver,
	loadOptions testbed.LoadOptions,
	resultsSummary testbed.TestResultsSummary,
	sleepTime int,
	processors []ProcessorNameAndConfigBody,
)

func ScenarioSendingQueuesFull added in v0.92.0

func ScenarioSendingQueuesFull(
	t *testing.T,
	sender testbed.DataSender,
	receiver testbed.DataReceiver,
	loadOptions testbed.LoadOptions,
	resourceSpec testbed.ResourceSpec,
	sleepTime int,
	resultsSummary testbed.TestResultsSummary,
	processors []ProcessorNameAndConfigBody,
	extensions map[string]string,
)

func ScenarioSendingQueuesNotFull added in v0.92.0

func ScenarioSendingQueuesNotFull(
	t *testing.T,
	sender testbed.DataSender,
	receiver testbed.DataReceiver,
	loadOptions testbed.LoadOptions,
	resourceSpec testbed.ResourceSpec,
	sleepTime int,
	resultsSummary testbed.TestResultsSummary,
	processors []ProcessorNameAndConfigBody,
	extensions map[string]string,
)

func ScenarioTestTraceNoBackend10kSPS

func ScenarioTestTraceNoBackend10kSPS(
	t *testing.T,
	sender testbed.DataSender,
	receiver testbed.DataReceiver,
	resourceSpec testbed.ResourceSpec,
	resultsSummary testbed.TestResultsSummary,
	configuration processorConfig,
)

Types

type ProcessorNameAndConfigBody added in v0.113.0

type ProcessorNameAndConfigBody struct {
	Name string
	Body string
}

type TestCase

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

TestCase for Scenario1kSPSWithAttrs func.

Jump to

Keyboard shortcuts

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