Back to

package ocmetrics

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


Package ocmetrics is the logic for receiving OpenCensus metrics proto from already instrumented applications and then passing them onto a metricsink instance.


type Receiver

type Receiver struct {
	// contains filtered or unexported fields

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

func New

func New(instanceName string, nextConsumer consumer.MetricsConsumerOld) (*Receiver, error)

New creates a new ocmetrics.Receiver reference.

func (*Receiver) Export

func (ocr *Receiver) Export(mes agentmetricspb.MetricsService_ExportServer) error

Export is the gRPC method that receives streamed metrics from OpenCensus-metricproto 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