mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-14 16:42:32 +00:00
feat(major): move new telemetry architecture into new provider
This commit is contained in:
parent
71f671b282
commit
53b3eda1f5
10 changed files with 205 additions and 50 deletions
26
llama_stack/providers/inline/telemetry/otel/README.md
Normal file
26
llama_stack/providers/inline/telemetry/otel/README.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Open Telemetry Native Instrumentation
|
||||
|
||||
This instrumentation package is simple, and follows expected open telemetry standards. It injects middleware for distributed tracing into all ingress and egress points into the application, and can be tuned and configured with OTEL environment variables.
|
||||
|
||||
## Set Up
|
||||
|
||||
First, bootstrap and install all necessary libraries for open telemtry:
|
||||
|
||||
```
|
||||
uv run opentelemetry-bootstrap -a requirements | uv pip install --requirement -
|
||||
```
|
||||
|
||||
Then, run with automatic code injection:
|
||||
|
||||
```
|
||||
uv run opentelemetry-instrument llama stack run --config myconfig.yaml
|
||||
```
|
||||
|
||||
### Excluded Fast API URLs
|
||||
|
||||
```
|
||||
export OTEL_PYTHON_FASTAPI_EXCLUDED_URLS="client/.*/info,healthcheck"
|
||||
```
|
||||
|
||||
#### Environment Variables
|
||||
Environment Variables: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/
|
||||
Loading…
Add table
Add a link
Reference in a new issue