Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: networking.istio.io/v1alpha3
- kind: EnvoyFilter
- metadata:
- name: copy-trace-headers-to-xb3-in-gateway
- namespace: istio-system
- spec:
- workloadLabels:
- app: istio-ingressgateway
- filters:
- - filterConfig:
- inlineCode: |
- function envoy_on_request(request_handle)
- request_handle:headers():add("x-b3-traceid", request_handle:headers():get("x-custom-traceid"))
- request_handle:headers():add("new-header", request_handle:headers():get("old-header"))
- end
- filterName: envoy.lua
- filterType: HTTP
- insertPosition:
- index: FIRST
- listenerMatch:
- listenerType: GATEWAY
- listenerProtocol: HTTP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement