engine

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package engine provides the trace/log generation engine for the OTLP simulator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint    string
	UseHTTP     bool
	Insecure    bool
	ServiceName string
	EnableLogs  bool
	JitterPct   int
}

Config holds engine configuration.

type Engine

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

Engine generates traces and logs from scenarios.

func New

func New(ctx context.Context, cfg Config) (*Engine, error)

New creates a new Engine with the given configuration.

func (*Engine) GenerateTrace

func (e *Engine) GenerateTrace(ctx context.Context, s *scenario.Scenario) error

GenerateTrace generates a complete trace from a scenario.

func (*Engine) Shutdown

func (e *Engine) Shutdown(ctx context.Context) error

Shutdown flushes and closes providers.

Jump to

Keyboard shortcuts

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