Skip to content

Commit 08408a2

Browse files
committed
remove telemetry API completely
1 parent f3f4b2a commit 08408a2

File tree

29 files changed

+4
-124
lines changed

29 files changed

+4
-124
lines changed

benchmarking/k8s-benchmark/stack-configmap.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ data:
99
- inference
1010
- files
1111
- safety
12-
- telemetry
1312
- tool_runtime
1413
- vector_io
1514
providers:
@@ -67,12 +66,6 @@ data:
6766
db: ${env.POSTGRES_DB:=llamastack}
6867
user: ${env.POSTGRES_USER:=llamastack}
6968
password: ${env.POSTGRES_PASSWORD:=llamastack}
70-
telemetry:
71-
- provider_id: meta-reference
72-
provider_type: inline::meta-reference
73-
config:
74-
service_name: "${env.OTEL_SERVICE_NAME:=\u200B}"
75-
sinks: ${env.TELEMETRY_SINKS:=console}
7669
tool_runtime:
7770
- provider_id: brave-search
7871
provider_type: remote::brave-search

benchmarking/k8s-benchmark/stack_run_config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ registered_resources:
126126
provider_id: rag-runtime
127127
server:
128128
port: 8323
129-
telemetry:
130-
enabled: true
131129
vector_stores:
132130
default_provider_id: chromadb
133131
default_embedding_model:

docs/docs/concepts/apis/index.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ A Llama Stack API is described as a collection of REST endpoints following OpenA
1717
- **Eval**: generate outputs (via Inference or Agents) and perform scoring
1818
- **VectorIO**: perform operations on vector stores, such as adding documents, searching, and deleting documents
1919
- **Files**: manage file uploads, storage, and retrieval
20-
- **Telemetry**: collect telemetry data from the system
2120
- **Post Training**: fine-tune a model
2221
- **Tool Runtime**: interact with various tools and protocols
2322
- **Responses**: generate responses from an LLM

docs/docs/distributions/k8s/stack-configmap.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ data:
88
- inference
99
- files
1010
- safety
11-
- telemetry
1211
- tool_runtime
1312
- vector_io
1413
providers:
@@ -73,12 +72,6 @@ data:
7372
db: ${env.POSTGRES_DB:=llamastack}
7473
user: ${env.POSTGRES_USER:=llamastack}
7574
password: ${env.POSTGRES_PASSWORD:=llamastack}
76-
telemetry:
77-
- provider_id: meta-reference
78-
provider_type: inline::meta-reference
79-
config:
80-
service_name: "${env.OTEL_SERVICE_NAME:=\u200B}"
81-
sinks: ${env.TELEMETRY_SINKS:=console}
8275
tool_runtime:
8376
- provider_id: brave-search
8477
provider_type: remote::brave-search

docs/docs/distributions/k8s/stack_run_config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ server:
140140
auth:
141141
provider_config:
142142
type: github_token
143-
telemetry:
144-
enabled: true
145143
vector_stores:
146144
default_provider_id: chromadb
147145
default_embedding_model:

docs/docs/distributions/self_hosted_distro/starter.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ The following environment variables can be configured:
116116
- `BRAVE_SEARCH_API_KEY`: Brave Search API key
117117
- `TAVILY_SEARCH_API_KEY`: Tavily Search API key
118118

119-
### Telemetry Configuration
120-
- `OTEL_SERVICE_NAME`: OpenTelemetry service name
121-
- `OTEL_EXPORTER_OTLP_ENDPOINT`: OpenTelemetry collector endpoint URL
122-
123119
## Enabling Providers
124120

125121
You can enable specific providers by setting appropriate environment variables. For example,
@@ -265,7 +261,7 @@ The starter distribution uses SQLite for local storage of various components:
265261
2. **Flexible Configuration**: Easy to enable/disable providers based on your needs
266262
3. **No Local GPU Required**: Most providers are cloud-based, making it accessible to developers without high-end hardware
267263
4. **Easy Migration**: Start with hosted providers and gradually move to local ones as needed
268-
5. **Production Ready**: Includes safety, evaluation, and telemetry components
264+
5. **Production Ready**: Includes safety and evaluation
269265
6. **Tool Integration**: Comes with web search, RAG, and model context protocol tools
270266

271267
The starter distribution is ideal for developers who want to experiment with different AI providers, build prototypes quickly, or create applications that can work with multiple AI backends.

docs/docs/references/python_sdk_reference/index.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -360,32 +360,6 @@ Methods:
360360

361361
- <code title="post /v1/synthetic-data-generation/generate">client.synthetic_data_generation.<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/resources/synthetic_data_generation.py">generate</a>(\*\*<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/synthetic_data_generation_generate_params.py">params</a>) -> <a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/synthetic_data_generation_response.py">SyntheticDataGenerationResponse</a></code>
362362

