-
Notifications
You must be signed in to change notification settings - Fork 138
/
proxies.xml
54 lines (47 loc) · 1.88 KB
/
proxies.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<spring:beans xmlns="http://membrane-soa.org/proxies/1/"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://membrane-soa.org/proxies/1/ http://membrane-soa.org/schemas/proxies-1.xsd">
<router>
<transport>
<ruleMatching />
<exchangeStore />
<dispatching />
<reverseProxying />
<openTelemetry sampleRate="1.0"> <!--globally registers OpenTelemetry for every api-->
<otlpExporter host="localhost" port="4317" transport="grpc"/>
</openTelemetry>
<userFeature />
<httpClient />
</transport>
<api port="2000">
<target url="http://localhost:2001" />
</api>
<api port="2001" name="AccessControl">
<target url="http://localhost:2002" />
</api>
<api port="2002" name="Validation">
<target url="http://localhost:3000" />
</api>
<api port="3000" name="Replace with your Backend">
<request>
<!-- Print the request headers.
traceparents will be added to them
showing which spans were involved
in the exchange. -->
<groovy>
println "Request headers:"
header.allHeaderFields.each {
print it
}
CONTINUE
</groovy>
</request>
<response>
<template>Hello from a faked backend!</template>
</response>
<return/>
</api>
</router>
</spring:beans>