Skip to content

Conversation

@pmatyjasek-sumo
Copy link
Contributor

This PR depends on open-telemetry/opentelemetry-collector#2991

Description:
A proposal solution of standarize constructors parameters

Description:
Fixes open-telemetry/opentelemetry-collector#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

Link to tracking Issue:
open-telemetry/opentelemetry-collector#2650
Testing:

Documentation:

Signed-off-by: Patryk Matyjasek <[email protected]>

# Conflicts:
#	cmd/otelcontribcol/main.go
#	exporter/awsemfexporter/emf_exporter.go
#	exporter/awsemfexporter/factory_test.go
#	exporter/awsxrayexporter/awsxray.go
#	exporter/awsxrayexporter/factory_test.go
#	exporter/datadogexporter/factory_test.go
#	exporter/datadogexporter/metadata/metadata.go
#	exporter/datadogexporter/metadata/metadata_test.go
#	exporter/datadogexporter/metrics_exporter.go
#	exporter/datadogexporter/traces_exporter.go
#	exporter/dynatraceexporter/factory_test.go
#	exporter/f5cloudexporter/factory.go
#	exporter/googlecloudexporter/googlecloud.go
#	exporter/googlecloudexporter/googlecloud_test.go
#	exporter/honeycombexporter/factory_test.go
#	exporter/loadbalancingexporter/loadbalancer_test.go
#	exporter/loadbalancingexporter/log_exporter.go
#	exporter/loadbalancingexporter/trace_exporter.go
#	exporter/loadbalancingexporter/trace_exporter_test.go
#	exporter/logzioexporter/factory_test.go
#	exporter/newrelicexporter/factory.go
#	exporter/newrelicexporter/newrelic_test.go
#	exporter/sapmexporter/exporter_test.go
#	exporter/uptraceexporter/factory_test.go
#	extension/storage/filestorage/factory.go
#	internal/stanza/factory.go
#	processor/metricstransformprocessor/factory.go
#	processor/resourcedetectionprocessor/factory.go
#	receiver/prometheusexecreceiver/factory_test.go
#	receiver/receivercreator/receiver.go
#	receiver/receivercreator/runner.go
#	receiver/receivercreator/runner_test.go
# Conflicts:
#	go.sum
@pmatyjasek-sumo pmatyjasek-sumo force-pushed the pm_standarize_params_refactor branch from 82df77c to af38d5b Compare May 5, 2021 12:02
@pmatyjasek-sumo pmatyjasek-sumo requested a review from alolita as a code owner May 5, 2021 12:02
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label May 27, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2021

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Jun 3, 2021
alexperez52 referenced this pull request in open-o11y/opentelemetry-collector-contrib Aug 18, 2021
* Create snyk-container-analysis.yml

* Create snyk-container-analysis.yml

* Renamed occurrences of Application to Collector

- Changed references in function/method docs from 'application' to 'collector server'
- Changed instance variable names from (app *Application) to (col *Collector)

* Rename more instances of Application to Collector

- renamed files in service/application* to service/collector*
- replaced occurrences of app to col

* Renamed references of service.Application to collector (or collector server)

* Added change log entry stub

* Added number of PR

* Fixed merge conflicts

* Update CHANGELOG.md

* Renamed ColSettings to CollectorSettings

* Fixed naming error

* Delete snyk-container-analysis.yml

* Moved change log entry unreleased section

From v0.28.0-beta to unreleased (breaking change)

* Deleted extra new line in change log

* Renamed occurrences of Application to Collector

- Changed references in function/method docs from 'application' to 'collector server'
- Changed instance variable names from (app *Application) to (col *Collector)

* Rename more instances of Application to Collector

- renamed files in service/application* to service/collector*
- replaced occurrences of app to col

* Renamed references of service.Application to collector (or collector server)

* Added number of PR

* Fixed merge conflicts

* Renamed ColSettings to CollectorSettings

* Fixed naming error

* Moved change log entry unreleased section

From v0.28.0-beta to unreleased (breaking change)

* Removed misplaced newline

Co-authored-by: Karen Xu <[email protected]>
Co-authored-by: Iris Song <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standardize on params vs settings vs options

3 participants