Documentation ¶
Index ¶
- Variables
- type ExampleConnector
- type ExampleExporter
- func (exp *ExampleExporter) Capabilities() consumer.Capabilities
- func (exp *ExampleExporter) ConsumeLogs(_ context.Context, ld plog.Logs) error
- func (exp *ExampleExporter) ConsumeMetrics(_ context.Context, md pmetric.Metrics) error
- func (exp *ExampleExporter) ConsumeTraces(_ context.Context, td ptrace.Traces) error
- func (cs *ExampleExporter) Shutdown(_ context.Context) error
- func (cs *ExampleExporter) Start(_ context.Context, _ component.Host) error
- func (cs *ExampleExporter) Started() bool
- func (cs *ExampleExporter) Stopped() bool
- type ExampleProcessor
- type ExampleReceiver
- type ExampleRouter
- func (r *ExampleRouter) Capabilities() consumer.Capabilities
- func (r *ExampleRouter) ConsumeLogs(ctx context.Context, ld plog.Logs) error
- func (r *ExampleRouter) ConsumeMetrics(ctx context.Context, md pmetric.Metrics) error
- func (r *ExampleRouter) ConsumeTraces(ctx context.Context, td ptrace.Traces) error
- func (cs *ExampleRouter) Shutdown(_ context.Context) error
- func (cs *ExampleRouter) Start(_ context.Context, _ component.Host) error
- func (cs *ExampleRouter) Started() bool
- func (cs *ExampleRouter) Stopped() bool
- type ExampleRouterConfig
- type LeftRightConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ExampleConnectorFactory = connector.NewFactory( connType, createExampleConnectorDefaultConfig, connector.WithTracesToTraces(createExampleTracesToTraces, component.StabilityLevelDevelopment), connector.WithTracesToMetrics(createExampleTracesToMetrics, component.StabilityLevelDevelopment), connector.WithTracesToLogs(createExampleTracesToLogs, component.StabilityLevelDevelopment), connector.WithMetricsToTraces(createExampleMetricsToTraces, component.StabilityLevelDevelopment), connector.WithMetricsToMetrics(createExampleMetricsToMetrics, component.StabilityLevelDevelopment), connector.WithMetricsToLogs(createExampleMetricsToLogs, component.StabilityLevelDevelopment), connector.WithLogsToTraces(createExampleLogsToTraces, component.StabilityLevelDevelopment), connector.WithLogsToMetrics(createExampleLogsToMetrics, component.StabilityLevelDevelopment), connector.WithLogsToLogs(createExampleLogsToLogs, component.StabilityLevelDevelopment), )
ExampleConnectorFactory is factory for ExampleConnector.
View Source
var ExampleExporterFactory = exporter.NewFactory( typeStr, createExporterDefaultConfig, exporter.WithTraces(createTracesExporter, stability), exporter.WithMetrics(createMetricsExporter, stability), exporter.WithLogs(createLogsExporter, stability), )
ExampleExporterFactory is factory for ExampleExporter.
View Source
var ExampleProcessorFactory = processor.NewFactory( procType, createDefaultConfig, processor.WithTraces(createTracesProcessor, component.StabilityLevelDevelopment), processor.WithMetrics(createMetricsProcessor, component.StabilityLevelDevelopment), processor.WithLogs(createLogsProcessor, component.StabilityLevelDevelopment))
ExampleProcessorFactory is factory for ExampleProcessor.
View Source
var ExampleReceiverFactory = receiver.NewFactory( receiverType, createReceiverDefaultConfig, receiver.WithTraces(createTracesReceiver, component.StabilityLevelDevelopment), receiver.WithMetrics(createMetricsReceiver, component.StabilityLevelDevelopment), receiver.WithLogs(createLogsReceiver, component.StabilityLevelDevelopment))
ExampleReceiverFactory is factory for ExampleReceiver.
View Source
var ExampleRouterFactory = connector.NewFactory( routerType, createExampleRouterDefaultConfig, connector.WithTracesToTraces(createExampleTracesRouter, component.StabilityLevelDevelopment), connector.WithMetricsToMetrics(createExampleMetricsRouter, component.StabilityLevelDevelopment), connector.WithLogsToLogs(createExampleLogsRouter, component.StabilityLevelDevelopment), )
ExampleRouterFactory is factory for ExampleRouter.
Functions ¶
This section is empty.
Types ¶
type ExampleConnector ¶ added in v0.68.0
type ExampleConnector struct { consumer.ConsumeTracesFunc consumer.ConsumeMetricsFunc consumer.ConsumeLogsFunc // contains filtered or unexported fields }
func (*ExampleConnector) Capabilities ¶ added in v0.68.0
func (c *ExampleConnector) Capabilities() consumer.Capabilities
type ExampleExporter ¶
type ExampleExporter struct { Traces []ptrace.Traces Metrics []pmetric.Metrics Logs []plog.Logs // contains filtered or unexported fields }
ExampleExporter stores consumed traces and metrics for testing purposes.
func (*ExampleExporter) Capabilities ¶
func (exp *ExampleExporter) Capabilities() consumer.Capabilities
func (*ExampleExporter) ConsumeLogs ¶
ConsumeLogs receives plog.Logs for processing by the Logs.
func (*ExampleExporter) ConsumeMetrics ¶
ConsumeMetrics receives pmetric.Metrics for processing by the Metrics.
func (*ExampleExporter) ConsumeTraces ¶
ConsumeTraces receives ptrace.Traces for processing by the consumer.Traces.
type ExampleProcessor ¶
type ExampleProcessor struct { consumer.ConsumeTracesFunc consumer.ConsumeMetricsFunc consumer.ConsumeLogsFunc // contains filtered or unexported fields }
func (*ExampleProcessor) Capabilities ¶
func (ep *ExampleProcessor) Capabilities() consumer.Capabilities
type ExampleReceiver ¶
type ExampleReceiver struct { consumer.ConsumeTracesFunc consumer.ConsumeMetricsFunc consumer.ConsumeLogsFunc // contains filtered or unexported fields }
ExampleReceiver allows producing traces and metrics for testing purposes.
type ExampleRouter ¶ added in v0.73.0
type ExampleRouter struct {
// contains filtered or unexported fields
}
func (*ExampleRouter) Capabilities ¶ added in v0.73.0
func (r *ExampleRouter) Capabilities() consumer.Capabilities
func (*ExampleRouter) ConsumeLogs ¶ added in v0.73.0
func (*ExampleRouter) ConsumeMetrics ¶ added in v0.73.0
func (*ExampleRouter) ConsumeTraces ¶ added in v0.73.0
type ExampleRouterConfig ¶ added in v0.73.0
type ExampleRouterConfig struct { Traces *LeftRightConfig `mapstructure:"traces"` Metrics *LeftRightConfig `mapstructure:"metrics"` Logs *LeftRightConfig `mapstructure:"logs"` }
Click to show internal directories.
Click to hide internal directories.