Skip to content

Commit d4cde3e

Browse files
committed
Fixup after rebase
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
1 parent db03e5c commit d4cde3e

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

datadog-sidecar-ffi/tests/sidecar.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ fn test_ddog_sidecar_register_app() {
114114
false,
115115
false,
116116
&process_tags,
117+
"".into(),
118+
"".into(),
117119
)
118120
.unwrap_none();
119121

@@ -165,6 +167,8 @@ fn test_ddog_sidecar_register_app() {
165167
false,
166168
false,
167169
&process_tags,
170+
"".into(),
171+
"".into(),
168172
)
169173
.unwrap_none();
170174

libdd-data-pipeline/src/trace_exporter/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ use libdd_common::tag::Tag;
3939
use libdd_common::Endpoint;
4040
use libdd_dogstatsd_client::Client;
4141
use libdd_shared_runtime::{SharedRuntime, WorkerHandle};
42-
use libdd_trace_stats::stats_exporter::{StatsExporter, StatsMetadata};
4342
use libdd_trace_utils::msgpack_decoder;
4443
use libdd_trace_utils::send_with_retry::{
4544
send_with_retry, RetryStrategy, SendWithRetryError, SendWithRetryResult,

libdd-trace-stats/src/stats_exporter.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ use std::{
1111

1212
use crate::span_concentrator::{FlushableConcentrator, SpanConcentrator};
1313
use async_trait::async_trait;
14-
use std::fmt::Debug;
1514
use libdd_capabilities::{HttpClientTrait, MaybeSend};
1615
use libdd_common::Endpoint;
1716
use libdd_shared_runtime::Worker;
1817
use libdd_trace_protobuf::pb;
1918
use libdd_trace_utils::send_with_retry::{send_with_retry, RetryStrategy};
2019
use libdd_trace_utils::trace_utils::TracerHeaderTags;
21-
use tokio::select;
22-
use tokio_util::sync::CancellationToken;
20+
use std::fmt::Debug;
2321
use tracing::error;
2422

2523
pub const STATS_ENDPOINT_PATH: &str = "/v0.6/stats";
@@ -164,7 +162,11 @@ impl<H: HttpClientTrait, C: FlushableConcentrator> StatsExporter<H, C> {
164162

165163
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
166164
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
167-
impl<H: HttpClientTrait + MaybeSend + Sync + Debug + 'static, C: FlushableConcentrator + Send + Debug> Worker for StatsExporter<H, C> {
165+
impl<
166+
H: HttpClientTrait + MaybeSend + Sync + Debug + 'static,
167+
C: FlushableConcentrator + Send + Debug,
168+
> Worker for StatsExporter<H, C>
169+
{
168170
async fn trigger(&mut self) {
169171
tokio::time::sleep(self.flush_interval).await;
170172
}

0 commit comments

Comments
 (0)