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) ConsumeProfiles(_ context.Context, td pprofile.Profiles) 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) ConsumeProfiles(ctx context.Context, td pprofile.Profiles) 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 ¶
var ExampleConnectorFactory = xconnector.NewFactory( connType, createExampleConnectorDefaultConfig, xconnector.WithTracesToTraces(createExampleTracesToTraces, component.StabilityLevelDevelopment), xconnector.WithTracesToMetrics(createExampleTracesToMetrics, component.StabilityLevelDevelopment), xconnector.WithTracesToLogs(createExampleTracesToLogs, component.StabilityLevelDevelopment), xconnector.WithTracesToProfiles(createExampleTracesToProfiles, component.StabilityLevelDevelopment), xconnector.WithMetricsToTraces(createExampleMetricsToTraces, component.StabilityLevelDevelopment), xconnector.WithMetricsToMetrics(createExampleMetricsToMetrics, component.StabilityLevelDevelopment), xconnector.WithMetricsToLogs(createExampleMetricsToLogs, component.StabilityLevelDevelopment), xconnector.WithMetricsToProfiles(createExampleMetricsToProfiles, component.StabilityLevelDevelopment), xconnector.WithLogsToTraces(createExampleLogsToTraces, component.StabilityLevelDevelopment), xconnector.WithLogsToMetrics(createExampleLogsToMetrics, component.StabilityLevelDevelopment), xconnector.WithLogsToLogs(createExampleLogsToLogs, component.StabilityLevelDevelopment), xconnector.WithLogsToProfiles(createExampleLogsToProfiles, component.StabilityLevelDevelopment), xconnector.WithProfilesToTraces(createExampleProfilesToTraces, component.StabilityLevelDevelopment), xconnector.WithProfilesToMetrics(createExampleProfilesToMetrics, component.StabilityLevelDevelopment), xconnector.WithProfilesToLogs(createExampleProfilesToLogs, component.StabilityLevelDevelopment), xconnector.WithProfilesToProfiles(createExampleProfilesToProfiles, component.StabilityLevelDevelopment), )
ExampleConnectorFactory is factory for ExampleConnector.
var ExampleExporterFactory = xexporter.NewFactory( exporterType, createExporterDefaultConfig, xexporter.WithTraces(createTracesExporter, component.StabilityLevelDevelopment), xexporter.WithMetrics(createMetricsExporter, component.StabilityLevelDevelopment), xexporter.WithLogs(createLogsExporter, component.StabilityLevelDevelopment), xexporter.WithProfiles(createProfilesExporter, component.StabilityLevelDevelopment), )
ExampleExporterFactory is factory for ExampleExporter.
var ExampleProcessorFactory = xprocessor.NewFactory( procType, createDefaultConfig, xprocessor.WithTraces(createTracesProcessor, component.StabilityLevelDevelopment), xprocessor.WithMetrics(createMetricsProcessor, component.StabilityLevelDevelopment), xprocessor.WithLogs(createLogsProcessor, component.StabilityLevelDevelopment), xprocessor.WithProfiles(createProfilesProcessor, component.StabilityLevelDevelopment), )
ExampleProcessorFactory is factory for ExampleProcessor.
var ExampleReceiverFactory = xreceiver.NewFactory( receiverType, createReceiverDefaultConfig, xreceiver.WithTraces(createTracesReceiver, component.StabilityLevelDevelopment), xreceiver.WithMetrics(createMetricsReceiver, component.StabilityLevelDevelopment), xreceiver.WithLogs(createLogsReceiver, component.StabilityLevelDevelopment), xreceiver.WithProfiles(createProfilesReceiver, component.StabilityLevelDevelopment), )
ExampleReceiverFactory is factory for ExampleReceiver.
var ExampleRouterFactory = xconnector.NewFactory( routerType, createExampleRouterDefaultConfig, xconnector.WithTracesToTraces(createExampleTracesRouter, component.StabilityLevelDevelopment), xconnector.WithMetricsToMetrics(createExampleMetricsRouter, component.StabilityLevelDevelopment), xconnector.WithLogsToLogs(createExampleLogsRouter, component.StabilityLevelDevelopment), xconnector.WithProfilesToProfiles(createExampleProfilesRouter, component.StabilityLevelDevelopment), )
ExampleRouterFactory is factory for ExampleRouter.
var MockForwardConnectorFactory = xconnector.NewFactory( component.MustNewType("mockforward"), createExampleConnectorDefaultConfig, xconnector.WithTracesToTraces(createExampleTracesToTraces, component.StabilityLevelDevelopment), xconnector.WithMetricsToMetrics(createExampleMetricsToMetrics, component.StabilityLevelDevelopment), xconnector.WithLogsToLogs(createExampleLogsToLogs, component.StabilityLevelDevelopment), xconnector.WithProfilesToProfiles(createExampleProfilesToProfiles, component.StabilityLevelDevelopment), )
Functions ¶
This section is empty.
Types ¶
type ExampleConnector ¶
type ExampleConnector struct { consumer.ConsumeTracesFunc consumer.ConsumeMetricsFunc consumer.ConsumeLogsFunc xconsumer.ConsumeProfilesFunc // contains filtered or unexported fields }
func (*ExampleConnector) Capabilities ¶
func (c *ExampleConnector) Capabilities() consumer.Capabilities
type ExampleExporter ¶
type ExampleExporter struct { Traces []ptrace.Traces Metrics []pmetric.Metrics Logs []plog.Logs Profiles []pprofile.Profiles // contains filtered or unexported fields }
ExampleExporter stores consumed traces, metrics, logs and profiles 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) ConsumeProfiles ¶ added in v0.109.0
ConsumeProfiles receives pprofile.Profiles for processing by the xconsumer.Profiles.
func (*ExampleExporter) ConsumeTraces ¶
ConsumeTraces receives ptrace.Traces for processing by the consumer.Traces.
type ExampleProcessor ¶
type ExampleProcessor struct { consumer.ConsumeTracesFunc consumer.ConsumeMetricsFunc consumer.ConsumeLogsFunc xconsumer.ConsumeProfilesFunc // 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 xconsumer.ConsumeProfilesFunc // contains filtered or unexported fields }
ExampleReceiver allows producing traces, metrics, logs and profiles for testing purposes.
type ExampleRouter ¶
type ExampleRouter struct {
// contains filtered or unexported fields
}
func (*ExampleRouter) Capabilities ¶
func (r *ExampleRouter) Capabilities() consumer.Capabilities
func (*ExampleRouter) ConsumeLogs ¶
func (*ExampleRouter) ConsumeMetrics ¶
func (*ExampleRouter) ConsumeProfiles ¶ added in v0.109.0
func (*ExampleRouter) ConsumeTraces ¶
type ExampleRouterConfig ¶
type ExampleRouterConfig struct { Traces *LeftRightConfig `mapstructure:"traces"` Metrics *LeftRightConfig `mapstructure:"metrics"` Logs *LeftRightConfig `mapstructure:"logs"` Profiles *LeftRightConfig `mapstructure:"profiles"` }