Skip to content

Latest commit

 

History

History
92 lines (69 loc) · 1.99 KB

README.adoc

File metadata and controls

92 lines (69 loc) · 1.99 KB

Traffic Shadowing

Gravitee.io License Releases CircleCI

Phase

V3 engine

onRequest onResponse onRequestContent onResponseContent

X

-

-

-

V4 engine

onRequest onResponse onMessageRequest onMessageResponse

X

-

-

-

Description

Traffic shadowing allows to asynchronously copy the traffic to another service. By using this policy, the requests are duplicated and sent to the target. The target is an endpoint defined at the API level. The request can be enriched with additional headers.

Compatibility with APIM

Plugin version

APIM version

2.x

4.0 to 4.5

3.x

4.6 and upper

Configuration

Property Required Description Default Example

target

X

The target endpoint (supports EL).

-

{#endpoints['my-endpoint']}

headers

-

A list of HTTP headers.

-

-

Traffic Shadowing Policy example:
{
  "traffic-shadowing": {
    "target": "{#endpoints['target-endpoint']}",
    "headers": [
        {
            "name": "X-Gravitee-Request-Id",
            "value": "{#request.id}"
        }
    ]
  }
}