Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

feat: remove file export for otel traces (#3691)

cthomasabf1186745e2
diff --git a/otel/otel-collector-config-clickhouse-prod.yaml b/otel/otel-collector-config-clickhouse-prod.yaml
index b9ca82820..53129e25e 100644
--- a/otel/otel-collector-config-clickhouse-prod.yaml
+++ b/otel/otel-collector-config-clickhouse-prod.yaml
@@ -10,6 +10,13 @@ receivers:
- /root/.letta/logs/Letta.log
multiline:
line_start_pattern: ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3}
+ operators:
+ # Extract timestamp and other fields
+ - type: regex_parser
+ regex: '^(?P<timestamp>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3})\s+.*'
+ - type: time_parser
+ parse_from: attributes.timestamp
+ layout: '%Y-%m-%d %H:%M:%S,%L'
processors:
batch:
diff --git a/otel/otel-collector-config-clickhouse.yaml b/otel/otel-collector-config-clickhouse.yaml
index aa00ce0db..332ef3406 100644
--- a/otel/otel-collector-config-clickhouse.yaml
+++ b/otel/otel-collector-config-clickhouse.yaml
@@ -12,12 +12,6 @@ processors:
send_batch_size: 1024
exporters:
- file:
- path: /root/.letta/logs/traces.json
- rotation:
- max_megabytes: 100
- max_days: 7
- max_backups: 5
clickhouse:
endpoint: ${CLICKHOUSE_ENDPOINT}
database: ${CLICKHOUSE_DATABASE}
@@ -40,4 +34,4 @@ service:
traces:
receivers: [otlp]
processors: [batch]
- exporters: [file, clickhouse]
+ exporters: [clickhouse]