Skip to content

Send dynamic metadata as part of report calls#2013

Merged
rshriram merged 7 commits intoistio:release-1.1from
rshriram:dynamic_metadata
Oct 31, 2018
Merged

Send dynamic metadata as part of report calls#2013
rshriram merged 7 commits intoistio:release-1.1from
rshriram:dynamic_metadata

Conversation

@rshriram
Copy link
Member

Envoy filters can add arbitrary attributes to dynamicMetadata. Its useful to log this as part of reports (envoy's gRPC access logs and normal access logs already print this info).

I am send the metadata as a dumb string (serialized form of envoy.api.v2.core.Metadata). Right now, there is no support in mixer for this, but an adapter wishing to utilize this can deserialize this info and log this info, thus providing the ability for third party codecs to log additional attributes as part of a connection.

Signed-off-by: Shriram Rajagopalan shriramr@vmware.com

Shriram Rajagopalan added 2 commits October 30, 2018 21:51
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Oct 30, 2018
@rshriram
Copy link
Member Author

temporary fix for istio/istio#9613 . At the moment, this should unblock the internal use case I have to stream custom attributes generated by internal codecs to mixer without having to fork Istio mixer filter code. Would be nice to have a cleaner solution.

@qiwzhang
Copy link
Contributor

Only for tcp? Just curious, why not Http?

Shriram Rajagopalan added 2 commits October 30, 2018 22:45
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
@rshriram rshriram requested review from lizan and removed request for linsun October 30, 2018 22:46
@rshriram
Copy link
Member Author

Oh I can do the same for HTTP as well.

Shriram Rajagopalan added 2 commits October 30, 2018 23:17
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
@rshriram
Copy link
Member Author

@qiwzhang updated to add dynamic metadata to http as well.

Copy link
Contributor

@qiwzhang qiwzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@istio-testing
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiwzhang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
@istio-testing
Copy link
Collaborator

New changes are detected. LGTM label has been removed.

@rshriram rshriram merged commit 696e943 into istio:release-1.1 Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants