Skip to content

Commit

Permalink
Add support for OpenTelemetry logs & traces, close #1289 (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
spetz authored Oct 16, 2024
1 parent 1505220 commit 214f0ca
Show file tree
Hide file tree
Showing 72 changed files with 721 additions and 111 deletions.
196 changes: 186 additions & 10 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ serde = { version = "1.0.210", features = ["derive"] }
tokio = { version = "1.40.0", features = ["full"] }
toml = "0.8.14"
tracing = { version = "0.1.37" }
tracing-subscriber = { version = "0.3.16" }
tracing-subscriber = { version = "0.3.18", features = ["fmt", "env-filter"] }

[[bin]]
name = "iggy-bench"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ use clap::Parser;
use figlet_rs::FIGfont;
use iggy::error::IggyError;
use tracing::{error, info};
use tracing_subscriber::EnvFilter;

#[tokio::main]
async fn main() -> Result<(), IggyError> {
let standard_font = FIGfont::standard().unwrap();
let figure = standard_font.convert("Iggy Bench");
println!("{}", figure.unwrap());
tracing_subscriber::fmt::Subscriber::builder()
.with_env_filter(EnvFilter::try_from_default_env().unwrap_or(EnvFilter::new("INFO")))
.with_ansi(true)
.init();

Expand Down
4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iggy-cli"
version = "0.8.0"
version = "0.8.1"
edition = "2021"
authors = ["bartosz.ciesla@gmail.com"]
repository = "https://github.com/iggy-rs/iggy"
Expand All @@ -27,7 +27,7 @@ thiserror = "1.0.61"
tokio = { version = "1.40.0", features = ["full"] }
tracing = "0.1.37"
tracing-appender = "0.2.2"
tracing-subscriber = { version = "0.3.17" }
tracing-subscriber = { version = "0.3.18", default-features = false, features = ["fmt", "env-filter"] }

[[bin]]
name = "iggy"
Expand Down
12 changes: 12 additions & 0 deletions configs/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,18 @@
"enabled": false,
"interval": "5 s"
},
"telemetry": {
"enabled": false,
"service_name": "iggy",
"logs": {
"transport": "grpc",
"endpoint": "http://localhost:7281/v1/logs"
},
"traces": {
"transport": "grpc",
"endpoint": "http://localhost:7281/v1/traces"
}
},
"system": {
"path": "local_data",
"backup": {
Expand Down
Loading

0 comments on commit 214f0ca

Please sign in to comment.