diff --git a/.config/zepter.yaml b/.config/zepter.yaml index a79b3bc47a..40cfef6acb 100644 --- a/.config/zepter.yaml +++ b/.config/zepter.yaml @@ -12,7 +12,7 @@ workflows: # Check that `A` activates the features of `B`. "propagate-feature", # These are the features to check: - "--features=std,op,dev,asm-keccak,jemalloc,jemalloc-prof,tracy-allocator,tracy,serde-bincode-compat,serde,test-utils,arbitrary,bench,alloy-compat,min-error-logs,min-warn-logs,min-info-logs,min-debug-logs,min-trace-logs,otlp,js-tracer,portable,keccak-cache-global", + "--features=std,op,dev,asm-keccak,jemalloc,jemalloc-prof,tracy-allocator,tracy,serde-bincode-compat,serde,test-utils,arbitrary,bench,alloy-compat,min-error-logs,min-warn-logs,min-info-logs,min-debug-logs,min-trace-logs,otlp,otlp-logs,js-tracer,portable,keccak-cache-global", # Do not try to add a new section to `[features]` of `A` only because `B` exposes that feature. There are edge-cases where this is still needed, but we can add them manually. "--left-side-feature-missing=ignore", # Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on. diff --git a/Cargo.lock b/Cargo.lock index 72043a05c3..3c9707af7e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6548,6 +6548,18 @@ dependencies = [ "tracing", ] +[[package]] +name = "opentelemetry-appender-tracing" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef6a1ac5ca3accf562b8c306fa8483c85f4390f768185ab775f242f7fe8fdcc2" +dependencies = [ + "opentelemetry", + "tracing", + "tracing-core", + "tracing-subscriber 0.3.22", +] + [[package]] name = "opentelemetry-http" version = "0.31.0" @@ -11072,6 +11084,7 @@ dependencies = [ "clap", "eyre", "opentelemetry", + "opentelemetry-appender-tracing", "opentelemetry-otlp", "opentelemetry-semantic-conventions", "opentelemetry_sdk", diff --git a/Cargo.toml b/Cargo.toml index b75906c15e..3db3f9a50c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -665,6 +665,7 @@ opentelemetry_sdk = "0.31" opentelemetry = "0.31" opentelemetry-otlp = "0.31" opentelemetry-semantic-conventions = "0.31" +opentelemetry-appender-tracing = "0.31" tracing-opentelemetry = "0.32" # misc-testing diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index a50a785bf2..c7e26d852e 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -81,12 +81,16 @@ backon.workspace = true tempfile.workspace = true [features] -default = ["jemalloc", "otlp", "reth-revm/portable", "js-tracer", "keccak-cache-global", "asm-keccak"] +default = ["jemalloc", "otlp", "otlp-logs", "reth-revm/portable", "js-tracer", "keccak-cache-global", "asm-keccak"] otlp = [ "reth-ethereum-cli/otlp", "reth-node-core/otlp", ] +otlp-logs = [ + "reth-ethereum-cli/otlp-logs", + "reth-node-core/otlp-logs", +] js-tracer = [ "reth-node-builder/js-tracer", "reth-node-ethereum/js-tracer", diff --git a/crates/ethereum/cli/Cargo.toml b/crates/ethereum/cli/Cargo.toml index 524a094647..20b1d87cc7 100644 --- a/crates/ethereum/cli/Cargo.toml +++ b/crates/ethereum/cli/Cargo.toml @@ -38,6 +38,7 @@ tempfile.workspace = true default = [] otlp = ["reth-tracing/otlp", "reth-node-core/otlp"] +otlp-logs = ["reth-tracing/otlp-logs", "reth-node-core/otlp-logs"] dev = ["reth-cli-commands/arbitrary"] diff --git a/crates/ethereum/cli/src/interface.rs b/crates/ethereum/cli/src/interface.rs index 354748f1a7..1f45bf7f53 100644 --- a/crates/ethereum/cli/src/interface.rs +++ b/crates/ethereum/cli/src/interface.rs @@ -19,7 +19,7 @@ use reth_db::DatabaseEnv; use reth_node_api::NodePrimitives; use reth_node_builder::{NodeBuilder, WithLaunchContext}; use reth_node_core::{ - args::{LogArgs, OtlpInitStatus, TraceArgs}, + args::{LogArgs, OtlpInitStatus, OtlpLogsStatus, TraceArgs}, version::version_metadata, }; use reth_node_metrics::recorder::install_prometheus_recorder; @@ -223,16 +223,19 @@ impl< /// If file logging is enabled, this function returns a guard that must be kept alive to ensure /// that all logs are flushed to disk. /// - /// If an OTLP endpoint is specified, it will export metrics to the configured collector. + /// If an OTLP endpoint is specified, it will export traces and logs to the configured + /// collector. pub fn init_tracing( &mut self, runner: &CliRunner, mut layers: Layers, ) -> eyre::Result> { let otlp_status = runner.block_on(self.traces.init_otlp_tracing(&mut layers))?; + let otlp_logs_status = runner.block_on(self.traces.init_otlp_logs(&mut layers))?; let guard = self.logs.init_tracing_with_layers(layers)?; info!(target: "reth::cli", "Initialized tracing, debug log directory: {}", self.logs.log_file_directory); + match otlp_status { OtlpInitStatus::Started(endpoint) => { info!(target: "reth::cli", "Started OTLP {:?} tracing export to {endpoint}", self.traces.protocol); @@ -243,6 +246,16 @@ impl< OtlpInitStatus::Disabled => {} } + match otlp_logs_status { + OtlpLogsStatus::Started(endpoint) => { + info!(target: "reth::cli", "Started OTLP {:?} logs export to {endpoint}", self.traces.protocol); + } + OtlpLogsStatus::NoFeature => { + warn!(target: "reth::cli", "Provided OTLP logs arguments do not have effect, compile with the `otlp-logs` feature") + } + OtlpLogsStatus::Disabled => {} + } + Ok(guard) } } diff --git a/crates/node/core/Cargo.toml b/crates/node/core/Cargo.toml index c4ea8711a6..3ed981297e 100644 --- a/crates/node/core/Cargo.toml +++ b/crates/node/core/Cargo.toml @@ -81,7 +81,8 @@ tokio.workspace = true jemalloc = ["reth-cli-util/jemalloc"] asm-keccak = ["alloy-primitives/asm-keccak"] keccak-cache-global = ["alloy-primitives/keccak-cache-global"] -otlp = ["reth-tracing/otlp"] +otlp = ["reth-tracing/otlp", "reth-tracing-otlp/otlp"] +otlp-logs = ["reth-tracing/otlp-logs", "reth-tracing-otlp/otlp-logs"] tracy = ["reth-tracing/tracy"] min-error-logs = ["tracing/release_max_level_error"] diff --git a/crates/node/core/src/args/mod.rs b/crates/node/core/src/args/mod.rs index d5c2aa4c66..9351128570 100644 --- a/crates/node/core/src/args/mod.rs +++ b/crates/node/core/src/args/mod.rs @@ -26,7 +26,7 @@ pub use log::{ColorMode, LogArgs, Verbosity}; /// `TraceArgs` for tracing and spans support mod trace; -pub use trace::{OtlpInitStatus, TraceArgs}; +pub use trace::{OtlpInitStatus, OtlpLogsStatus, TraceArgs}; /// `MetricArgs` to configure metrics. mod metric; diff --git a/crates/node/core/src/args/trace.rs b/crates/node/core/src/args/trace.rs index b94b83f433..5837194035 100644 --- a/crates/node/core/src/args/trace.rs +++ b/crates/node/core/src/args/trace.rs @@ -1,4 +1,4 @@ -//! Opentelemetry tracing configuration through CLI args. +//! Opentelemetry tracing and logging configuration through CLI args. use clap::Parser; use eyre::WrapErr; @@ -6,7 +6,7 @@ use reth_tracing::{tracing_subscriber::EnvFilter, Layers}; use reth_tracing_otlp::OtlpProtocol; use url::Url; -/// CLI arguments for configuring `Opentelemetry` trace and span export. +/// CLI arguments for configuring `Opentelemetry` trace and logs export. #[derive(Debug, Clone, Parser)] pub struct TraceArgs { /// Enable `Opentelemetry` tracing export to an OTLP endpoint. @@ -30,9 +30,29 @@ pub struct TraceArgs { )] pub otlp: Option, - /// OTLP transport protocol to use for exporting traces. + /// Enable `Opentelemetry` logs export to an OTLP endpoint. /// - /// - `http`: expects endpoint path to end with `/v1/traces` + /// If no value provided, defaults based on protocol: + /// - HTTP: `http://localhost:4318/v1/logs` + /// - gRPC: `http://localhost:4317` + /// + /// Example: --logs-otlp=http://collector:4318/v1/logs + #[arg( + long = "logs-otlp", + env = "OTEL_EXPORTER_OTLP_LOGS_ENDPOINT", + global = true, + value_name = "URL", + num_args = 0..=1, + default_missing_value = "http://localhost:4318/v1/logs", + require_equals = true, + value_parser = parse_otlp_endpoint, + help_heading = "Logging" + )] + pub logs_otlp: Option, + + /// OTLP transport protocol to use for exporting traces and logs. + /// + /// - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` /// - `grpc`: expects endpoint without a path /// /// Defaults to HTTP if not specified. @@ -62,6 +82,22 @@ pub struct TraceArgs { )] pub otlp_filter: EnvFilter, + /// Set a filter directive for the OTLP logs exporter. This controls the verbosity + /// of logs sent to the OTLP endpoint. It follows the same syntax as the + /// `RUST_LOG` environment variable. + /// + /// Example: --logs-otlp.filter=info,reth=debug + /// + /// Defaults to INFO if not specified. + #[arg( + long = "logs-otlp.filter", + global = true, + value_name = "FILTER", + default_value = "info", + help_heading = "Logging" + )] + pub logs_otlp_filter: EnvFilter, + /// Service name to use for OTLP tracing export. /// /// This name will be used to identify the service in distributed tracing systems @@ -101,8 +137,10 @@ impl Default for TraceArgs { fn default() -> Self { Self { otlp: None, + logs_otlp: None, protocol: OtlpProtocol::Http, otlp_filter: EnvFilter::from_default_env(), + logs_otlp_filter: EnvFilter::try_new("info").expect("valid filter"), sample_ratio: None, service_name: "reth".to_string(), } @@ -150,6 +188,37 @@ impl TraceArgs { Ok(OtlpInitStatus::Disabled) } } + + /// Initialize OTLP logs export with the given layers. + /// + /// This method handles OTLP logs initialization based on the configured options, + /// including validation and protocol selection. + /// + /// Returns the initialization status to allow callers to log appropriate messages. + pub async fn init_otlp_logs(&mut self, _layers: &mut Layers) -> eyre::Result { + if let Some(endpoint) = self.logs_otlp.as_mut() { + self.protocol.validate_logs_endpoint(endpoint)?; + + #[cfg(feature = "otlp-logs")] + { + let config = reth_tracing_otlp::OtlpLogsConfig::new( + self.service_name.clone(), + endpoint.clone(), + self.protocol, + )?; + + _layers.with_log_layer(config.clone(), self.logs_otlp_filter.clone())?; + + Ok(OtlpLogsStatus::Started(config.endpoint().clone())) + } + #[cfg(not(feature = "otlp-logs"))] + { + Ok(OtlpLogsStatus::NoFeature) + } + } else { + Ok(OtlpLogsStatus::Disabled) + } + } } /// Status of OTLP tracing initialization. @@ -163,6 +232,17 @@ pub enum OtlpInitStatus { NoFeature, } +/// Status of OTLP logs initialization. +#[derive(Debug)] +pub enum OtlpLogsStatus { + /// OTLP logs export was successfully started with the given endpoint. + Started(Url), + /// OTLP logs export is disabled (no endpoint configured). + Disabled, + /// OTLP logs arguments provided but feature is not compiled. + NoFeature, +} + // Parses an OTLP endpoint url. fn parse_otlp_endpoint(arg: &str) -> eyre::Result { Url::parse(arg).wrap_err("Invalid URL for OTLP trace output") diff --git a/crates/optimism/cli/Cargo.toml b/crates/optimism/cli/Cargo.toml index db171bab78..a109c2fc8b 100644 --- a/crates/optimism/cli/Cargo.toml +++ b/crates/optimism/cli/Cargo.toml @@ -76,8 +76,9 @@ reth-optimism-chainspec = { workspace = true, features = ["std", "superchain-con [features] default = [] -# Opentelemtry feature to activate metrics export +# Opentelemetry feature to activate tracing and logs export otlp = ["reth-tracing/otlp", "reth-node-core/otlp"] +otlp-logs = ["reth-tracing/otlp-logs", "reth-node-core/otlp-logs"] asm-keccak = [ "alloy-primitives/asm-keccak", diff --git a/crates/optimism/cli/src/app.rs b/crates/optimism/cli/src/app.rs index 8785338e5e..4dbdd81057 100644 --- a/crates/optimism/cli/src/app.rs +++ b/crates/optimism/cli/src/app.rs @@ -3,7 +3,7 @@ use eyre::{eyre, Result}; use reth_cli::chainspec::ChainSpecParser; use reth_cli_commands::launcher::Launcher; use reth_cli_runner::CliRunner; -use reth_node_core::args::OtlpInitStatus; +use reth_node_core::args::{OtlpInitStatus, OtlpLogsStatus}; use reth_node_metrics::recorder::install_prometheus_recorder; use reth_optimism_chainspec::OpChainSpec; use reth_optimism_consensus::OpBeaconConsensus; @@ -124,9 +124,11 @@ where let mut layers = self.layers.take().unwrap_or_default(); let otlp_status = runner.block_on(self.cli.traces.init_otlp_tracing(&mut layers))?; + let otlp_logs_status = runner.block_on(self.cli.traces.init_otlp_logs(&mut layers))?; self.guard = self.cli.logs.init_tracing_with_layers(layers)?; info!(target: "reth::cli", "Initialized tracing, debug log directory: {}", self.cli.logs.log_file_directory); + match otlp_status { OtlpInitStatus::Started(endpoint) => { info!(target: "reth::cli", "Started OTLP {:?} tracing export to {endpoint}", self.cli.traces.protocol); @@ -136,6 +138,16 @@ where } OtlpInitStatus::Disabled => {} } + + match otlp_logs_status { + OtlpLogsStatus::Started(endpoint) => { + info!(target: "reth::cli", "Started OTLP {:?} logs export to {endpoint}", self.cli.traces.protocol); + } + OtlpLogsStatus::NoFeature => { + warn!(target: "reth::cli", "Provided OTLP logs arguments do not have effect, compile with the `otlp-logs` feature") + } + OtlpLogsStatus::Disabled => {} + } } Ok(()) } diff --git a/crates/tracing-otlp/Cargo.toml b/crates/tracing-otlp/Cargo.toml index 5b01095d4f..3adc8e9ebe 100644 --- a/crates/tracing-otlp/Cargo.toml +++ b/crates/tracing-otlp/Cargo.toml @@ -14,6 +14,7 @@ opentelemetry_sdk = { workspace = true, optional = true } opentelemetry = { workspace = true, optional = true } opentelemetry-otlp = { workspace = true, optional = true, features = ["grpc-tonic"] } opentelemetry-semantic-conventions = { workspace = true, optional = true } +opentelemetry-appender-tracing = { workspace = true, optional = true } tracing-opentelemetry = { workspace = true, optional = true } tracing-subscriber.workspace = true tracing.workspace = true @@ -36,3 +37,10 @@ otlp = [ "opentelemetry-semantic-conventions", "tracing-opentelemetry", ] + +otlp-logs = [ + "otlp", + "opentelemetry-appender-tracing", + "opentelemetry-otlp/logs", + "opentelemetry_sdk/logs", +] diff --git a/crates/tracing-otlp/src/lib.rs b/crates/tracing-otlp/src/lib.rs index c7af074ad1..55836b8978 100644 --- a/crates/tracing-otlp/src/lib.rs +++ b/crates/tracing-otlp/src/lib.rs @@ -1,10 +1,12 @@ #![cfg(feature = "otlp")] -//! Provides a tracing layer for `OpenTelemetry` that exports spans to an OTLP endpoint. +//! Provides tracing layers for `OpenTelemetry` that export spans, logs, and metrics to an OTLP +//! endpoint. //! -//! This module simplifies the integration of `OpenTelemetry` tracing with OTLP export in Rust -//! applications. It allows for easily capturing and exporting distributed traces to compatible -//! backends like Jaeger, Zipkin, or any other OpenTelemetry-compatible tracing system. +//! This module simplifies the integration of `OpenTelemetry` with OTLP export in Rust +//! applications. It allows for easily capturing and exporting distributed traces, logs, +//! and metrics to compatible backends like Jaeger, Zipkin, or any other +//! OpenTelemetry-compatible system. use clap::ValueEnum; use eyre::ensure; @@ -24,6 +26,7 @@ use url::Url; // Otlp http endpoint is expected to end with this path. // See also . const HTTP_TRACE_ENDPOINT: &str = "/v1/traces"; +const HTTP_LOGS_ENDPOINT: &str = "/v1/logs"; /// Creates a tracing [`OpenTelemetryLayer`] that exports spans to an OTLP endpoint. /// @@ -62,6 +65,42 @@ where Ok(tracing_opentelemetry::layer().with_tracer(tracer)) } +/// Creates a tracing layer that exports logs to an OTLP endpoint. +/// +/// This layer bridges logs emitted via the `tracing` crate to `OpenTelemetry` logs. +#[cfg(feature = "otlp-logs")] +pub fn log_layer( + otlp_config: OtlpLogsConfig, +) -> eyre::Result< + opentelemetry_appender_tracing::layer::OpenTelemetryTracingBridge< + opentelemetry_sdk::logs::SdkLoggerProvider, + opentelemetry_sdk::logs::SdkLogger, + >, +> { + use opentelemetry_otlp::LogExporter; + use opentelemetry_sdk::logs::SdkLoggerProvider; + + let resource = build_resource(otlp_config.service_name.clone()); + + let log_builder = LogExporter::builder(); + + let log_exporter = match otlp_config.protocol { + OtlpProtocol::Http => { + log_builder.with_http().with_endpoint(otlp_config.endpoint.as_str()).build()? + } + OtlpProtocol::Grpc => { + log_builder.with_tonic().with_endpoint(otlp_config.endpoint.as_str()).build()? + } + }; + + let logger_provider = SdkLoggerProvider::builder() + .with_resource(resource) + .with_batch_exporter(log_exporter) + .build(); + + Ok(opentelemetry_appender_tracing::layer::OpenTelemetryTracingBridge::new(&logger_provider)) +} + /// Configuration for OTLP trace export. #[derive(Debug, Clone)] pub struct OtlpConfig { @@ -115,6 +154,43 @@ impl OtlpConfig { } } +/// Configuration for OTLP logs export. +#[derive(Debug, Clone)] +pub struct OtlpLogsConfig { + /// Service name for log identification + service_name: String, + /// Otlp endpoint URL + endpoint: Url, + /// Transport protocol, HTTP or gRPC + protocol: OtlpProtocol, +} + +impl OtlpLogsConfig { + /// Creates a new OTLP logs configuration. + pub fn new( + service_name: impl Into, + endpoint: Url, + protocol: OtlpProtocol, + ) -> eyre::Result { + Ok(Self { service_name: service_name.into(), endpoint, protocol }) + } + + /// Returns the service name. + pub fn service_name(&self) -> &str { + &self.service_name + } + + /// Returns the OTLP endpoint URL. + pub const fn endpoint(&self) -> &Url { + &self.endpoint + } + + /// Returns the transport protocol. + pub const fn protocol(&self) -> OtlpProtocol { + self.protocol + } +} + // Builds OTLP resource with service information. fn build_resource(service_name: impl Into) -> Resource { Resource::builder() @@ -145,23 +221,35 @@ pub enum OtlpProtocol { } impl OtlpProtocol { - /// Validate and correct the URL to match protocol requirements. + /// Validate and correct the URL to match protocol requirements for traces. /// /// For HTTP: Ensures the path ends with `/v1/traces`, appending it if necessary. /// For gRPC: Ensures the path does NOT include `/v1/traces`. pub fn validate_endpoint(&self, url: &mut Url) -> eyre::Result<()> { + self.validate_endpoint_with_path(url, HTTP_TRACE_ENDPOINT) + } + + /// Validate and correct the URL to match protocol requirements for logs. + /// + /// For HTTP: Ensures the path ends with `/v1/logs`, appending it if necessary. + /// For gRPC: Ensures the path does NOT include `/v1/logs`. + pub fn validate_logs_endpoint(&self, url: &mut Url) -> eyre::Result<()> { + self.validate_endpoint_with_path(url, HTTP_LOGS_ENDPOINT) + } + + fn validate_endpoint_with_path(&self, url: &mut Url, http_path: &str) -> eyre::Result<()> { match self { Self::Http => { - if !url.path().ends_with(HTTP_TRACE_ENDPOINT) { + if !url.path().ends_with(http_path) { let path = url.path().trim_end_matches('/'); - url.set_path(&format!("{}{}", path, HTTP_TRACE_ENDPOINT)); + url.set_path(&format!("{}{}", path, http_path)); } } Self::Grpc => { ensure!( - !url.path().ends_with(HTTP_TRACE_ENDPOINT), + !url.path().ends_with(http_path), "OTLP gRPC endpoint should not include {} path, got: {}", - HTTP_TRACE_ENDPOINT, + http_path, url ); } diff --git a/crates/tracing/Cargo.toml b/crates/tracing/Cargo.toml index 595e76765c..5943ab3b7c 100644 --- a/crates/tracing/Cargo.toml +++ b/crates/tracing/Cargo.toml @@ -33,4 +33,5 @@ rolling-file.workspace = true [features] default = ["otlp"] otlp = ["reth-tracing-otlp"] +otlp-logs = ["reth-tracing-otlp/otlp-logs"] tracy = ["tracing-tracy", "tracy-client"] diff --git a/crates/tracing/src/layers.rs b/crates/tracing/src/layers.rs index 2b0d72eb5c..51fccd1bdf 100644 --- a/crates/tracing/src/layers.rs +++ b/crates/tracing/src/layers.rs @@ -1,4 +1,6 @@ use crate::{formatter::LogFormat, LayerInfo}; +#[cfg(feature = "otlp-logs")] +use reth_tracing_otlp::{log_layer, OtlpLogsConfig}; #[cfg(feature = "otlp")] use reth_tracing_otlp::{span_layer, OtlpConfig}; use rolling_file::{RollingConditionBasic, RollingFileAppender}; @@ -168,6 +170,22 @@ impl Layers { Ok(()) } + + /// Add OTLP logs layer to the layer collection + #[cfg(feature = "otlp-logs")] + pub fn with_log_layer( + &mut self, + otlp_config: OtlpLogsConfig, + filter: EnvFilter, + ) -> eyre::Result<()> { + let log_layer = log_layer(otlp_config) + .map_err(|e| eyre::eyre!("Failed to build OTLP log exporter {}", e))? + .with_filter(filter); + + self.add_layer(log_layer); + + Ok(()) + } } /// Holds configuration information for file logging. diff --git a/docs/vocs/docs/pages/cli/op-reth.mdx b/docs/vocs/docs/pages/cli/op-reth.mdx index d0bbd53e2b..572335c21b 100644 --- a/docs/vocs/docs/pages/cli/op-reth.mdx +++ b/docs/vocs/docs/pages/cli/op-reth.mdx @@ -99,6 +99,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -123,9 +141,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/config.mdx b/docs/vocs/docs/pages/cli/op-reth/config.mdx index a82594b7fd..62389fe994 100644 --- a/docs/vocs/docs/pages/cli/op-reth/config.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/config.mdx @@ -87,6 +87,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -111,9 +129,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db.mdx b/docs/vocs/docs/pages/cli/op-reth/db.mdx index 625f528b08..c2d7b89b03 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db.mdx @@ -214,6 +214,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -238,9 +256,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/account-storage.mdx b/docs/vocs/docs/pages/cli/op-reth/db/account-storage.mdx index 4beaf21624..f71f08c74f 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/account-storage.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/account-storage.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/checksum.mdx b/docs/vocs/docs/pages/cli/op-reth/db/checksum.mdx index c45597647f..4587020941 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/checksum.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/checksum.mdx @@ -104,6 +104,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -128,9 +146,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/clear.mdx b/docs/vocs/docs/pages/cli/op-reth/db/clear.mdx index 2700544377..1139958cbc 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/clear.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/clear.mdx @@ -96,6 +96,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -120,9 +138,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/clear/mdbx.mdx b/docs/vocs/docs/pages/cli/op-reth/db/clear/mdbx.mdx index 2468f94ca2..b9f6537b3d 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/clear/mdbx.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/clear/mdbx.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/clear/static-file.mdx b/docs/vocs/docs/pages/cli/op-reth/db/clear/static-file.mdx index 29afe723fe..5ee09d1b05 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/clear/static-file.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/clear/static-file.mdx @@ -100,6 +100,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -124,9 +142,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/diff.mdx b/docs/vocs/docs/pages/cli/op-reth/db/diff.mdx index 82be159fb5..1df107888f 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/diff.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/diff.mdx @@ -147,6 +147,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -171,9 +189,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/drop.mdx b/docs/vocs/docs/pages/cli/op-reth/db/drop.mdx index 51d5e6d274..ec387677f7 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/drop.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/drop.mdx @@ -94,6 +94,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -118,9 +136,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/get.mdx b/docs/vocs/docs/pages/cli/op-reth/db/get.mdx index 3bd6d445fc..15b7ea8a28 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/get.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/get.mdx @@ -96,6 +96,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -120,9 +138,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/get/mdbx.mdx b/docs/vocs/docs/pages/cli/op-reth/db/get/mdbx.mdx index 3e0f225bc8..e4f002625c 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/get/mdbx.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/get/mdbx.mdx @@ -110,6 +110,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -134,9 +152,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/get/static-file.mdx b/docs/vocs/docs/pages/cli/op-reth/db/get/static-file.mdx index 0966f9b6b0..cd979cffde 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/get/static-file.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/get/static-file.mdx @@ -109,6 +109,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -133,9 +151,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/list.mdx b/docs/vocs/docs/pages/cli/op-reth/db/list.mdx index 3c45dac546..1b926b1aca 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/list.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/list.mdx @@ -137,6 +137,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -161,9 +179,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/path.mdx b/docs/vocs/docs/pages/cli/op-reth/db/path.mdx index 3fd2245d9a..b500e225e1 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/path.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/path.mdx @@ -91,6 +91,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -115,9 +133,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/repair-trie.mdx b/docs/vocs/docs/pages/cli/op-reth/db/repair-trie.mdx index 371c2e0e3a..67d5b8cee0 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/repair-trie.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/repair-trie.mdx @@ -99,6 +99,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -123,9 +141,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/settings.mdx b/docs/vocs/docs/pages/cli/op-reth/db/settings.mdx index 5550c3c784..95ff5e0df6 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/settings.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/settings.mdx @@ -96,6 +96,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -120,9 +138,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/settings/get.mdx b/docs/vocs/docs/pages/cli/op-reth/db/settings/get.mdx index 5f214b383a..c4e5430730 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/settings/get.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/settings/get.mdx @@ -91,6 +91,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -115,9 +133,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/settings/set.mdx b/docs/vocs/docs/pages/cli/op-reth/db/settings/set.mdx index 9d86f268a4..76cf564715 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/settings/set.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/settings/set.mdx @@ -97,6 +97,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -121,9 +139,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/settings/set/account_changesets.mdx b/docs/vocs/docs/pages/cli/op-reth/db/settings/set/account_changesets.mdx index b808875dce..4052007583 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/settings/set/account_changesets.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/settings/set/account_changesets.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/settings/set/receipts.mdx b/docs/vocs/docs/pages/cli/op-reth/db/settings/set/receipts.mdx index a0baca8c41..2cbd8647ba 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/settings/set/receipts.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/settings/set/receipts.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/settings/set/transaction_senders.mdx b/docs/vocs/docs/pages/cli/op-reth/db/settings/set/transaction_senders.mdx index 354f32553e..f95ddf7b81 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/settings/set/transaction_senders.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/settings/set/transaction_senders.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/static-file-header.mdx b/docs/vocs/docs/pages/cli/op-reth/db/static-file-header.mdx index 8b5aae0156..5483848ff0 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/static-file-header.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/static-file-header.mdx @@ -96,6 +96,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -120,9 +138,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/static-file-header/block.mdx b/docs/vocs/docs/pages/cli/op-reth/db/static-file-header/block.mdx index f9b74fd950..a95bbcfbca 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/static-file-header/block.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/static-file-header/block.mdx @@ -105,6 +105,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -129,9 +147,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/static-file-header/path.mdx b/docs/vocs/docs/pages/cli/op-reth/db/static-file-header/path.mdx index abe179a08f..7f237185ce 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/static-file-header/path.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/static-file-header/path.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/stats.mdx b/docs/vocs/docs/pages/cli/op-reth/db/stats.mdx index 0b8efa30ad..1a2ed7d4a9 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/stats.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/stats.mdx @@ -107,6 +107,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -131,9 +149,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/db/version.mdx b/docs/vocs/docs/pages/cli/op-reth/db/version.mdx index 56250ad6e1..a33bf8ef3b 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db/version.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db/version.mdx @@ -91,6 +91,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -115,9 +133,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/dump-genesis.mdx b/docs/vocs/docs/pages/cli/op-reth/dump-genesis.mdx index c91b9ae389..2486fb79ae 100644 --- a/docs/vocs/docs/pages/cli/op-reth/dump-genesis.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/dump-genesis.mdx @@ -90,6 +90,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -114,9 +132,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/import-op.mdx b/docs/vocs/docs/pages/cli/op-reth/import-op.mdx index b8099d8962..42398a7515 100644 --- a/docs/vocs/docs/pages/cli/op-reth/import-op.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/import-op.mdx @@ -207,6 +207,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -231,9 +249,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/import-receipts-op.mdx b/docs/vocs/docs/pages/cli/op-reth/import-receipts-op.mdx index 1de3e032e1..75b260f7e0 100644 --- a/docs/vocs/docs/pages/cli/op-reth/import-receipts-op.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/import-receipts-op.mdx @@ -207,6 +207,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -231,9 +249,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/init-state.mdx b/docs/vocs/docs/pages/cli/op-reth/init-state.mdx index dbea8471a1..3f1b0bff2e 100644 --- a/docs/vocs/docs/pages/cli/op-reth/init-state.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/init-state.mdx @@ -237,6 +237,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -261,9 +279,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/init.mdx b/docs/vocs/docs/pages/cli/op-reth/init.mdx index 0b5a2bbe14..3f7c5ab547 100644 --- a/docs/vocs/docs/pages/cli/op-reth/init.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/init.mdx @@ -198,6 +198,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -222,9 +240,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/node.mdx b/docs/vocs/docs/pages/cli/op-reth/node.mdx index 0c7f40e75f..74964bf641 100644 --- a/docs/vocs/docs/pages/cli/op-reth/node.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/node.mdx @@ -1139,6 +1139,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -1163,9 +1181,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/p2p.mdx b/docs/vocs/docs/pages/cli/op-reth/p2p.mdx index 07246ad198..3b4efdbd6f 100644 --- a/docs/vocs/docs/pages/cli/op-reth/p2p.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/p2p.mdx @@ -88,6 +88,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -112,9 +130,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/p2p/body.mdx b/docs/vocs/docs/pages/cli/op-reth/p2p/body.mdx index 6a228812ba..7fb5e5fa61 100644 --- a/docs/vocs/docs/pages/cli/op-reth/p2p/body.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/p2p/body.mdx @@ -338,6 +338,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -362,9 +380,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/p2p/bootnode.mdx b/docs/vocs/docs/pages/cli/op-reth/p2p/bootnode.mdx index a36d568ab8..387eef511b 100644 --- a/docs/vocs/docs/pages/cli/op-reth/p2p/bootnode.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/p2p/bootnode.mdx @@ -99,6 +99,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -123,9 +141,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/p2p/header.mdx b/docs/vocs/docs/pages/cli/op-reth/p2p/header.mdx index cadce11b79..9ede2d8eb7 100644 --- a/docs/vocs/docs/pages/cli/op-reth/p2p/header.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/p2p/header.mdx @@ -338,6 +338,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -362,9 +380,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/p2p/rlpx.mdx b/docs/vocs/docs/pages/cli/op-reth/p2p/rlpx.mdx index 31aabc276b..5b33e8b850 100644 --- a/docs/vocs/docs/pages/cli/op-reth/p2p/rlpx.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/p2p/rlpx.mdx @@ -85,6 +85,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -109,9 +127,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/p2p/rlpx/ping.mdx b/docs/vocs/docs/pages/cli/op-reth/p2p/rlpx/ping.mdx index 4f03545a90..e91e437e94 100644 --- a/docs/vocs/docs/pages/cli/op-reth/p2p/rlpx/ping.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/p2p/rlpx/ping.mdx @@ -85,6 +85,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -109,9 +127,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/prune.mdx b/docs/vocs/docs/pages/cli/op-reth/prune.mdx index 02ff5e4d94..2df4b66eb9 100644 --- a/docs/vocs/docs/pages/cli/op-reth/prune.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/prune.mdx @@ -198,6 +198,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -222,9 +240,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/re-execute.mdx b/docs/vocs/docs/pages/cli/op-reth/re-execute.mdx index 5ee62b4ef9..e0759212e3 100644 --- a/docs/vocs/docs/pages/cli/op-reth/re-execute.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/re-execute.mdx @@ -214,6 +214,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -238,9 +256,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage.mdx b/docs/vocs/docs/pages/cli/op-reth/stage.mdx index 1322ab4579..f166900055 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage.mdx @@ -88,6 +88,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -112,9 +130,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/drop.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/drop.mdx index d6088616b0..d1f90a8467 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/drop.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/drop.mdx @@ -213,6 +213,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -237,9 +255,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/dump.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/dump.mdx index 99e0cfe759..3107256bbe 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/dump.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/dump.mdx @@ -205,6 +205,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -229,9 +247,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/dump/account-hashing.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/dump/account-hashing.mdx index dd58e31fbb..05bedbe5b0 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/dump/account-hashing.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/dump/account-hashing.mdx @@ -103,6 +103,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -127,9 +145,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/dump/execution.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/dump/execution.mdx index 47740d0e06..95cf1f8e64 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/dump/execution.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/dump/execution.mdx @@ -103,6 +103,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -127,9 +145,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/dump/merkle.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/dump/merkle.mdx index 3b02f7199a..523e60bbe9 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/dump/merkle.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/dump/merkle.mdx @@ -103,6 +103,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -127,9 +145,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/dump/storage-hashing.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/dump/storage-hashing.mdx index 07feb42a25..2e10a26ade 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/dump/storage-hashing.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/dump/storage-hashing.mdx @@ -103,6 +103,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -127,9 +145,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/run.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/run.mdx index 31549275a9..7f813ba789 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/run.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/run.mdx @@ -460,6 +460,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -484,9 +502,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/unwind.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/unwind.mdx index 5f166ef73a..426d481f6e 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/unwind.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/unwind.mdx @@ -206,6 +206,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -230,9 +248,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/unwind/num-blocks.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/unwind/num-blocks.mdx index d204bdc5e7..b843474157 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/unwind/num-blocks.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/unwind/num-blocks.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/unwind/to-block.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/unwind/to-block.mdx index 9577e0dd76..363c6adcf3 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/unwind/to-block.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/unwind/to-block.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth.mdx b/docs/vocs/docs/pages/cli/reth.mdx index 0287f2e47f..79586fd5fb 100644 --- a/docs/vocs/docs/pages/cli/reth.mdx +++ b/docs/vocs/docs/pages/cli/reth.mdx @@ -101,6 +101,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -125,9 +143,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/config.mdx b/docs/vocs/docs/pages/cli/reth/config.mdx index 07d09a16da..6fc23ce552 100644 --- a/docs/vocs/docs/pages/cli/reth/config.mdx +++ b/docs/vocs/docs/pages/cli/reth/config.mdx @@ -87,6 +87,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -111,9 +129,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db.mdx b/docs/vocs/docs/pages/cli/reth/db.mdx index 22024cf3f5..d9e12bd747 100644 --- a/docs/vocs/docs/pages/cli/reth/db.mdx +++ b/docs/vocs/docs/pages/cli/reth/db.mdx @@ -214,6 +214,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -238,9 +256,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/account-storage.mdx b/docs/vocs/docs/pages/cli/reth/db/account-storage.mdx index 380291feb3..c9efbfd79c 100644 --- a/docs/vocs/docs/pages/cli/reth/db/account-storage.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/account-storage.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/checksum.mdx b/docs/vocs/docs/pages/cli/reth/db/checksum.mdx index 21ce752c42..067737df48 100644 --- a/docs/vocs/docs/pages/cli/reth/db/checksum.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/checksum.mdx @@ -104,6 +104,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -128,9 +146,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/clear.mdx b/docs/vocs/docs/pages/cli/reth/db/clear.mdx index 3483b71f46..ce27ae40a6 100644 --- a/docs/vocs/docs/pages/cli/reth/db/clear.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/clear.mdx @@ -96,6 +96,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -120,9 +138,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/clear/mdbx.mdx b/docs/vocs/docs/pages/cli/reth/db/clear/mdbx.mdx index 9fbfb1e825..3645c1a39b 100644 --- a/docs/vocs/docs/pages/cli/reth/db/clear/mdbx.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/clear/mdbx.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/clear/static-file.mdx b/docs/vocs/docs/pages/cli/reth/db/clear/static-file.mdx index f1ce7b217b..e9a7792cf0 100644 --- a/docs/vocs/docs/pages/cli/reth/db/clear/static-file.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/clear/static-file.mdx @@ -100,6 +100,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -124,9 +142,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/diff.mdx b/docs/vocs/docs/pages/cli/reth/db/diff.mdx index 745211efa4..1716ecd44a 100644 --- a/docs/vocs/docs/pages/cli/reth/db/diff.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/diff.mdx @@ -147,6 +147,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -171,9 +189,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/drop.mdx b/docs/vocs/docs/pages/cli/reth/db/drop.mdx index 7529225295..cd82874656 100644 --- a/docs/vocs/docs/pages/cli/reth/db/drop.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/drop.mdx @@ -94,6 +94,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -118,9 +136,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/get.mdx b/docs/vocs/docs/pages/cli/reth/db/get.mdx index abb95ab6b4..af77c97620 100644 --- a/docs/vocs/docs/pages/cli/reth/db/get.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/get.mdx @@ -96,6 +96,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -120,9 +138,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/get/mdbx.mdx b/docs/vocs/docs/pages/cli/reth/db/get/mdbx.mdx index 1983cfe7b2..3e30668677 100644 --- a/docs/vocs/docs/pages/cli/reth/db/get/mdbx.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/get/mdbx.mdx @@ -110,6 +110,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -134,9 +152,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/get/static-file.mdx b/docs/vocs/docs/pages/cli/reth/db/get/static-file.mdx index 45061bdd84..2a79431014 100644 --- a/docs/vocs/docs/pages/cli/reth/db/get/static-file.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/get/static-file.mdx @@ -109,6 +109,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -133,9 +151,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/list.mdx b/docs/vocs/docs/pages/cli/reth/db/list.mdx index 0c1f4bc857..faf4bdbbf9 100644 --- a/docs/vocs/docs/pages/cli/reth/db/list.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/list.mdx @@ -137,6 +137,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -161,9 +179,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/path.mdx b/docs/vocs/docs/pages/cli/reth/db/path.mdx index b0b2c3c754..296e9b443a 100644 --- a/docs/vocs/docs/pages/cli/reth/db/path.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/path.mdx @@ -91,6 +91,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -115,9 +133,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/repair-trie.mdx b/docs/vocs/docs/pages/cli/reth/db/repair-trie.mdx index 528a24b090..9c9cf2e051 100644 --- a/docs/vocs/docs/pages/cli/reth/db/repair-trie.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/repair-trie.mdx @@ -99,6 +99,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -123,9 +141,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/settings.mdx b/docs/vocs/docs/pages/cli/reth/db/settings.mdx index 19d707370e..f9bb6ad559 100644 --- a/docs/vocs/docs/pages/cli/reth/db/settings.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/settings.mdx @@ -96,6 +96,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -120,9 +138,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/settings/get.mdx b/docs/vocs/docs/pages/cli/reth/db/settings/get.mdx index 9df0654725..0013c6121a 100644 --- a/docs/vocs/docs/pages/cli/reth/db/settings/get.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/settings/get.mdx @@ -91,6 +91,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -115,9 +133,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/settings/set.mdx b/docs/vocs/docs/pages/cli/reth/db/settings/set.mdx index 5bc4b1566d..8c6f1c5273 100644 --- a/docs/vocs/docs/pages/cli/reth/db/settings/set.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/settings/set.mdx @@ -97,6 +97,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -121,9 +139,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/settings/set/account_changesets.mdx b/docs/vocs/docs/pages/cli/reth/db/settings/set/account_changesets.mdx index d64a77fc67..ee3eec2265 100644 --- a/docs/vocs/docs/pages/cli/reth/db/settings/set/account_changesets.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/settings/set/account_changesets.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/settings/set/receipts.mdx b/docs/vocs/docs/pages/cli/reth/db/settings/set/receipts.mdx index 62d729b82a..6c2d73e74a 100644 --- a/docs/vocs/docs/pages/cli/reth/db/settings/set/receipts.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/settings/set/receipts.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/settings/set/transaction_senders.mdx b/docs/vocs/docs/pages/cli/reth/db/settings/set/transaction_senders.mdx index 8d7b217aa7..e5645aff4c 100644 --- a/docs/vocs/docs/pages/cli/reth/db/settings/set/transaction_senders.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/settings/set/transaction_senders.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/static-file-header.mdx b/docs/vocs/docs/pages/cli/reth/db/static-file-header.mdx index 0343097545..2894ca1f62 100644 --- a/docs/vocs/docs/pages/cli/reth/db/static-file-header.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/static-file-header.mdx @@ -96,6 +96,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -120,9 +138,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/static-file-header/block.mdx b/docs/vocs/docs/pages/cli/reth/db/static-file-header/block.mdx index 51d779984f..dfa69b1281 100644 --- a/docs/vocs/docs/pages/cli/reth/db/static-file-header/block.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/static-file-header/block.mdx @@ -105,6 +105,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -129,9 +147,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/static-file-header/path.mdx b/docs/vocs/docs/pages/cli/reth/db/static-file-header/path.mdx index 404f711082..9b566c88b2 100644 --- a/docs/vocs/docs/pages/cli/reth/db/static-file-header/path.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/static-file-header/path.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/stats.mdx b/docs/vocs/docs/pages/cli/reth/db/stats.mdx index 36ebe7938f..61afe8d775 100644 --- a/docs/vocs/docs/pages/cli/reth/db/stats.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/stats.mdx @@ -107,6 +107,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -131,9 +149,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/db/version.mdx b/docs/vocs/docs/pages/cli/reth/db/version.mdx index 5e983356be..6f6e6b282c 100644 --- a/docs/vocs/docs/pages/cli/reth/db/version.mdx +++ b/docs/vocs/docs/pages/cli/reth/db/version.mdx @@ -91,6 +91,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -115,9 +133,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/download.mdx b/docs/vocs/docs/pages/cli/reth/download.mdx index 46bd7c28da..016fc2b07f 100644 --- a/docs/vocs/docs/pages/cli/reth/download.mdx +++ b/docs/vocs/docs/pages/cli/reth/download.mdx @@ -208,6 +208,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -232,9 +250,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/dump-genesis.mdx b/docs/vocs/docs/pages/cli/reth/dump-genesis.mdx index 905f2fbf4a..954e96a448 100644 --- a/docs/vocs/docs/pages/cli/reth/dump-genesis.mdx +++ b/docs/vocs/docs/pages/cli/reth/dump-genesis.mdx @@ -90,6 +90,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -114,9 +132,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/export-era.mdx b/docs/vocs/docs/pages/cli/reth/export-era.mdx index 33f13c8db1..4eab7b84a0 100644 --- a/docs/vocs/docs/pages/cli/reth/export-era.mdx +++ b/docs/vocs/docs/pages/cli/reth/export-era.mdx @@ -214,6 +214,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -238,9 +256,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/import-era.mdx b/docs/vocs/docs/pages/cli/reth/import-era.mdx index b168f7c841..97386ec857 100644 --- a/docs/vocs/docs/pages/cli/reth/import-era.mdx +++ b/docs/vocs/docs/pages/cli/reth/import-era.mdx @@ -209,6 +209,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -233,9 +251,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/import.mdx b/docs/vocs/docs/pages/cli/reth/import.mdx index f5e05da3e5..10eed08490 100644 --- a/docs/vocs/docs/pages/cli/reth/import.mdx +++ b/docs/vocs/docs/pages/cli/reth/import.mdx @@ -210,6 +210,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -234,9 +252,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/init-state.mdx b/docs/vocs/docs/pages/cli/reth/init-state.mdx index 2f5cf858e2..eaab28160e 100644 --- a/docs/vocs/docs/pages/cli/reth/init-state.mdx +++ b/docs/vocs/docs/pages/cli/reth/init-state.mdx @@ -230,6 +230,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -254,9 +272,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/init.mdx b/docs/vocs/docs/pages/cli/reth/init.mdx index 5440c4526d..586f0d4a44 100644 --- a/docs/vocs/docs/pages/cli/reth/init.mdx +++ b/docs/vocs/docs/pages/cli/reth/init.mdx @@ -198,6 +198,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -222,9 +240,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/node.mdx b/docs/vocs/docs/pages/cli/reth/node.mdx index eaac479607..d6be9ba55e 100644 --- a/docs/vocs/docs/pages/cli/reth/node.mdx +++ b/docs/vocs/docs/pages/cli/reth/node.mdx @@ -1112,6 +1112,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -1136,9 +1154,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/p2p.mdx b/docs/vocs/docs/pages/cli/reth/p2p.mdx index 9ceba951c1..11d9743c97 100644 --- a/docs/vocs/docs/pages/cli/reth/p2p.mdx +++ b/docs/vocs/docs/pages/cli/reth/p2p.mdx @@ -88,6 +88,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -112,9 +130,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/p2p/body.mdx b/docs/vocs/docs/pages/cli/reth/p2p/body.mdx index dd834eb71b..e0308bb255 100644 --- a/docs/vocs/docs/pages/cli/reth/p2p/body.mdx +++ b/docs/vocs/docs/pages/cli/reth/p2p/body.mdx @@ -338,6 +338,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -362,9 +380,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/p2p/bootnode.mdx b/docs/vocs/docs/pages/cli/reth/p2p/bootnode.mdx index 79335dfd92..47e73dd7d0 100644 --- a/docs/vocs/docs/pages/cli/reth/p2p/bootnode.mdx +++ b/docs/vocs/docs/pages/cli/reth/p2p/bootnode.mdx @@ -99,6 +99,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -123,9 +141,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/p2p/header.mdx b/docs/vocs/docs/pages/cli/reth/p2p/header.mdx index 110bb4d53a..101724c438 100644 --- a/docs/vocs/docs/pages/cli/reth/p2p/header.mdx +++ b/docs/vocs/docs/pages/cli/reth/p2p/header.mdx @@ -338,6 +338,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -362,9 +380,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/p2p/rlpx.mdx b/docs/vocs/docs/pages/cli/reth/p2p/rlpx.mdx index ee5d70b5fa..6e728e7154 100644 --- a/docs/vocs/docs/pages/cli/reth/p2p/rlpx.mdx +++ b/docs/vocs/docs/pages/cli/reth/p2p/rlpx.mdx @@ -85,6 +85,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -109,9 +127,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/p2p/rlpx/ping.mdx b/docs/vocs/docs/pages/cli/reth/p2p/rlpx/ping.mdx index 3bf3599145..cef500ecce 100644 --- a/docs/vocs/docs/pages/cli/reth/p2p/rlpx/ping.mdx +++ b/docs/vocs/docs/pages/cli/reth/p2p/rlpx/ping.mdx @@ -85,6 +85,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -109,9 +127,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/prune.mdx b/docs/vocs/docs/pages/cli/reth/prune.mdx index 61030d7b47..07cde6cd02 100644 --- a/docs/vocs/docs/pages/cli/reth/prune.mdx +++ b/docs/vocs/docs/pages/cli/reth/prune.mdx @@ -198,6 +198,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -222,9 +240,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/re-execute.mdx b/docs/vocs/docs/pages/cli/reth/re-execute.mdx index 198415e32d..6cbacf37e4 100644 --- a/docs/vocs/docs/pages/cli/reth/re-execute.mdx +++ b/docs/vocs/docs/pages/cli/reth/re-execute.mdx @@ -214,6 +214,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -238,9 +256,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage.mdx b/docs/vocs/docs/pages/cli/reth/stage.mdx index 67ca5866f4..527398c086 100644 --- a/docs/vocs/docs/pages/cli/reth/stage.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage.mdx @@ -88,6 +88,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -112,9 +130,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage/drop.mdx b/docs/vocs/docs/pages/cli/reth/stage/drop.mdx index c0fe88527f..4b460cadd8 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/drop.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/drop.mdx @@ -213,6 +213,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -237,9 +255,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage/dump.mdx b/docs/vocs/docs/pages/cli/reth/stage/dump.mdx index 2e995a92f2..b162958fd6 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/dump.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/dump.mdx @@ -205,6 +205,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -229,9 +247,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage/dump/account-hashing.mdx b/docs/vocs/docs/pages/cli/reth/stage/dump/account-hashing.mdx index 80348194ce..73fc6125c8 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/dump/account-hashing.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/dump/account-hashing.mdx @@ -103,6 +103,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -127,9 +145,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage/dump/execution.mdx b/docs/vocs/docs/pages/cli/reth/stage/dump/execution.mdx index a48c7e65db..d5daaaf660 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/dump/execution.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/dump/execution.mdx @@ -103,6 +103,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -127,9 +145,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage/dump/merkle.mdx b/docs/vocs/docs/pages/cli/reth/stage/dump/merkle.mdx index 203751e12f..3b5ae17e2e 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/dump/merkle.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/dump/merkle.mdx @@ -103,6 +103,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -127,9 +145,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage/dump/storage-hashing.mdx b/docs/vocs/docs/pages/cli/reth/stage/dump/storage-hashing.mdx index 1431798792..85fba8cbf7 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/dump/storage-hashing.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/dump/storage-hashing.mdx @@ -103,6 +103,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -127,9 +145,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage/run.mdx b/docs/vocs/docs/pages/cli/reth/stage/run.mdx index 47d2ba37e3..131c2b04c2 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/run.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/run.mdx @@ -460,6 +460,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -484,9 +502,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage/unwind.mdx b/docs/vocs/docs/pages/cli/reth/stage/unwind.mdx index ef119e783b..ecb0f3f82d 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/unwind.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/unwind.mdx @@ -206,6 +206,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -230,9 +248,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage/unwind/num-blocks.mdx b/docs/vocs/docs/pages/cli/reth/stage/unwind/num-blocks.mdx index adad84db51..56d3098042 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/unwind/num-blocks.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/unwind/num-blocks.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified. diff --git a/docs/vocs/docs/pages/cli/reth/stage/unwind/to-block.mdx b/docs/vocs/docs/pages/cli/reth/stage/unwind/to-block.mdx index 133c0b0124..2eb72130b7 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/unwind/to-block.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/unwind/to-block.mdx @@ -95,6 +95,24 @@ Logging: [default: always] + --logs-otlp[=] + Enable `Opentelemetry` logs export to an OTLP endpoint. + + If no value provided, defaults based on protocol: - HTTP: `http://localhost:4318/v1/logs` - gRPC: `http://localhost:4317` + + Example: --logs-otlp=http://collector:4318/v1/logs + + [env: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=] + + --logs-otlp.filter + Set a filter directive for the OTLP logs exporter. This controls the verbosity of logs sent to the OTLP endpoint. It follows the same syntax as the `RUST_LOG` environment variable. + + Example: --logs-otlp.filter=info,reth=debug + + Defaults to INFO if not specified. + + [default: info] + Display: -v, --verbosity... Set the minimum log level. @@ -119,9 +137,9 @@ Tracing: [env: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=] --tracing-otlp-protocol - OTLP transport protocol to use for exporting traces. + OTLP transport protocol to use for exporting traces and logs. - - `http`: expects endpoint path to end with `/v1/traces` - `grpc`: expects endpoint without a path + - `http`: expects endpoint path to end with `/v1/traces` or `/v1/logs` - `grpc`: expects endpoint without a path Defaults to HTTP if not specified.