Created
March 9, 2021 22:15
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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