tivan

package
v0.0.0-...-035f276 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTivanInstrumentationResult

func NewTivanInstrumentationResult(configuration *tivanInstrumentation.InstrumentationConfiguration) (instrumentationResult *tivanInstrumentation.InstrumentationInitializationResult, err error)

NewTivanInstrumentationResult Creates new tivanInstrumentation.InstrumentationInitializationResult - tivan instrumentation object. It is creating it by creating tivan's configuration, and then initialize the instrumentation

func NewTivanMetric

func NewTivanMetric(metric metric.IMetric) tivanInstrumentation.Metric

NewTivanMetric Ctor for tivanMetric

func NewTracerFactory

func NewTracerFactory(configuration *trace.TracerConfiguration, entry *log.Entry) trace.ITracerFactory

NewTracerFactory creates new TracerFactory instance.

Types

type MetricSubmitterConfiguration

type MetricSubmitterConfiguration struct {
}

MetricSubmitterConfiguration is the configuration for the metric submitter.

type TracerFactory

type TracerFactory struct {
	// contains filtered or unexported fields
}

TracerFactory implementation of ITracerFactory.

func (*TracerFactory) CreateTracer

func (factory *TracerFactory) CreateTracer() (tracer trace.ITracer)

CreateTracer Creates tracer

type WrapperTivanMetricSubmitter

type WrapperTivanMetricSubmitter struct {
	// contains filtered or unexported fields
}

func NewWrapperTivanMetricSubmitter

func NewWrapperTivanMetricSubmitter(tivanMetricSubmitter tivanInstrumentation.MetricSubmitter) *WrapperTivanMetricSubmitter

NewWrapperTivanMetricSubmitter Ctor for WrapperTivanMetricSubmitter

func (*WrapperTivanMetricSubmitter) SendMetric

func (wrapper *WrapperTivanMetricSubmitter) SendMetric(value int, metric metric.IMetric)

SendMetric send metric using tivan's metric submitter.

type WrapperTivanMetricSubmitterFactory

type WrapperTivanMetricSubmitterFactory struct {
	// contains filtered or unexported fields
}

WrapperTivanMetricSubmitterFactory implement the IMetricSubmitterFactory and creates the default metric submitter. It wraps Tivan's MetricSubmitter

func NewMetricSubmitterFactory

func NewMetricSubmitterFactory(configuration *MetricSubmitterConfiguration, metricSubmitter tivanInstrumentation.MetricSubmitter) (factory *WrapperTivanMetricSubmitterFactory)

NewMetricSubmitterFactory creates WrapperTivanMetricSubmitterFactory that creates metric submitter by wrapping the metric submitter of Tivan

func (*WrapperTivanMetricSubmitterFactory) CreateMetricSubmitter

func (factory *WrapperTivanMetricSubmitterFactory) CreateMetricSubmitter() (metricSubmitter metric.IMetricSubmitter)

CreateMetricSubmitter creates new IMetricSubmitter by using the metric submitter of Tivan

type WrapperTivanTracer

type WrapperTivanTracer struct {
	// contains filtered or unexported fields
}

WrapperTivanTracer implementation of ITracer interface - holds an Entry object in order to delegate Tivan tracer methods.

func NewWrapperTivanTracer

func NewWrapperTivanTracer(entry *logrus.Entry, context string, level zapcore.Level, encoder trace.Encoder) (tracer *WrapperTivanTracer)

NewWrapperTivanTracer Ctor of tracer

func (*WrapperTivanTracer) Enabled

func (tracer *WrapperTivanTracer) Enabled() bool

Enabled tests whether this Logger is enabled. delegate this method using Tracer.Entry data member in order to implement logr.Logger interface

******* DOESN'T DO ANYTHING - RETURN THE SAME TRACER *******

func (*WrapperTivanTracer) Error

func (tracer *WrapperTivanTracer) Error(err error, msg string, keysAndValues ...interface{})

Error writes error. delegate this method using Tracer.Entry data member in order to implement logr.Logger interface

func (*WrapperTivanTracer) Info

func (tracer *WrapperTivanTracer) Info(msg string, keysAndValues ...interface{})

Info writes msg. delegate this method using Tracer.Entry data member in order to implement logr.Logger interface

func (*WrapperTivanTracer) V

func (tracer *WrapperTivanTracer) V(level int) logr.Logger

V implements this method only for logr.Logger interface.

******* DOESN'T DO ANYTHING - RETURN THE SAME TRACER *******

func (*WrapperTivanTracer) WithName

func (tracer *WrapperTivanTracer) WithName(name string) logr.Logger

WithName adds a new element to the logger's name. Successive calls with WithName continue to append suffixes to the logger's name.

func (*WrapperTivanTracer) WithValues

func (tracer *WrapperTivanTracer) WithValues(keysAndValues ...interface{}) logr.Logger

WithValues implements this method only for logr.Logger interface.

******* DOESN'T DO ANYTHING - RETURN THE SAME TRACER *******

Jump to

Keyboard shortcuts

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