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 (exp *ExampleExporter) Shutdown(context.Context) error
- func (exp *ExampleExporter) Start(_ context.Context, _ component.Host) error
- type ExampleProcessor
- type ExampleReceiver
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.
Functions ¶
This section is empty.
Types ¶
type ExampleConnector ¶ added in v0.68.0
type ExampleConnector struct { consumer.ConsumeTracesFunc consumer.ConsumeMetricsFunc consumer.ConsumeLogsFunc Started bool Stopped bool }
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 Started bool Stopped bool }
ExampleExporter stores consumed traces and metrics for testing purposes.
func (*ExampleExporter) Capabilities ¶
func (exp *ExampleExporter) Capabilities() consumer.Capabilities
func (*ExampleExporter) ConsumeLogs ¶
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.
func (*ExampleExporter) Shutdown ¶
func (exp *ExampleExporter) Shutdown(context.Context) error
Shutdown is invoked during shutdown.
type ExampleProcessor ¶
type ExampleProcessor struct { consumer.Traces consumer.Metrics consumer.Logs Started bool Stopped bool }
func (*ExampleProcessor) Capabilities ¶
func (ep *ExampleProcessor) Capabilities() consumer.Capabilities
type ExampleReceiver ¶
type ExampleReceiver struct { consumer.Traces consumer.Metrics consumer.Logs Started bool Stopped bool }
ExampleReceiver allows producing traces and metrics for testing purposes.
Click to show internal directories.
Click to hide internal directories.