* root: wip: otel trial v1 * rename Signed-off-by: Jens Langhammer <[email protected]> * add adjacent Signed-off-by: Jens Langhammer <[email protected]> * fix endpoint Signed-off-by: Jens Langhammer <[email protected]> * fixup Signed-off-by: Jens Langhammer <[email protected]> * fix? * fix? Signed-off-by: Jens Langhammer <[email protected]> * fix fork? * remove install ID Signed-off-by: Jens Langhammer <[email protected]> * hmm * told ya * tracing: add a span per Django middleware Wrap every entry of MIDDLEWARE with a dynamically generated class that starts a span named after the middleware's dotted path, covering Django's own, third-party, and authentik's middleware alike. Runs from AuthentikCoreConfig.ready() before DjangoInstrumentor inserts its own middleware, so that one doesn't get wrapped a second time. * tracing: fix structlog integration by configuring a LoggerProvider StructlogInstrumentor emits logs as OpenTelemetry LogRecords through opentelemetry._logs.get_logger_provider(), a separate pipeline from traces. Since we never called set_logger_provider(), every log record was silently dropped by the default no-op provider. Add a LoggerProvider and OTLP log exporter alongside the existing TracerProvider in otel_init_provider(), sharing the same Resource. Verified against a real OTel Collector: authentik's structured log records (with attributes like task_id, task_name, schema_name) now arrive correctly. * remove log Signed-off-by: Jens Langhammer <[email protected]> * format Signed-off-by: Jens Langhammer <[email protected]> * Revert "format" This reverts commitdcc148445e. * Revert "remove log" This reverts commit46f375587b. * Revert "tracing: fix structlog integration by configuring a LoggerProvider" This reverts commit02ef7990c9. * cleanup Signed-off-by: Jens Langhammer <[email protected]> * separate Signed-off-by: Jens Langhammer <[email protected]> * support both Signed-off-by: Jens Langhammer <[email protected]> * remove otel from this pr Signed-off-by: Jens Langhammer <[email protected]> * sure man Signed-off-by: Jens Langhammer <[email protected]> * oops Signed-off-by: Jens Langhammer <[email protected]> * remove tempo from this Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]>
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
services:
|
|
postgresql:
|
|
container_name: postgres
|
|
image: docker.io/library/postgres:18
|
|
volumes:
|
|
- db-data:/var/lib/postgresql
|
|
environment:
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
POSTGRES_DB: authentik
|
|
command:
|
|
["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]
|
|
ports:
|
|
- 127.0.0.1:5432:5432
|
|
restart: always
|
|
s3:
|
|
container_name: s3
|
|
image: docker.io/zenko/cloudserver
|
|
environment:
|
|
REMOTE_MANAGEMENT_DISABLE: "1"
|
|
SCALITY_ACCESS_KEY_ID: accessKey1
|
|
SCALITY_SECRET_ACCESS_KEY: secretKey1
|
|
ports:
|
|
- 8020:8000
|
|
volumes:
|
|
- s3-data:/usr/src/app/localData
|
|
- s3-metadata:/usr/scr/app/localMetadata
|
|
restart: always
|
|
diff:
|
|
image: docker.io/openapitools/openapi-diff:2.1.7
|
|
# Only run when explicitly invoked (e.g. `make gen-diff`), never on `docker compose up`.
|
|
profiles:
|
|
- diff
|
|
restart: no
|
|
network_mode: none
|
|
volumes:
|
|
- ../:/local
|
|
|
|
volumes:
|
|
db-data:
|
|
driver: local
|
|
s3-data:
|
|
driver: local
|
|
s3-metadata:
|
|
driver: local
|