-
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
Standarize Settings, Params and Parameters in Exporters #3164
Standarize Settings, Params and Parameters in Exporters #3164
Conversation
@@ -33,19 +33,19 @@ func TestNewNopExporterFactory(t *testing.T) { | |||
cfg := factory.CreateDefaultConfig() | |||
assert.Equal(t, &nopExporterConfig{ExporterSettings: config.NewExporterSettings(config.NewID("nop"))}, cfg) | |||
|
|||
traces, err := factory.CreateTracesExporter(context.Background(), component.ExporterCreateParams{}, cfg) | |||
traces, err := factory.CreateTracesExporter(context.Background(), component.ComponentSettings{}, cfg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is used a lot in tests (lot's of time with zap.Nop), probably good to have in componenttest
a NopComponentSettings
or TestComponentSettings
that uses zap.Nop + DefaultBuildInfo and pass that in tests.
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
e48d8ab
to
8006b6e
Compare
Looks good to me, but needs to fix to apply @bogdandrutu's feedback, resolve conflicts and make sure the tests pass. |
Please rebase |
Also add a changelog entry |
8006b6e
to
31aebd6
Compare
31aebd6
to
9677096
Compare
Please rebase the PR to fix merge conflicts |
Replace all dependencies in Exporters. Signed-off-by: Patryk Matyjasek <[email protected]> # Conflicts: # exporter/prometheusremotewriteexporter/factory.go # Conflicts: # exporter/fileexporter/factory.go # exporter/opencensusexporter/factory_test.go # exporter/otlpexporter/factory_test.go # exporter/prometheusremotewriteexporter/factory_test.go # Conflicts: # CHANGELOG.md # exporter/kafkaexporter/factory.go # exporter/opencensusexporter/factory.go # exporter/otlpexporter/factory.go # exporter/otlphttpexporter/factory.go # exporter/zipkinexporter/factory.go # Conflicts: # CHANGELOG.md # component/exporter.go # exporter/opencensusexporter/factory_test.go
9677096
to
8e5a1a0
Compare
rebase done |
Description:
Continuation work from #2991
Fixes #2650
Replace ExporterCreateParams with ExporterCreateSettings.
Replace all dependencies in Exporters.
Link to tracking Issue:
#2650
Testing:
Update unit tests
Documentation:
In code comments