Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trevorbox/4514f7d4846c2704e35762b5a51c21a5 to your computer and use it in GitHub Desktop.
Save trevorbox/4514f7d4846c2704e35762b5a51c21a5 to your computer and use it in GitHub Desktop.
Istio EnvoyFilter custom header tag example for adding additional metadata to the span. See https://github.com/istio/istio/issues/22457.
---
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: custom-header-span-x-forwarded-user
namespace: istio-system
spec:
configPatches:
- applyTo: NETWORK_FILTER
match:
listener:
filterChain:
filter:
name: envoy.http_connection_manager
patch:
operation: MERGE
value:
typed_config:
'@type': >-
type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
tracing:
custom_tags:
- request_header:
default_value: n/a
name: x-forwarded-user
tag: x-forwarded-user
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment