You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Envoy supports custom tags to be defined on the server side proxy for adding additional metadata to the span.
To enable this feature in istio you must use a an EnvoyFilter. However, people are not comfortable using a potentially break glass feature and need a simplified API.
The API should support both environmental variables as well as extraction of custom headers.
Examples are shown below.
Environment variables
apiVersion: networking.istio.io/v1alpha3kind: EnvoyFiltermetadata:
name: env-spannamespace: istio-systemspec:
configPatches:
- applyTo: NETWORK_FILTER # http connection manager is a filter in Envoymatch:
# context omitted so that this applies to both sidecars and gatewayslistener:
filterChain:
filter:
name: "envoy.http_connection_manager"patch:
operation: MERGEvalue:
typed_config:
"@type": "type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager"tracing:
custom_tags:
- tag: "istio-env"environment:
name: ISTIO_ENVdefault_value: "istio-env-default"
Where the tag "istio-env" is added to each request using the value from ISTIO_ENV; if none are present it will use "istio-env-default"
Custom headers
---
apiVersion: networking.istio.io/v1alpha3kind: EnvoyFiltermetadata:
name: custom-header-spannamespace: istio-systemspec:
configPatches:
- applyTo: NETWORK_FILTER # http connection manager is a filter in Envoymatch:
# context omitted so that this applies to both sidecars and gatewayslistener:
filterChain:
filter:
name: "envoy.http_connection_manager"patch:
operation: MERGEvalue:
typed_config:
"@type": "type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager"tracing:
custom_tags:
- tag: "from-custom-header"request_header:
name: "istio-header"default_value: "istio-header-value"
Where the tag "from-custom-header" is added to each request using the value from the HTTP header "istio-header"; if "istio-header" is not present it will use "istio-header-value" string as its default.
Describe alternatives you've considered
None
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[X] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Additional context
Based on direct customer feedback.
The text was updated successfully, but these errors were encountered:
Describe the feature request
Envoy supports custom tags to be defined on the server side proxy for adding additional metadata to the span.
To enable this feature in istio you must use a an EnvoyFilter. However, people are not comfortable using a potentially break glass feature and need a simplified API.
The API should support both environmental variables as well as extraction of custom headers.
Examples are shown below.
Environment variables
Where the tag "istio-env" is added to each request using the value from ISTIO_ENV; if none are present it will use "istio-env-default"
Custom headers
Where the tag "from-custom-header" is added to each request using the value from the HTTP header "istio-header"; if "istio-header" is not present it will use "istio-header-value" string as its default.
Describe alternatives you've considered
None
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[X] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Additional context
Based on direct customer feedback.
The text was updated successfully, but these errors were encountered: