-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardize on params vs settings vs options #2650
Comments
How about |
@naseemkullah thanks for the suggestion, we use Maybe we can look how many times we use each of them and make a decision. |
Is someone working on this issue? If not I can do that |
Thanks @pmatyjasek-sumo, assigned to you. |
Fixes open-telemetry#2650 Changes: Replace: ReceiverCreateParams, ProcessorCreateParams, ExtensionCreateParams and ExporterCreateParams with ComponentSettings struct Replace all dependencies in Extensions, Exporters, Processors and Receivers Replace Parameters and settings structs with new struct Settings Replace dependencies in service and main Update tests Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>
Fixes open-telemetry#2650 Changes: Replace: ReceiverCreateParams, ProcessorCreateParams, ExtensionCreateParams and ExporterCreateParams with ComponentSettings struct Replace all dependencies in Extensions, Exporters, Processors and Receivers Replace Parameters and settings structs with new struct Settings Replace dependencies in service and main Update tests Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com> # Conflicts: # exporter/kafkaexporter/factory.go # exporter/kafkaexporter/factory_test.go # exporter/kafkaexporter/kafka_exporter.go # exporter/kafkaexporter/kafka_exporter_test.go # exporter/prometheusexporter/factory.go # receiver/jaegerreceiver/jaeger_agent_test.go # receiver/jaegerreceiver/trace_receiver_test.go # receiver/kafkareceiver/factory.go # receiver/kafkareceiver/factory_test.go # receiver/kafkareceiver/kafka_receiver.go # receiver/kafkareceiver/kafka_receiver_test.go
Fixes open-telemetry#2650 Changes: Replace: ReceiverCreateParams, ProcessorCreateParams, ExtensionCreateParams and ExporterCreateParams with ComponentSettings struct Replace all dependencies in Extensions, Exporters, Processors and Receivers Replace Parameters and settings structs with new struct Settings Replace dependencies in service and main Update tests Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com> # Conflicts: # exporter/kafkaexporter/factory.go # exporter/kafkaexporter/factory_test.go # exporter/kafkaexporter/kafka_exporter.go # exporter/kafkaexporter/kafka_exporter_test.go # exporter/prometheusexporter/factory.go # receiver/jaegerreceiver/jaeger_agent_test.go # receiver/jaegerreceiver/trace_receiver_test.go # receiver/kafkareceiver/factory.go # receiver/kafkareceiver/factory_test.go # receiver/kafkareceiver/kafka_receiver.go # receiver/kafkareceiver/kafka_receiver_test.go # Conflicts: # processor/batchprocessor/batch_processor.go # processor/batchprocessor/batch_processor_test.go # processor/batchprocessor/factory.go # processor/filterprocessor/filter_processor_test.go # service/application.go
Fixes open-telemetry#2650 Changes: Replace: ReceiverCreateParams, ProcessorCreateParams, ExtensionCreateParams and ExporterCreateParams with ComponentSettings struct Replace all dependencies in Extensions, Exporters, Processors and Receivers Replace Parameters and settings structs with new struct Settings Replace dependencies in service and main Update tests Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com> # Conflicts: # exporter/kafkaexporter/factory.go # exporter/kafkaexporter/factory_test.go # exporter/kafkaexporter/kafka_exporter.go # exporter/kafkaexporter/kafka_exporter_test.go # exporter/prometheusexporter/factory.go # receiver/jaegerreceiver/jaeger_agent_test.go # receiver/jaegerreceiver/trace_receiver_test.go # receiver/kafkareceiver/factory.go # receiver/kafkareceiver/factory_test.go # receiver/kafkareceiver/kafka_receiver.go # receiver/kafkareceiver/kafka_receiver_test.go # Conflicts: # processor/batchprocessor/batch_processor.go # processor/batchprocessor/batch_processor_test.go # processor/batchprocessor/factory.go # processor/filterprocessor/filter_processor_test.go # service/application.go # Conflicts: # cmd/otelcol/main.go # component/component.go # component/exporter.go # component/extension.go # component/processor.go # component/processor_test.go # component/receiver.go # exporter/exporterhelper/factory_test.go # extension/extensionhelper/factory_test.go # processor/batchprocessor/batch_processor.go # processor/processorhelper/factory_test.go # receiver/jaegerreceiver/factory.go # receiver/jaegerreceiver/trace_receiver_test.go # receiver/otlpreceiver/factory.go # receiver/prometheusreceiver/factory.go # receiver/receiverhelper/factory_test.go # service/application.go # service/application_test.go # service/defaultcomponents/default_exporters_test.go # service/defaultcomponents/default_extensions_test.go # service/defaultcomponents/default_processors_test.go # service/defaultcomponents/default_receivers_test.go # service/internal/builder/exporters_builder.go # service/internal/builder/extensions_builder.go # service/internal/builder/pipelines_builder.go # service/internal/builder/receivers_builder.go # service/service.go # service/service_test.go # testbed/testbed/otelcol_runner.go
@mxiamxia @anuraaga @Aneurysm9 can you please review? |
…tream (open-telemetry#2650) * Changes to the pulsarexporter configuration to prepare with using upstream * fieldalignment fix
In few places for constructors we use "Params" (in the components), some "Parameters" (in the Service) or "Settings" in the components helpers like exporterhelper.
We need to decide on a name a pattern: expose a struct with these properties or expose "Options" and use variadic args.
Consolidate all interfaces to follow the same pattern.
The text was updated successfully, but these errors were encountered: