Documentation ¶
Index ¶
- func GenInt64Timeseries(startTime time.Time, offset int, valuesPerTimeseries int) []*otlpmetric.NumberDataPoint
- func GenMetricDescriptor(i int) *otlpmetric.Metric
- func GenResource() *otlpresource.Resource
- func ReadTraceMessage(reader io.Reader) *v1.ExportTraceServiceRequest
- type Generator
- func (g *Generator) GenerateLogBatch(logsPerBatch int, attrsPerLog int) core.ExportRequest
- func (g *Generator) GenerateMetricBatch(metricsPerBatch int, valuesPerTimeseries int, int64 bool, histogram bool, ...) core.ExportRequest
- func (g *Generator) GenerateSpanBatch(spansPerBatch int, attrsPerSpan int, timedEventsPerSpan int) core.ExportRequest
- type SpanTranslator
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
func ReadTraceMessage ¶
func ReadTraceMessage(reader io.Reader) *v1.ExportTraceServiceRequest
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 (*Generator) GenerateSpanBatch ¶
type SpanTranslator ¶
type SpanTranslator struct { }
func (*SpanTranslator) TranslateSpans ¶
func (st *SpanTranslator) TranslateSpans(batch *otlptracecol.ExportTraceServiceRequest) core.ExportRequest
Click to show internal directories.
Click to hide internal directories.