Repository navigation
Expand file tree
/
Copy pathapplication.yml
More file actions
36 lines (29 loc) · 1.75 KB
/
Copy pathapplication.yml
File metadata and controls
36 lines (29 loc) · 1.75 KB
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
# Sample configuration - the engines' "resources" convention.
# mercury-serve (and a direct `python demo_app.py`) loads resources/application.yml from
# the resources folder next to the application file (this one), never from the working
# directory. Any key can be
# overridden at run time with the engines' -D syntax, e.g.:
# mercury-serve examples/demo-app/demo_app.py -Drest.server.port=8090 -Dlog.format=compact
application.name: 'demo-app'
info.app.description: 'Mercury Composable polyglot demo'
rest.server.port: 8086
# REST automation - the engines' rest.yaml: resources/rest.yaml maps GET /api/hello/{name} to the
# function hello.rest. Off by default in the package; the demo turns it on.
rest.automation: true
# text (default) | json (pretty-printed) | compact (single-line JSONL)
log.format: text
log.level: INFO
# Actuator /health dependencies - routes of health check functions speaking the
# engines' type=info / type=health contract (demo.health in demo_app.py).
mandatory.health.dependencies: 'demo.health'
# Opt-in lists for the /env endpoint - nothing is ever dumped wholesale.
show.env.variables: 'LOG_LEVEL'
show.application.properties: 'application.name, rest.server.port'
# OpenTelemetry forwarder (opt-in) - the engines' opentelemetry-forwarder twin. Switch it on
# at run time with -Dotel.forwarding=true; the endpoint and credential come from the
# environment (a Dynatrace endpoint ends in /api/v2/otlp/v1/traces; the header is the whole
# 'Authorization=Api-Token' prefix, the token its value). Header names are logged, never values.
otel.forwarding: false
otel.exporter.otlp.endpoint: '${OTLP_API_ENDPOINT:http://localhost:4318/v1/traces}'
otel.exporter.otlp.headers: '${OTLP_AUTH_HEADER} ${OTLP_TOKEN}'
otel.service.name: '${OTLP_SERVICE_NAME:demo-app}'