otlp

package
v0.0.0-...-c8bf5b5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenInt64Timeseries

func GenInt64Timeseries(
	startTime time.Time, offset int, valuesPerTimeseries int,
) []*otlpmetric.NumberDataPoint

func GenMetricDescriptor

func GenMetricDescriptor(i int) *otlpmetric.Metric

func GenResource

func GenResource() *otlpresource.Resource

Types

type Generator

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

Generator allows to generate a ExportRequest.

func NewGenerator

func NewGenerator() *Generator

func (*Generator) GenerateLogBatch

func (g *Generator) GenerateLogBatch(logsPerBatch int, attrsPerLog int) core.ExportRequest

func (*Generator) GenerateMetricBatch

func (g *Generator) GenerateMetricBatch(
	metricsPerBatch int,
	valuesPerTimeseries int,
	int64 bool,
	histogram bool,
	summary bool,
) core.ExportRequest

func (*Generator) GenerateSpanBatch

func (g *Generator) GenerateSpanBatch(
	spansPerBatch int, attrsPerSpan int, timedEventsPerSpan int,
) core.ExportRequest

type SpanTranslator

type SpanTranslator struct {
}

func (*SpanTranslator) TranslateSpans

Directories

Path Synopsis
collector
common
v1
logs
v1
metrics
v1
resource
v1
trace
v1

Jump to

Keyboard shortcuts

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