-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add add_observer_metadata processor
#11394
Changes from 1 commit
fc24248
3d0a4d6
e830a78
c659cc6
ae2b645
9e99003
5da12e4
8c614f3
873eed4
40a0073
cdf7929
c02d63c
6b68562
9e99f79
d812170
676df59
c279607
83035e2
d635c88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,12 @@ func New(config PluginConfig) (*Processors, error) { | |
|
||
gen, exists := registry.reg[actionName] | ||
if !exists { | ||
return nil, errors.Errorf("the processor action %s does not exist", actionName) | ||
var validActions []string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How is this change related? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I made a mistake in earlier versions of this and found this debugging info useful. Glad to move it to a new PR if you feel it's worthwhile. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LGTM. |
||
for k := range registry.reg { | ||
validActions = append(validActions, k) | ||
|
||
} | ||
return nil, errors.Errorf("the processor action %s does not exist. Valid actions: %v", actionName, strings.Join(validActions, ", ")) | ||
} | ||
|
||
actionCfg.PrintDebugf("Configure processor action '%v' with:", actionName) | ||
|
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.