Documentation

Overview

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

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Receiver

    type Receiver struct {
    	agentmetricspb.UnimplementedMetricsServiceServer
    	// contains filtered or unexported fields
    }

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

      func New

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

        New creates a new ocmetrics.Receiver reference.

        func (*Receiver) Export

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