Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GeneratedLogs ¶
type GeneratedLogs struct { Logs []*plog.LogRecord RLogs []*plog.ResourceLogs SLogs []*plog.ScopeLogs }
func GenerateOTLPLogsPayload ¶
type GeneratedMetrics ¶
type GeneratedMetrics struct { Metrics []*pmetric.Metric RMetrics []*pmetric.ResourceMetrics SMetrics []*pmetric.ScopeMetrics }
type GeneratedSpans ¶
type GeneratedSpans struct { Spans []*ptrace.Span RSpans []*ptrace.ResourceSpans SSpans []*ptrace.ScopeSpans }
func GenerateOTLPTracesPayload ¶
func GenerateOTLPTracesPayload(t *testing.T, traceID, resourceCount int, scopeCount []int, spanCount [][]int) (ptrace.Traces, *GeneratedSpans)
This is written referencing following code: https://github.com/CtrlSpice/otel-desktop-viewer/blob/af38ec47a37564e5f03b6d9cefa20b2422033e03/desktopexporter/testdata/trace.go
Click to show internal directories.
Click to hide internal directories.