forked from apollographql/supergraph-demo-fed2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
router.yaml
35 lines (33 loc) · 1.13 KB
/
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
26
27
28
29
30
31
32
33
34
35
# see https://www.apollographql.com/docs/router/configuration/overview#yaml-config-file
supergraph:
listen: 0.0.0.0:4000
cors:
allow_any_origin: 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
# --------------------
# note: `router --dev` has these default settings and enables the --hot-reload flag
# --------------------
# supergraph:
# introspection: true
# sandbox:
# enabled: true
# homepage:
# enabled: false
# include_subgraph_errors:
# all: true # Propagate errors from all subgraphs
# plugins:
# experimental.expose_query_plan: true