genreplay

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const GenUsage = "" /* 184-byte string literal not displayed */

Variables

This section is empty.

Functions

func Main

func Main(ctx context.Context, args []string, out io.Writer, b Builtin) error

Main is `wtctl gen ...` (b nil) and `wt-gen ...`. The ingestion key is read from the environment variable named by --key-env, never from a flag.

Types

type Builtin

type Builtin interface {
	Names() []string
	// Generate returns the OTLP JSON documents of one scenario.
	Generate(name string) ([]byte, error)
}

Builtin supplies generated scenarios for the private wt-gen command; wtctl passes nil and so replays only the user's own OTLP JSON files.

Jump to

Keyboard shortcuts

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