-
Notifications
You must be signed in to change notification settings - Fork 123
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
Command channel metadata #261
Conversation
Pull Request Test Coverage Report for Build 423814981
💛 - Coveralls |
pkg/backend/commandapi/client.go
Outdated
@@ -39,6 +40,12 @@ func (c *Command) Event(integrationName string, integrationArgs []string) protoc | |||
"cmd_args_name": integrationName, | |||
"cmd_args_args": fmt.Sprintf("%+v", integrationArgs), | |||
} | |||
|
|||
for k, v := range metadata { |
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.
do we need to have test for this change?
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.
good one, we are not testing instrumentation events
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.
added into latest commit
5e0fc08
to
041a999
Compare
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.
LGTM 👍🏼
This adds
metadata
field support for the command channel.metadata
is expected to be a key-value pair (dict) which keys are in string format.These
metadata
contents are forwarded to the instrumentation events, by prefixing metadata keys within the event withcmd_metadata.
.IE:
cmd channel:
becomes event fields: