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:
Sven-Hendrik Haase 2024-08-03 13:20:04 +02:00 committed by Leonidas Spyropoulos
parent 92f5bbd37f
commit b730f6447d
No known key found for this signature in database
GPG key ID: 244740D17C7FD0EC
6 changed files with 544 additions and 182 deletions

View file

@ -177,3 +177,6 @@ expiry_time_search = 600
expiry_time_statistics = 300
; number of seconds after a cache entry for rss queries expires, default is 5 minutes
expiry_time_rss = 300
[tracing]
otlp_endpoint = http://localhost:4318