Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion litellm/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
)
DEFAULT_BATCH_SIZE: Final = int(os.getenv("DEFAULT_BATCH_SIZE", 512))
DEFAULT_FLUSH_INTERVAL_SECONDS: Final = int(os.getenv("DEFAULT_FLUSH_INTERVAL_SECONDS", 5))
# Agent tracing / ClickHouse
CLICKHOUSE_BATCH_SIZE: Final = get_env_int("CLICKHOUSE_BATCH_SIZE", 10_000)
CLICKHOUSE_FLUSH_INTERVAL_SECONDS: Final = float(os.getenv("CLICKHOUSE_FLUSH_INTERVAL_SECONDS", "1.0"))
CLICKHOUSE_MAX_BUFFERED_ROWS: Final = get_env_int("CLICKHOUSE_MAX_BUFFERED_ROWS", 200_000)
Expand Down
1 change: 0 additions & 1 deletion litellm/proxy/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ class LiteLLMRoutes(enum.Enum):
"/v1/rag/ingest",
"/rag/query",
"/v1/rag/query",
# agent tracing: OTLP ingest + reads (scoped to the caller's team in the handler)
"/engine",
"/engine/{engine_id}",
"/engine/{engine_id}/runs",
Expand Down
26 changes: 0 additions & 26 deletions litellm/proxy/roi_calculator/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,32 +92,6 @@ def cache_context(settings: ROISettings, models: tuple[EstimatorModel, ...] | No
return hashlib.sha256(context.encode()).hexdigest()


def pull_cache_key(
settings: ROISettings,
pull: ROIPullEvidence,
models: tuple[EstimatorModel, ...] | None = None,
) -> str:
evidence: Final = json.dumps(
metadata_evidence(pull).model_dump(exclude_unset=True),
ensure_ascii=False,
)
key: Final = json.dumps(
(
ESTIMATE_VERSION,
settings.estimator_model,
settings.estimator_prompt,
RESPONSE_CONTRACT,
estimator_options(_configured_models(settings, models)),
pull["repo"],
pull["number"],
pull["head_sha"],
evidence,
),
ensure_ascii=False,
)
return hashlib.sha256(key.encode()).hexdigest()


class Estimator:
def __init__(
self,
Expand Down
5 changes: 0 additions & 5 deletions litellm/proxy/roi_calculator/pull_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import json
from typing import Final

from litellm.proxy.roi_calculator.estimator import cache_context
from litellm.proxy.roi_calculator.github import GitHubPullListItem
from litellm.types.roi_calculator import ROISettings

Expand Down Expand Up @@ -46,7 +45,3 @@ def settings_fingerprint(settings: ROISettings) -> str:
ensure_ascii=False,
)
return hashlib.sha256(value.encode()).hexdigest()


def current_cache_context(settings: ROISettings) -> str:
return cache_context(settings)
6 changes: 0 additions & 6 deletions litellm/tracing/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ class OTLPPayloadTooLargeError(OverflowError):
pass


# ---------------------------------------------------------------- decode


def _truncate(value: str) -> str:
size = len(value.encode("utf-8"))
if size <= OTLP_MAX_ATTRIBUTE_VALUE_BYTES:
Expand Down Expand Up @@ -123,9 +120,6 @@ def _span_row(span: DecodedSpan) -> SpanRow:
return row


# ---------------------------------------------------------------- normalize


def _loads(value: str) -> object:
try:
return json.loads(value)
Expand Down
4 changes: 0 additions & 4 deletions litellm/tracing/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ async def start(self) -> None:
spend_log_retention_days=AGENT_TRACING_SPEND_LOG_RETENTION_DAYS,
)

# ------------------------------------------------------------ write

async def ingest(
self,
body: bytes,
Expand All @@ -108,8 +106,6 @@ async def ingest(
raise TracingPayloadTooLargeError(str(error)) from error
return len(rows)

# ------------------------------------------------------------ read

async def list_traces(self, scope: TraceScope, start_ms: int, end_ms: int, cursor: str | None = None) -> TracePage:
return await self.store.list_traces(scope, start_ms, end_ms, cursor)

Expand Down
Loading