otlp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package otlp provides a real protobuf HTTP collector for integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Server *httptest.Server

	Started chan struct{}
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, gate <-chan struct{}) *Collector

func (*Collector) ServeHTTP

func (c *Collector) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Collector) Snapshot

func (c *Collector) Snapshot() ([]*collector.ExportTraceServiceRequest, []string)

func (*Collector) Wait

func (c *Collector) Wait(ctx context.Context, count int) error

Jump to

Keyboard shortcuts

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