Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix configuration file in docs #120

Merged
merged 2 commits into from
Nov 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 27 additions & 32 deletions docs/source/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,6 @@ server:
# Defaults to 127.0.0.1:4000
listen: 127.0.0.1:4000

# Names and URLs of all subgraphs
# By default, this information is parsed from the supergraph schema
# Provide it here to override subgraph names or URLs
subgraphs:
# Defines a subgraph named "accounts"
accounts:
# The URL of the accounts subgraph's GraphQL endpoint
routing_url: http://localhost:4001/graphql
# Defines a second subgraph named "products"
products:
routing_url: http://localhost:4003/graphql

# Cross origin request headers
cors:
# Set to false to disallow any origin and rely exclusively on `origins`
Expand All @@ -114,44 +102,51 @@ server:
allow_credentials: false
# The headers to allow.
# Defaults to the required request header for Apollo Studio: Content-Type
allow_headers:
allow_headers: [ Content-Type ]
# Allowed request methods
# Defaults to GET, POST, OPTIONS.
methods:
methods: [ GET, POST, OPTIONS ]
# Which response headers should be made available to scripts running in the browser,
# in response to a cross-origin request.
expose_headers:

# Names and URLs of all subgraphs
# By default, this information is parsed from the supergraph schema
# Provide it here to override subgraph names or URLs
subgraphs:
# Defines a subgraph named "accounts"
accounts:
# The URL of the accounts subgraph's GraphQL endpoint
routing_url: http://localhost:4001/graphql
# Defines a second subgraph named "products"
products:
routing_url: http://localhost:4003/graphql

# OpenTelemetry configuration. Choose either jaeger or otlp
opentelemetry:
# Configuration to send traces and metrics to a Jaeger service
jaeger:
# optional url of the jaeger collector
collector_endpoint:
collector_endpoint: "http://example.org"
# name of the service used in traces
# defaults to router
service_name: "router"
# optional username to authenticate to jaeger
# can be obtained from the environment variable JAEGER_USERNAME
username:
# optional username to authenticate to jaeger
# can be obtained from the environment variable JAEGER_PASSWORD
password:
# the username and password are obtained from the environment variables
# JAEGER_USERNAME and JAEGER_PASSWORD
# Configuration to send traces and metrics to an OpenTelemetry Protocol compatible service
otlp:
tracing:
exporter:
export_config:
# URL of the exporter
endpoint:
# Possible options: 'Grpc' for GRPC protocol and 'HttpBinary' for HTTP protocol with binary protobuf
protocol: Grpc
# timmeout in seconds
timeout: 60
metadata:
- foo: bar
- foo: baz
- bar: baz
# URL of the exporter
endpoint:
# Possible options: 'Grpc' for GRPC protocol and 'HttpBinary' for HTTP protocol with binary protobuf
protocol: Grpc
# timmeout in seconds
timeout: 60
metadata:
- foo: bar
- foo: baz
- bar: baz
trace_config:
sampler:
ParentBased:
Expand Down