363-
## Telemetry
364-
365-
Types:
366-
367-
```python
368-
from llama_stack_client.types import (
369-
QuerySpansResponse,
370-
SpanWithStatus,
371-
Trace,
372-
TelemetryGetSpanResponse,
373-
TelemetryGetSpanTreeResponse,
374-
TelemetryQuerySpansResponse,
375-
TelemetryQueryTracesResponse,
376-
)
377-
```
378-
379-
Methods:
380-
381-
- <code title="get /v1/telemetry/traces/{trace_id}/spans/{span_id}">client.telemetry.<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/resources/telemetry.py">get_span</a>(span_id, \*, trace_id) -> <a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/telemetry_get_span_response.py">TelemetryGetSpanResponse</a></code>
382-
- <code title="get /v1/telemetry/spans/{span_id}/tree">client.telemetry.<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/resources/telemetry.py">get_span_tree</a>(span_id, \*\*<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/telemetry_get_span_tree_params.py">params</a>) -> <a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/telemetry_get_span_tree_response.py">TelemetryGetSpanTreeResponse</a></code>
383-
- <code title="get /v1/telemetry/traces/{trace_id}">client.telemetry.<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/resources/telemetry.py">get_trace</a>(trace_id) -> <a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/trace.py">Trace</a></code>
384-
- <code title="post /v1/telemetry/events">client.telemetry.<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/resources/telemetry.py">log_event</a>(\*\*<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/telemetry_log_event_params.py">params</a>) -> None</code>
385-
- <code title="get /v1/telemetry/spans">client.telemetry.<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/resources/telemetry.py">query_spans</a>(\*\*<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/telemetry_query_spans_params.py">params</a>) -> <a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/telemetry_query_spans_response.py">TelemetryQuerySpansResponse</a></code>
386-
- <code title="get /v1/telemetry/traces">client.telemetry.<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/resources/telemetry.py">query_traces</a>(\*\*<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/telemetry_query_traces_params.py">params</a>) -> <a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/telemetry_query_traces_response.py">TelemetryQueryTracesResponse</a></code>
387-
- <code title="post /v1/telemetry/spans/export">client.telemetry.<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/resources/telemetry.py">save_spans_to_dataset</a>(\*\*<a href="https://github.com/meta-llama/llama-stack-client-python/tree/main/src/llama_stack_client/types/telemetry_save_spans_to_dataset_params.py">params</a>) -> None</code>
388-
389363
## Datasetio
390364

391365
Types:

docs/src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function HomepageHeader() {
1313
<div className={styles.heroContent}>
1414
<h1 className={styles.heroTitle}>Build AI Applications with Llama Stack</h1>
1515
<p className={styles.heroSubtitle}>
16-
Unified APIs for Inference, RAG, Agents, Tools, Safety, and Telemetry
16+
Unified APIs for Inference, RAG, Agents, Tools, and Safety
1717
</p>
1818
<div className={styles.buttons}>
1919
<Link
@@ -206,7 +206,7 @@ export default function Home() {
206206
return (
207207
<Layout
208208
title="Build AI Applications"
209-
description="The open-source framework for building generative AI applications with unified APIs for Inference, RAG, Agents, Tools, Safety, and Telemetry.">
209+
description="The open-source framework for building generative AI applications with unified APIs for Inference, RAG, Agents, Tools, Safety, and Evals.">
210210
<HomepageHeader />
211211
<main>
212212
<QuickStart />

scripts/openapi_generator/schema_collection.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Schema discovery and collection for OpenAPI generation.
99
"""
1010

11-
import importlib
1211
from typing import Any
1312

1413

@@ -20,23 +19,6 @@ def _ensure_components_schemas(openapi_schema: dict[str, Any]) -> None:
2019
openapi_schema["components"]["schemas"] = {}
2120

2221

23-
def _load_extra_schema_modules() -> None:
24-
"""
25-
Import modules outside llama_stack_api that use schema_utils to register schemas.
26-
27-
The API package already imports its submodules via __init__, but server-side modules
28-
like telemetry need to be imported explicitly so their decorator side effects run.
29-
"""
30-
extra_modules = [
31-
"llama_stack.core.telemetry.telemetry",
32-
]
33-
for module_name in extra_modules:
34-
try:
35-
importlib.import_module(module_name)
36-
except ImportError:
37-
continue
38-
39-
4022
def _extract_and_fix_defs(schema: dict[str, Any], openapi_schema: dict[str, Any]) -> None:
4123
"""
4224
Extract $defs from a schema, move them to components/schemas, and fix references.
@@ -79,9 +61,6 @@ def _ensure_json_schema_types_included(openapi_schema: dict[str, Any]) -> dict[s
7961
iter_registered_schema_types,
8062
)
8163

82-
# Import extra modules (e.g., telemetry) whose schema registrations live outside llama_stack_api
83-
_load_extra_schema_modules()
84-
8564
# Handle explicitly registered schemas first (union types, Annotated structs, etc.)
8665
for registration_info in iter_registered_schema_types():
8766
schema_type = registration_info.type

src/llama_stack/core/datatypes.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,6 @@ class SafetyConfig(BaseModel):
371371
)
372372

373373

374-
class TelemetryConfig(BaseModel):
375-
"""Configuration for telemetry collection."""
376-
377-
enabled: bool = Field(default=False, description="Whether telemetry collection is enabled")
378-
379-
380374
class QuotaPeriod(StrEnum):
381375
DAY = "day"
382376

@@ -542,11 +536,6 @@ class StackRunConfig(BaseModel):
542536
description="Configuration for default moderations model",
543537
)
544538

545-
telemetry: TelemetryConfig | None = Field(
546-
default=None,
547-
description="Configuration for telemetry collection",
548-
)
549-
550539
@field_validator("external_providers_dir")
551540
@classmethod
552541
def validate_external_providers_dir(cls, v):

0 commit comments

Comments
 (0)