[chore]: fix godoc comments for connector/extension Factories (#6963)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
This commit is contained in:
parent
0ca5a80ca7
commit
39ccb07aa7
|
@ -218,7 +218,7 @@ func (f CreateMetricsToTracesFunc) CreateMetricsToTraces(
|
|||
// CreateMetricsToMetricsFunc is the equivalent of Factory.CreateMetricsToTraces().
|
||||
type CreateMetricsToMetricsFunc func(context.Context, CreateSettings, component.Config, consumer.Metrics) (Metrics, error)
|
||||
|
||||
// CreateMetricsToTraces implements Factory.CreateMetricsToTraces().
|
||||
// CreateMetricsToMetrics implements Factory.CreateMetricsToTraces().
|
||||
func (f CreateMetricsToMetricsFunc) CreateMetricsToMetrics(
|
||||
ctx context.Context,
|
||||
set CreateSettings,
|
||||
|
@ -263,7 +263,7 @@ func (f CreateLogsToTracesFunc) CreateLogsToTraces(
|
|||
return f(ctx, set, cfg, nextConsumer)
|
||||
}
|
||||
|
||||
// CreateLogsToMetricssFunc is the equivalent of Factory.CreateLogsToMetrics().
|
||||
// CreateLogsToMetricsFunc is the equivalent of Factory.CreateLogsToMetrics().
|
||||
type CreateLogsToMetricsFunc func(context.Context, CreateSettings, component.Config, consumer.Metrics) (Logs, error)
|
||||
|
||||
// CreateLogsToMetrics implements Factory.CreateLogsToMetrics().
|
||||
|
|
|
@ -57,7 +57,7 @@ type CreateSettings struct {
|
|||
// CreateFunc is the equivalent of Factory.Create(...) function.
|
||||
type CreateFunc func(context.Context, CreateSettings, component.Config) (Extension, error)
|
||||
|
||||
// Create implements Factory.Create.
|
||||
// CreateExtension implements Factory.Create.
|
||||
func (f CreateFunc) CreateExtension(ctx context.Context, set CreateSettings, cfg component.Config) (Extension, error) {
|
||||
return f(ctx, set, cfg)
|
||||
}
|
||||
|
@ -65,10 +65,10 @@ func (f CreateFunc) CreateExtension(ctx context.Context, set CreateSettings, cfg
|
|||
type Factory interface {
|
||||
component.Factory
|
||||
|
||||
// Create creates an extension based on the given config.
|
||||
// CreateExtension creates an extension based on the given config.
|
||||
CreateExtension(ctx context.Context, set CreateSettings, cfg component.Config) (Extension, error)
|
||||
|
||||
// Stability gets the stability level of the Extension.
|
||||
// ExtensionStability gets the stability level of the Extension.
|
||||
ExtensionStability() component.StabilityLevel
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue