telemetry

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateConnectionError

func EvaluateConnectionError(err error)

EvaluateConnectionError processes error with respect to request failure status code.

func Init

func Init(awsConfig *aws.Config, s *session.Session, resourceARN string, noMetadata bool)

Init instantiates a new instance of Telemetry.

Types

type Telemetry

type Telemetry struct {

	// Boolean channel, set to true when Quit channel is set to true.
	Done chan bool

	// Boolean channel, set to true when daemon is closed,
	Quit chan bool
	// contains filtered or unexported fields
}

Telemetry is used to record X-Ray daemon health.

var T *Telemetry

T is instance of Telemetry.

func GetTestTelemetry

func GetTestTelemetry() *Telemetry

GetTestTelemetry returns an empty telemetry record.

func (*Telemetry) Connection4xx

func (t *Telemetry) Connection4xx(count int64)

Connection4xx increments HTTPCode4XXCount for the Telemetry record.

func (*Telemetry) Connection5xx

func (t *Telemetry) Connection5xx(count int64)

Connection5xx increments HTTPCode5XXCount count for the Telemetry record.

func (*Telemetry) ConnectionOther

func (t *Telemetry) ConnectionOther(count int64)

ConnectionOther increments other BackendConnectionErrors count for the Telemetry record.

func (*Telemetry) ConnectionRefusal

func (t *Telemetry) ConnectionRefusal(count int64)

ConnectionRefusal increments ConnectionRefusedCount for the Telemetry record.

func (*Telemetry) ConnectionTimeout

func (t *Telemetry) ConnectionTimeout(count int64)

ConnectionTimeout increments TimeoutCount for the Telemetry record.

func (*Telemetry) ConnectionUnknownHost

func (t *Telemetry) ConnectionUnknownHost(count int64)

ConnectionUnknownHost increments unknown host BackendConnectionErrors count for the Telemetry record.

func (*Telemetry) SegmentReceived

func (t *Telemetry) SegmentReceived(count int64)

SegmentReceived increments SegmentsReceivedCount for the Telemetry record.

func (*Telemetry) SegmentRejected

func (t *Telemetry) SegmentRejected(count int64)

SegmentRejected increments SegmentsRejectedCount for the Telemetry record.

func (*Telemetry) SegmentSent

func (t *Telemetry) SegmentSent(count int64)

SegmentSent increments SegmentsSentCount for the Telemetry record.

func (*Telemetry) SegmentSpillover

func (t *Telemetry) SegmentSpillover(count int64)

SegmentSpillover increments SegmentsSpilloverCount for the Telemetry record.

Jump to

Keyboard shortcuts

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