octrace

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	WithReceiver(*Receiver)
}

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

WithReceiver applies the configuration to the given receiver.

func WithSpanBufferCount

func WithSpanBufferCount(count int) Option

WithSpanBufferCount is an option that allows one to configure the number of spans that are buffered before the Receiver send them to its TraceReceiverSink.

func WithSpanBufferPeriod

func WithSpanBufferPeriod(period time.Duration) Option

WithSpanBufferPeriod is an option that allows one to configure the period that spans are buffered for before the Receiver sends them to its TraceReceiverSink.

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(sr receiver.TraceReceiverSink, opts ...Option) (*Receiver, error)

New creates a new opencensus.Receiver reference.

func (*Receiver) Config

Config handles configuration messages.

func (*Receiver) Export

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

Jump to

Keyboard shortcuts

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