Back to

package octrace

Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module:


Package octrace is the logic for receiving OpenCensus trace protobuf defined spans from already instrumented applications and then passing them onto a TraceReceiverSink instance.


type Option

type Option func(*Receiver)

Option interface defines for configuration settings to be applied to receivers.

WithReceiver applies the configuration to the given receiver.

type Receiver

type Receiver struct {
	// contains filtered or unexported fields

Receiver is the type used to handle spans from OpenCensus exporters.

func New

func New(instanceName string, nextConsumer consumer.TraceConsumerOld, opts ...Option) (*Receiver, error)

New creates a new opencensus.Receiver reference.

func (*Receiver) Config

func (ocr *Receiver) Config(tcs agenttracepb.TraceService_ConfigServer) error

Config handles configuration messages.

func (*Receiver) Export

func (ocr *Receiver) Export(tes agenttracepb.TraceService_ExportServer) error

Export is the gRPC method that receives streamed traces from OpenCensus-traceproto compatible libraries/applications.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier