chore: continued logging cleanup and bugfixes (#5882)

* gracefully handle mcp error, runs/temporal error, and otel exporter bug fixes

* move error handling to managers

* remove migrated error handling from routers

* move logger.error calls to logger.warnings
This commit is contained in:
Kian Jones
2025-10-31 14:44:38 -07:00
committed by Caren Thomas
parent 381ca5bde8
commit 193c4f7c4a
5 changed files with 56 additions and 26 deletions

View File

@@ -8,6 +8,8 @@ receivers:
filelog:
include:
- /root/.letta/logs/Letta.log
multiline:
line_start_pattern: '^[\{\[]|^[0-9]{4}-[0-9]{2}-[0-9]{2}'
operators:
# Parse JSON logs (skip non-JSON lines)
- type: json_parser
@@ -19,8 +21,14 @@ receivers:
layout_type: gotime
layout: '2006-01-02T15:04:05.999999Z07:00'
on_error: send
if: 'attributes.timestamp != nil'
processors:
resource:
attributes:
- key: environment
value: ${env:LETTA_ENVIRONMENT}
action: upsert
memory_limiter:
check_interval: 1s
limit_mib: 1024
@@ -64,7 +72,7 @@ service:
exporters: [clickhouse]
logs:
receivers: [filelog]
processors: [memory_limiter, batch]
processors: [resource, memory_limiter, batch]
exporters: [clickhouse]
metrics:
receivers: [otlp]