Skip to content

Commit f216845

Browse files
authored
feat(orion-server): add S3LogStore for object storage logging (#1730)
Signed-off-by: MYUU <1405758738@qq.com>
1 parent 683c28d commit f216845

17 files changed

Lines changed: 771 additions & 533 deletions

File tree

orion-server/.env

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
LOGGER_STORAGE_TYPE="s3"
2+
LOG_STREAM_BUFFER=4096
3+
BUCKET_NAME="test"
14
BUILD_LOG_DIR="/tmp/megadir/buck2ctl"
5+
AWS_ACCESS_KEY_ID=""
6+
AWS_SECRET_ACCESS_KEY=""
7+
AWS_DEFAULT_REGION="ap-southeast-1"
8+
29
DATABASE_URL="postgres://postgres:postgres@localhost/orion"
310
PORT=80
411
MONOBASE_URL="http://git.gitmega.com"

orion-server/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ axum = { workspace = true, features = ["macros", "ws"] }
1111
axum-extra = { workspace = true, features = ["erased-json"] }
1212
tokio = { workspace = true, features = ["rt-multi-thread", "fs", "process"] }
1313
tokio-retry = "0.3"
14-
tokio-stream = "0.1.17"
14+
tokio-stream = { version = "0.1.17", features = ["sync"] }
1515
tracing = { workspace = true }
1616
tracing-subscriber = { workspace = true }
1717
serde = { workspace = true, features = ["derive"] }
1818
serde_json = { workspace = true }
19+
futures = { workspace = true }
1920
futures-util = { workspace = true }
2021
uuid = { workspace = true, features = ["v7"] }
2122
tower-http = { workspace = true, features = ["trace", "cors"] }
@@ -36,7 +37,10 @@ utoipa-swagger-ui = { workspace = true, features = ["axum"] }
3637
chrono = { version = "0.4", features = ["serde"] }
3738
reqwest.workspace = true
3839
thiserror = "2.0"
39-
anyhow = "1.0"
40+
anyhow = { workspace = true }
41+
async-trait = { workspace = true }
42+
aws-sdk-s3 = { workspace = true }
43+
aws-config = { workspace = true }
4044

4145
[dev-dependencies]
4246
tempfile = "3"

0 commit comments

Comments
 (0)