forked from apollographql/supergraph-demo-fed2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
router.yaml
25 lines (25 loc) · 849 Bytes
/
router.yaml
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
cors:
allow_any_origin: true
supergraph:
listen: 0.0.0.0:4000
introspection: true
telemetry:
apollo:
# The percentage of requests will include HTTP request and response headers in traces sent to Apollo Studio.
# This is expensive and should be left at a low value.
# This cannot be higher than tracing->trace_config->sampler
field_level_instrumentation_sampler: 1 # (default)
tracing:
trace_config:
sampler: 1 # The percentage of requests that will generate traces (a rate or `always_on` or `always_off`)
service_name: "router"
service_namespace: "apollo"
otlp:
endpoint: http://${env.APOLLO_OTEL_EXPORTER_HOST:-localhost}:4317
protocol: grpc
timeout: 42s
include_subgraph_errors:
all: true # Propagate errors from all subgraphs
plugins:
example.hello_world:
name: "Bob"