-
Notifications
You must be signed in to change notification settings - Fork 10
data collector metadata examples
Scott Ganyo edited this page Jun 3, 2021
·
1 revision
Lua Filter:
- name: envoy.filters.http.lua
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
inline_code: |
function envoy_on_request(request_handle)
metadata = request_handle:streamInfo():dynamicMetadata()
metadata:set("envoy.filters.http.apigee.datacapture", "dc_test", "A test string.")
end
Header to Metadata:
- name: envoy.filters.http.header_to_metadata
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.header_to_metadata.v3.Config
request_rules:
- header: "Host"
on_header_present:
metadata_namespace: envoy.filters.http.apigee.datacapture
key: dc_test
type: STRING
remove: false