Documentation ¶
Overview ¶
Package collector implements a test OTEL collector to use in unit tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricRecord ¶
type MetricRecord struct { Attributes map[string]string Name string Unit string Type pmetric.MetricType }
MetricRecord stores some metadata from the received metrics
type TestCollector ¶
type TestCollector struct { ServerEndpoint string // TODO: add also traces history Records chan MetricRecord TraceRecords chan TraceRecord }
TestCollector is a dummy OLTP test collector that allows retrieving part of the collected metrics Useful for unit testing
Click to show internal directories.
Click to hide internal directories.