Before, all messages would be logged on the prelude container / thread. routing log improvements
28 lines
442 B
SQL
28 lines
442 B
SQL
CREATE DATABASE IF NOT EXISTS phasm_platform;
|
|
USE phasm_platform;
|
|
|
|
|
|
CREATE TABLE routing_logs
|
|
(
|
|
timestamp DateTime64(6, 'UTC'),
|
|
thread_id String,
|
|
from_container String,
|
|
to_service String,
|
|
to_container String,
|
|
to_method String,
|
|
result String,
|
|
)
|
|
ENGINE = MergeTree
|
|
ORDER BY timestamp;
|
|
|
|
|
|
CREATE TABLE container_logs
|
|
(
|
|
timestamp DateTime64(6, 'UTC'),
|
|
name String,
|
|
thread_id String,
|
|
msg String,
|
|
)
|
|
ENGINE = MergeTree
|
|
ORDER BY timestamp;
|