Documentation
¶
Index ¶
- type Collector
- func (c *Collector) Cleanup(t *testing.T)
- func (c *Collector) Export(ctx context.Context, req *coltracepb.ExportTraceServiceRequest) (*coltracepb.ExportTraceServiceResponse, error)
- func (c *Collector) ExportTraces(ctx context.Context, req *coltracepb.ExportTraceServiceRequest) (*coltracepb.ExportTraceServiceResponse, error)
- func (c *Collector) GetSpans() []*tracepb.ResourceSpans
- func (c *Collector) OTLPGRPCAddress() string
- func (c *Collector) Run(t *testing.T, ctx context.Context)
- func (c *Collector) WaitUntilRunning(t *testing.T, ctx context.Context)
- type Option
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 (*Collector) Export ¶
func (c *Collector) Export(ctx context.Context, req *coltracepb.ExportTraceServiceRequest) (*coltracepb.ExportTraceServiceResponse, error)
Export implements the OTLP trace service Export method
func (*Collector) ExportTraces ¶
func (c *Collector) ExportTraces(ctx context.Context, req *coltracepb.ExportTraceServiceRequest) (*coltracepb.ExportTraceServiceResponse, error)
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 ¶
OTLPGRPCAddress returns the gRPC endpoint address for the collector
Click to show internal directories.
Click to hide internal directories.