observation

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricVecStore = &metricVecStore{
	counters:   map[int64]*counterVecWrap{},
	gauges:     map[int64]*gaugeVecWrap{},
	histograms: map[int64]*histogramVecWrap{},
	summaries:  map[int64]*summaryVecWrap{},
}
View Source
var ObserveHelper = &observeHelper{}
View Source
var PrometheusPusher = push.New(prometheusFakeGateway.URL, "test")

Functions

func DoTag

func DoTagFaster

func DoTagFaster(dst []byte, cfg []*cb.AttributeConfigure, er *cb.EventRepresentation) []byte

func DoTraceTag

func DoTraceTag(cfg []*cb.AttributeConfigure, er *cb.EventRepresentation) map[string]interface{}

func NewTracer

func NewTracer(serviceName, host string, ratio float64) (opentracing.Tracer, error)

NewTracer returns a newly configured tracer

Types

type AttributeConfiguration

type AttributeConfiguration cb.AttributeConfigure

type Configure

type Configure cb.ObservationConfigure

func (*Configure) Do

func (c *Configure) Do(ctx *context.Context, ed *cb.EventData) (cntL, cntT, cntM int)

Do function returns number of log, trace span and metric entries

func (*Configure) Prepare

func (c *Configure) Prepare(ctx *context.Context, ed *cb.EventData)

Prepare pre-allocate SpanID

type LoggingConfigure

type LoggingConfigure cb.LoggingConfigure

func (*LoggingConfigure) Do

func (c *LoggingConfigure) Do(ed *cb.EventData) int

type MetricsConfigure

type MetricsConfigure cb.MetricsConfigure

func (*MetricsConfigure) Do

func (c *MetricsConfigure) Do(ed *cb.EventData) int

type StackTraceConfigure

type StackTraceConfigure cb.StackTraceConfigure

func (*StackTraceConfigure) Do

func (c *StackTraceConfigure) Do()

type TimestampConfigure

type TimestampConfigure cb.TimestampConfigure

func (*TimestampConfigure) Do

func (c *TimestampConfigure) Do()

type TracingConfigure

type TracingConfigure cb.TracingConfigure

func (*TracingConfigure) Do

func (c *TracingConfigure) Do(ctx *context.Context, ed *cb.EventData) int

Jump to

Keyboard shortcuts

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