We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2175da commit 5bc794cCopy full SHA for 5bc794c
dogstatsd/src/datadog.rs
@@ -151,7 +151,8 @@ impl DdApi {
151
/// Ship a serialized series to the API, blocking
152
pub async fn ship_series(&self, series: &Series) -> Result<Response, ShippingError> {
153
let url = format!("{}/api/v2/series", &self.metrics_intake_url_prefix);
154
- let safe_body = serde_json::to_vec(&series).map_err(|_| ShippingError::Payload("Failed to serialize series".to_string()))?;
+ let safe_body = serde_json::to_vec(&series)
155
+ .map_err(|_| ShippingError::Payload("Failed to serialize series".to_string()))?;
156
debug!("Sending body: {:?}", &series);
157
self.ship_data(url, safe_body, "application/json").await
158
}
0 commit comments