Skip to content

Commit 4df62cd

Browse files
committed
Stop the verbose logging/tracing of the latest metastate and of every HTTP request
Metastate: Right now this was on the 'warn!' level, which causes problems for logging and tracing ingesters when there are hundreds of chunks being picked up per second. This does not need to be logged at such a high level, so let's lower it down to the 'debug' verbosity. HTTP requests: This is also lowered to the 'debug' verbosity.
1 parent 3367641 commit 4df62cd

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ members = [
99
]
1010

1111
[workspace.package]
12-
version = "0.33.2"
12+
version = "0.33.3"
1313

1414

1515
[workspace.lints.clippy]

opsqueue/src/consumer/dispatcher/metastate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl MetaStateField {
110110
}
111111

112112
pub fn too_high_counts(&self, max: usize) -> impl Iterator<Item = MetaStateVal> + '_ {
113-
tracing::warn!("metastate: {self:?}");
113+
tracing::debug!("metastate: {self:?}");
114114
self.counts_to_vals
115115
.range((max, 0)..)
116116
.map(|entry| entry.value().1)

opsqueue/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub fn build_router(
9090
let tracing_middleware = tower_http::trace::TraceLayer::new_for_http()
9191
.make_span_with(|request: &http::Request<_>| {
9292
use tracing_opentelemetry::OpenTelemetrySpanExt;
93-
let span = tracing::info_span!("request",
93+
let span = tracing::debug_span!("request",
9494
method = %request.method(),
9595
uri = %request.uri(),
9696
version = ?request.version(),

0 commit comments

Comments
 (0)