Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions Cargo.lock

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

5 changes: 5 additions & 0 deletions crates/ourios-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ ourios-querier = { path = "../ourios-querier" }
# `parse_structured_statement`.
serde = { version = "1", default-features = false, features = ["std", "derive"] }
serde_json = { version = "1", default-features = false, features = ["std"] }
# RFC 0020 configuration-file schema (config::file): parse the YAML into a node
# tree, substitute `${env:…}` in scalar values, then deserialise the schema.
# Already vetted in the dep tree (ourios-querier pins the same version), so this
# adds no new cargo-deny surface.
Comment thread
jensholdgaard marked this conversation as resolved.
Resolved
serde_yaml = { version = "=0.9.34", default-features = false }
# `LogsServiceServer` to host the receiver's `LogsService` impl over gRPC.
opentelemetry-proto = { version = "0.32", default-features = false, features = ["gen-tonic", "logs"] }
# gRPC transport (server) for the OTLP/gRPC listener (RFC0003.16).
Expand Down
10 changes: 7 additions & 3 deletions crates/ourios-server/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
//! Configuration for `ourios-server` (RFC 0020).
//!
//! The config file (`--config <path>`) maps onto the resolved server config the
//! binary builds; this module holds the file-loading pieces. Today that is the
//! environment-variable substitution resolver ([`env_subst`]); the YAML schema,
//! `--config` wiring, and validation land in subsequent RFC 0020 green slices.
//! binary builds; this module holds the file-loading pieces: the
//! environment-variable substitution resolver ([`env_subst`]) and the YAML
//! schema plus its substitution walk ([`file`]). The `--config` CLI wiring and
//! the mapping onto the resolved `ServerConfig` (through the existing `build_*`
//! validators — the single validation path) land in a subsequent RFC 0020 green
//! slice.
//!
//! The standard `OTEL_*` SDK environment is deliberately **not** handled here —
//! it configures the server's own telemetry SDK and is read by the SDK directly
//! (RFC 0020 §3.8). See `docs/rfcs/0020-configuration-file.md`.

pub mod env_subst;
pub mod file;
Loading
Loading