-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Standarize Settings, Params and Parameters in Receiver #3167
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 Receiver #3167
Conversation
|
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
ba163ec to
f78a9e3
Compare
| assert.Equal(t, &nopReceiverConfig{ReceiverSettings: config.NewReceiverSettings(config.NewID("nop"))}, cfg) | ||
|
|
||
| traces, err := factory.CreateTracesReceiver(context.Background(), component.ReceiverCreateParams{}, cfg, consumertest.NewNop()) | ||
| traces, err := factory.CreateTracesReceiver(context.Background(), component.ReceiverCreateSettings{}, cfg, consumertest.NewNop()) |
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.
Just as the other test, it may be useful to have a nop instance. Not a biggie though.
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.
Sure, but I didn't want to change any logic there. Only refactor the code
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.
Please rebase
f78a9e3 to
aa553d7
Compare
|
Lint errors |
aa553d7 to
b777fc7
Compare
|
Failing tests not fixed. |
b777fc7 to
e506652
Compare
|
Rebased and tests fixed |
|
Sorry, merged another one of our PRs and a rebase is needed again :) |
|
ok :) I'll do it again |
Replace all dependencies in Receivers. Signed-off-by: Patryk Matyjasek <[email protected]> # Conflicts: # component/receiver.go # Conflicts: # exporter/opencensusexporter/opencensus_test.go # exporter/prometheusexporter/end_to_end_test.go
Signed-off-by: Patryk Matyjasek <[email protected]> # Conflicts: # CHANGELOG.md # Conflicts: # CHANGELOG.md # Conflicts: # CHANGELOG.md
Signed-off-by: Patryk Matyjasek <[email protected]>
e506652 to
585d38f
Compare
Description:
Continuation work from #2991
Fixes #2650
Replace ReceiverCreateParams with ReceiverCreateSettings.
Replace all dependencies in Receivers.
Link to tracking Issue:
#2650
Testing:
Unit tests
Documentation: