mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
feat(telemetry): fast api middleware for open telemetry
This commit is contained in:
parent
47d33a3555
commit
ce3a804893
4 changed files with 141 additions and 12 deletions
|
@ -430,6 +430,8 @@ def create_app(
|
|||
|
||||
if Api.telemetry in impls:
|
||||
setup_logger(impls[Api.telemetry])
|
||||
if impls[Api.telemetry].fastapi_middleware:
|
||||
impls[Api.telemetry].fastapi_middleware(app)
|
||||
else:
|
||||
setup_logger(TelemetryAdapter(TelemetryConfig(), {}))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue