Skip to content
Closed
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
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

2 changes: 0 additions & 2 deletions lib/vector-buffers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ tokio = { version = "1.45.1", default-features = false, features = ["rt", "macro
tracing = { version = "0.1.34", default-features = false, features = ["attributes"] }
vector-config = { path = "../vector-config", default-features = false }
vector-common = { path = "../vector-common", default-features = false, features = ["byte_size_of"] }
dashmap = { version = "6.1", default-features = false }
ordered-float = { version = "4.6.0", default-features = false }

[dev-dependencies]
clap.workspace = true
Expand Down
7 changes: 1 addition & 6 deletions lib/vector-buffers/src/buffer_usage_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,8 @@ impl BufferUsage {
/// The `buffer_id` should be a unique name -- ideally the `component_id` of the sink using this buffer -- but is
/// not used for anything other than reporting, and so has no _requirement_ to be unique.
pub fn install(self, buffer_id: &str) {
let buffer_id = buffer_id.to_string();
let span = self.span;
let stages = self.stages;
let task_name = format!("buffer usage reporter ({buffer_id})");

let task = async move {
let mut interval = interval(Duration::from_secs(2));
Expand All @@ -266,7 +264,6 @@ impl BufferUsage {
let received = stage.received.consume();
if received.has_updates() {
emit(BufferEventsReceived {
buffer_id: buffer_id.clone(),
idx: stage.idx,
count: received.event_count,
byte_size: received.event_byte_size,
Expand All @@ -276,7 +273,6 @@ impl BufferUsage {
let sent = stage.sent.consume();
if sent.has_updates() {
emit(BufferEventsSent {
buffer_id: buffer_id.clone(),
idx: stage.idx,
count: sent.event_count,
byte_size: sent.event_byte_size,
Expand All @@ -286,7 +282,6 @@ impl BufferUsage {
let dropped = stage.dropped.consume();
if dropped.has_updates() {
emit(BufferEventsDropped {
buffer_id: buffer_id.clone(),
idx: stage.idx,
intentional: false,
reason: "corrupted_events",
Expand All @@ -298,7 +293,6 @@ impl BufferUsage {
let dropped_intentional = stage.dropped_intentional.consume();
if dropped_intentional.has_updates() {
emit(BufferEventsDropped {
buffer_id: buffer_id.clone(),
idx: stage.idx,
intentional: true,
reason: "drop_newest",
Expand All @@ -310,6 +304,7 @@ impl BufferUsage {
}
};

let task_name = format!("buffer usage reporter ({buffer_id})");
spawn_named(task.instrument(span.or_current()), task_name.as_str());
}
}
19 changes: 0 additions & 19 deletions lib/vector-buffers/src/cast_utils.rs

This file was deleted.

Loading
Loading