Documentation ¶
Index ¶
- Constants
- func GenerateTraces(traceTest TraceTestConfig) error
- func SegmentValidationTest(t *testing.T, traceTest TraceTestConfig, segments []types.Segment) error
- func TraceTest(t *testing.T, traceTest TraceTestConfig) error
- type TraceGenerator
- type TraceGeneratorConfig
- type TraceGeneratorInterface
- type TraceTestConfig
Constants ¶
View Source
const (
AGENT_SHUTDOWN_DELAY = 20 * time.Second // this const is the delay between stopping trace generation and stopping agent
)
Variables ¶
This section is empty.
Functions ¶
func GenerateTraces ¶
func GenerateTraces(traceTest TraceTestConfig) error
func SegmentValidationTest ¶
Types ¶
type TraceGenerator ¶
type TraceGeneratorConfig ¶
type TraceGeneratorInterface ¶
type TraceGeneratorInterface interface { StartSendingTraces(ctx context.Context) error StopSendingTraces() Generate(ctx context.Context) error GetSegmentCount() (int, int) GetAgentConfigPath() string GetGeneratorConfig() *TraceGeneratorConfig GetContext() context.Context GetAgentRuntime() time.Duration GetName() string }
type TraceTestConfig ¶
type TraceTestConfig struct { Generator TraceGeneratorInterface Name string AgentConfigPath string AgentRuntime time.Duration }
Click to show internal directories.
Click to hide internal directories.