Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions crates/ourios-ingester/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,20 @@ prost = { version = "0.14", default-features = false, features = ["std"] }
# `Deserialize` impls — the `application/json` transport body is an
# `ExportLogsServiceRequest` in the proto3-JSON mapping.
serde_json = { version = "1", default-features = false, features = ["std"] }
# HTTP transport (RFC 0003 §6.2): the OTLP/HTTP `/v1/logs` listener.
# `tokio` + `http1` so the router can be served; the handler + extractors
# (`State`, `Bytes`, `HeaderMap`) are core. On hyper 1.x, already in the
# tree.
axum = { version = "0.8", default-features = false, features = ["tokio", "http1"] }
# gzip decode for OTLP/HTTP `Content-Encoding: gzip` (an OTLP MUST,
# RFC0003.13). Pure-Rust backend — no zlib C dependency (CLAUDE.md).
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }

[dev-dependencies]
tempfile = "3"
# Drive the axum `Router` in-process (`ServiceExt::oneshot`) for the
# HTTP-transport acceptance tests — no real socket.
tower = { version = "0.5", default-features = false, features = ["util"] }
# Proptest strategy over the OTLP proto value space for the
# wire-decode equivalence scenarios (RFC0003.5/.6 per §8).
proptest = "1"
Expand Down
7 changes: 4 additions & 3 deletions crates/ourios-ingester/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
//! (§6.2 wire decode — protobuf + OTLP/JSON, RFC0003.5/.6),
//! [`receiver::materialize`] (§6.1 `LogRecord` → `OtlpLogRecord`,
//! RFC0003.7–.10), [`receiver::tenant`] (per-`ResourceLogs` tenant
//! derivation + fan-out, RFC0003.3/.4), and [`receiver::pipeline`]
//! (§6.5 WAL-before-ack ingest path, RFC0003.1/.12). The live
//! gRPC/HTTP transports wrap the pipeline next.
//! derivation + fan-out, RFC0003.3/.4), [`receiver::pipeline`]
//! (§6.5 WAL-before-ack ingest path, RFC0003.1/.12), and
//! [`receiver::http`] (the OTLP/HTTP listener, RFC0003.11-HTTP/.13/.14).
//! The gRPC listener follows.
//! - **WAL-before-ack** (RFC 0008 / `CLAUDE.md` §3.4) — durability
//! before acknowledgement, via the shipped `ourios-wal`. Wired into
//! the ingest path by [`receiver::pipeline`]: every non-empty batch is
Expand Down
8 changes: 6 additions & 2 deletions crates/ourios-ingester/src/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@
//! (RFC0003.3/.4).
//! - [`pipeline`] — the §6.5 WAL-before-ack ingest path
//! ([`pipeline::IngestPipeline`]): fan out → append one `OtlpBatch`
//! frame → fsync → miner → ack (RFC0003.1/.12). The live gRPC/HTTP
//! transports wrap this layer next.
//! frame → fsync → miner → ack (RFC0003.1/.12).
//! - [`http`] — the OTLP/HTTP listener ([`http::router`]) wrapping the
//! pipeline: `Content-Type`/`Content-Encoding` dispatch, controlled
//! transport errors, configurable path (RFC0003.11 HTTP arms / .13 /
//! .14). The gRPC listener (`tonic`) follows.

pub mod decode;
pub mod http;
pub mod materialize;
pub mod pipeline;
pub mod tenant;
Expand Down
Loading
Loading