collector

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package collector holds the resources needed to start an OTEL collector testcontainer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Ports map[int]nat.Port

	Network *testcontainers.DockerNetwork
	Name    string
	// contains filtered or unexported fields
}

Collector hold the testcontainer, ports and network used by the OTEL collector. If instantiating yourself, be sure to populate Collector.Network, otherwise a new network will be generated.

func (*Collector) Start

func (c *Collector) Start(ctx context.Context, jaegerName string, seqName string) (func(context.Context) error, error)

Start starts the OTEL collector container.

Jump to

Keyboard shortcuts

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