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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user