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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/dogstatsd/src/datadog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use std::fs::File;
use std::io::{BufReader, Write};
use std::sync::OnceLock;
use std::time::Duration;
use tracing::{debug, error};
use tracing::{debug, error, trace};
use zstd::stream::write::Encoder;
use zstd::zstd_safe::CompressionLevel;

Expand Down Expand Up @@ -173,7 +173,7 @@ impl DdApi {
let url = format!("{}/api/v2/series", &self.metrics_intake_url_prefix);
let safe_body = serde_json::to_vec(&series)
.map_err(|e| ShippingError::Payload(format!("Failed to serialize series: {e}")))?;
debug!("Sending body: {:?}", &series);
trace!("Sending body: {:?}", &series);
self.ship_data(url, safe_body, "application/json").await
}

Expand All @@ -185,7 +185,7 @@ impl DdApi {
let safe_body = sketches
.write_to_bytes()
.map_err(|e| ShippingError::Payload(format!("Failed to serialize series: {e}")))?;
debug!("Sending distributions: {:?}", &sketches);
trace!("Sending distributions: {:?}", &sketches);
self.ship_data(url, safe_body, "application/x-protobuf")
.await
// TODO maybe go to coded output stream if we incrementally
Expand Down
4 changes: 2 additions & 2 deletions crates/dogstatsd/src/dogstatsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::str::Split;
use crate::aggregator_service::AggregatorHandle;
use crate::errors::ParseError::UnsupportedType;
use crate::metric::{id, parse, Metric};
use tracing::{debug, error};
use tracing::{debug, error, trace};

pub struct DogStatsD {
cancel_token: tokio_util::sync::CancellationToken,
Expand Down Expand Up @@ -89,7 +89,7 @@ impl DogStatsD {

#[allow(clippy::expect_used)]
let msgs = std::str::from_utf8(&buf).expect("couldn't parse as string");
debug!("Received message: {} from {}", msgs, src);
trace!("Received message: {} from {}", msgs, src);
let statsd_metric_strings = msgs.split('\n');
self.insert_metrics(statsd_metric_strings);
}
Expand Down