receiver

package
v0.0.0-...-7a23ab9 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package receiver is the logic that receives exported TraceData from OC Agents on each test server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCoordinatorSink

type TestCoordinatorSink struct {
	SpansPerNode map[*commonpb.Node][]*tracepb.Span
}

TestCoordinatorSink is a struct that implements receiver.TraceReceiverSink. It can accept TraceData as well as expose stored TraceData for validation.

func NewOCTraceReceiver

func NewOCTraceReceiver(addr string) (*opencensus.Receiver, *TestCoordinatorSink, error)

NewOCTraceReceiver creates a new OpenCensus Receiver at the given address. Also binds TraceServiceGrpc to the created gRPC server and starts Trace reception.

func (TestCoordinatorSink) ReceiveTraceData

ReceiveTraceData receives the span data in the protobuf format, groups them by Node and stores them.

Jump to

Keyboard shortcuts

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