mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-14 16:22:38 +00:00
feat(telemetry): fast api middleware for open telemetry
This commit is contained in:
parent
fb93a6b6f5
commit
71f671b282
4 changed files with 141 additions and 12 deletions
|
|
@ -411,6 +411,8 @@ def create_app() -> StackApp:
|
|||
|
||||
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