ocmetrics

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

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 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 WithMetricBufferCount

func WithMetricBufferCount(count int) Option

WithMetricBufferCount is an option that allows one to configure the number of metrics that are buffered before the Receiver send them to its MetricsReceiverSink.

func WithMetricBufferPeriod

func WithMetricBufferPeriod(period time.Duration) Option

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

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(nextConsumer consumer.MetricsConsumer, opts ...Option) (*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.

Jump to

Keyboard shortcuts

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