chore: bump version 0.8.13 (#2718)
Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com> Co-authored-by: Sarah Wooders <sarahwooders@gmail.com> Co-authored-by: Matthew Zhou <mattzh1314@gmail.com> Co-authored-by: Andy Li <55300002+cliandy@users.noreply.github.com> Co-authored-by: jnjpng <jin@letta.com> Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local> Co-authored-by: cpacker <packercharles@gmail.com> Co-authored-by: Shubham Naik <shub@letta.com> Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from typing import List
|
||||
|
||||
from letta.log import get_logger
|
||||
from letta.otel.context import get_ctx_attributes
|
||||
from letta.otel.tracing import log_event, trace_method
|
||||
from letta.schemas.agent import AgentState
|
||||
from letta.schemas.enums import FileProcessingStatus
|
||||
@@ -122,6 +123,10 @@ class FileProcessor:
|
||||
if isinstance(content, str):
|
||||
content = content.encode("utf-8")
|
||||
|
||||
from letta.otel.metric_registry import MetricRegistry
|
||||
|
||||
MetricRegistry().file_process_bytes_histogram.record(len(content), attributes=get_ctx_attributes())
|
||||
|
||||
if len(content) > self.max_file_size:
|
||||
log_event(
|
||||
"file_processor.size_limit_exceeded",
|
||||
|
||||
Reference in New Issue
Block a user