Documentation
¶
Index ¶
- type Consumer
- func (Consumer) Capabilities() consumer.Capabilities
- func (Consumer) ConsumeLogs(ctx context.Context, ld plog.Logs) error
- func (c Consumer) ConsumeMetrics(ctx context.Context, md pmetric.Metrics) error
- func (Consumer) ConsumeTraces(ctx context.Context, td ptrace.Traces) error
- func (c *Consumer) Shutdown(ctx context.Context)
- type OtelReceiver
- type OtelReceiverOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func (Consumer) Capabilities ¶
func (Consumer) Capabilities() consumer.Capabilities
Capabilities implements consumer.Traces.
func (Consumer) ConsumeLogs ¶
ConsumeLogs implements consumer.Logs.
func (Consumer) ConsumeMetrics ¶
ConsumeMetrics implements consumer.Metrics.
func (Consumer) ConsumeTraces ¶
ConsumeTraces implements consumer.Traces.
type OtelReceiver ¶
type OtelReceiver struct {
Endpoint string
// contains filtered or unexported fields
}
func StartOtelReceiver ¶
func StartOtelReceiver(ctx context.Context, opts ...OtelReceiverOption) (*OtelReceiver, error)
func (*OtelReceiver) Shutdown ¶
func (r *OtelReceiver) Shutdown(ctx context.Context)
type OtelReceiverOption ¶
type OtelReceiverOption func(*Consumer)
func WithMetricsFilename ¶
func WithMetricsFilename(filename string) OtelReceiverOption
Click to show internal directories.
Click to hide internal directories.