otel

package
v1.16.6 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	coltracepb.UnimplementedTraceServiceServer
	// contains filtered or unexported fields
}

Collector is an in-memory OTLP collector for testing.

func New

func New(t *testing.T, fopts ...Option) *Collector

func (*Collector) Cleanup

func (c *Collector) Cleanup(t *testing.T)

Cleanup implements framework.Process

func (*Collector) Export

Export implements the OTLP trace service Export method

func (*Collector) ExportTraces

ExportTraces implements the OTLP trace service ExportTraces method

func (*Collector) GetSpans

func (c *Collector) GetSpans() []*tracepb.ResourceSpans

GetSpans returns a copy of all received spans

func (*Collector) OTLPGRPCAddress

func (c *Collector) OTLPGRPCAddress() string

OTLPGRPCAddress returns the gRPC endpoint address for the collector

func (*Collector) Run

func (c *Collector) Run(t *testing.T, ctx context.Context)

func (*Collector) WaitUntilRunning

func (c *Collector) WaitUntilRunning(t *testing.T, ctx context.Context)

type Option

type Option func(*options)

Option is a function that configures the process.

Jump to

Keyboard shortcuts

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