Documentation ¶
Index ¶
- func NewTivanInstrumentationResult(configuration *tivanInstrumentation.InstrumentationConfiguration) (...)
- func NewTivanMetric(metric metric.IMetric) tivanInstrumentation.Metric
- func NewTracerFactory(configuration *trace.TracerConfiguration, entry *log.Entry) trace.ITracerFactory
- type MetricSubmitterConfiguration
- type TracerFactory
- type WrapperTivanMetricSubmitter
- type WrapperTivanMetricSubmitterFactory
- type WrapperTivanTracer
- func (tracer *WrapperTivanTracer) Enabled() bool
- func (tracer *WrapperTivanTracer) Error(err error, msg string, keysAndValues ...interface{})
- func (tracer *WrapperTivanTracer) Info(msg string, keysAndValues ...interface{})
- func (tracer *WrapperTivanTracer) V(level int) logr.Logger
- func (tracer *WrapperTivanTracer) WithName(name string) logr.Logger
- func (tracer *WrapperTivanTracer) WithValues(keysAndValues ...interface{}) logr.Logger
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 *******