Version 0.4.0
All checks were successful
Run linters on applied template / Python 3.13 lint and build (push) Successful in 1m40s
All checks were successful
Run linters on applied template / Python 3.13 lint and build (push) Successful in 1m40s
Changes: - put ObservabilityMiddleware before ExceptionHandlerMiddleware to avoid repetative code - add application startup and last metrics update metrics along with CPU usage metric and threads count - move host and port to new uvicorn section at config along with new reload and forwarded_allow_ips - add request_id and remove trace_id/span_id generation if tracing is disabled - move logging logic from utils to observability - pass trace_id/span_id in HEX form
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
app:
|
||||
host: 0.0.0.0
|
||||
port: 8080
|
||||
uvicorn:
|
||||
host: 0.0.0.0
|
||||
port: 8080
|
||||
reload: true
|
||||
forwarded_allow_ips:
|
||||
- 127.0.0.1
|
||||
debug: true
|
||||
cors:
|
||||
allow_origins: ["*"]
|
||||
@@ -25,7 +29,5 @@ observability:
|
||||
prometheus:
|
||||
host: 0.0.0.0
|
||||
port: 9090
|
||||
urls_mapping:
|
||||
/api/debug/.*: /api/debug/*
|
||||
jaeger:
|
||||
endpoint: http://otel:4318/v1/traces
|
||||
|
||||
@@ -143,6 +143,7 @@ services:
|
||||
opensearch:
|
||||
image: opensearchproject/opensearch:3.3.0@sha256:d96afaf6cbd2a6a3695aeb2f1d48c9a16ad5c8918eb849e5cbf43475f0f8e146
|
||||
container_name: opensearch
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- discovery.type=single-node
|
||||
- plugins.security.disabled=true
|
||||
|
||||
Reference in New Issue
Block a user