mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: Add opentelemtry-based tracing
This adds tracing to fastapi, redis, and sqlalchemy. It uses the recommended OLTP exporter to send the tracing data.
This commit is contained in:
parent
92f5bbd37f
commit
b730f6447d
6 changed files with 544 additions and 182 deletions
|
@ -69,7 +69,6 @@ httpx = "^0.27.0"
|
|||
itsdangerous = "^2.1.2"
|
||||
lxml = "^5.2.1"
|
||||
orjson = "^3.10.0"
|
||||
protobuf = "^5.26.1"
|
||||
pygit2 = "^1.14.1"
|
||||
python-multipart = "^0.0.9"
|
||||
redis = "^5.0.3"
|
||||
|
@ -89,7 +88,6 @@ SQLAlchemy = "^1.4.52"
|
|||
uvicorn = "^0.30.0"
|
||||
gunicorn = "^22.0.0"
|
||||
Hypercorn = "^0.17.0"
|
||||
prometheus-fastapi-instrumentator = "^7.0.0"
|
||||
pytest-xdist = "^3.5.0"
|
||||
filelock = "^3.13.3"
|
||||
posix-ipc = "^1.1.1"
|
||||
|
@ -98,6 +96,15 @@ fastapi = "^0.112.0"
|
|||
srcinfo = "^0.1.2"
|
||||
tomlkit = "^0.13.0"
|
||||
|
||||
# Tracing
|
||||
prometheus-fastapi-instrumentator = "^7.0.0"
|
||||
opentelemetry-api = "^1.26.0"
|
||||
opentelemetry-sdk = "^1.26.0"
|
||||
opentelemetry-exporter-otlp-proto-http = "^1.26.0"
|
||||
opentelemetry-instrumentation-fastapi = "^0.47b0"
|
||||
opentelemetry-instrumentation-redis = "^0.47b0"
|
||||
opentelemetry-instrumentation-sqlalchemy = "^0.47b0"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
coverage = "^7.4.4"
|
||||
pytest = "^8.1.1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue