refactor: remove beta diagnostics collection and reporting (#2616)

This commit is contained in:
RockChinQ
2026-09-30 20:24:35 +08:00
committed by GitHub
parent 5f3eb34baf
commit 30585c8657
82 changed files with 72 additions and 4934 deletions
-7
View File
@@ -1,7 +1,5 @@
from __future__ import annotations
from langbot.pkg.telemetry import diagnostics
import posixpath
import re
from typing import TYPE_CHECKING, Any
@@ -73,7 +71,6 @@ class RAGRuntimeService:
raise WorkspaceNotFoundError('Knowledge base not found')
return kb_uuid
@diagnostics.observe('api', 'knowledge.vector_upsert', source='agent')
async def vector_upsert(
self,
execution_context: ExecutionContext,
@@ -101,7 +98,6 @@ class RAGRuntimeService:
documents=documents,
)
@diagnostics.observe('api', 'knowledge.vector_search', source='agent')
async def vector_search(
self,
execution_context: ExecutionContext,
@@ -126,7 +122,6 @@ class RAGRuntimeService:
vector_weight=vector_weight,
)
@diagnostics.observe('api', 'knowledge.vector_delete', source='agent')
async def vector_delete(
self,
execution_context: ExecutionContext,
@@ -163,7 +158,6 @@ class RAGRuntimeService:
)
return count
@diagnostics.observe('api', 'knowledge.vector_list', source='agent')
async def vector_list(
self,
execution_context: ExecutionContext,
@@ -192,7 +186,6 @@ class RAGRuntimeService:
offset=offset,
)
@diagnostics.observe('api', 'knowledge.get_file_stream', source='agent')
async def get_file_stream(
self,
execution_context: ExecutionContext,