Skip to content

Commit c566f3f

Browse files
committed
Merge remote-tracking branch 'origin/master' into dependabot/github_actions/actions-4a3a8eedec
2 parents d3f94a7 + a586d90 commit c566f3f

84 files changed

Lines changed: 2323 additions & 658 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ clean: ## Clean everything
510510

511511
.PHONY: generate-kubernetes-manifests
512512
generate-kubernetes-manifests: ## Generate Kubernetes manifests from the latest (or CHART_VERSION) Helm chart
513-
$(VDEV) build manifests -- $(if $(CHART_VERSION),--chart-version $(CHART_VERSION))
513+
$(VDEV) build manifests $(if $(CHART_VERSION),--chart-version "$(CHART_VERSION)")
514514

515515
.PHONY: generate-component-docs
516516
generate-component-docs: ## Generate per-component Cue docs from the configuration schema.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The `kubernetes_logs` source no longer drops Namespace and Node labels from the Vector log namespace metadata (`%kubernetes_logs.namespace_labels` and `%kubernetes_logs.node_labels`) when `namespace_annotation_fields.namespace_labels` or `node_annotation_fields.node_labels` is set to `""`. An empty path now only suppresses the legacy event field, matching how `pod_annotation_fields` behaves.
2+
3+
authors: srstrickland
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The `kubernetes_logs` source now enriches events with the owning Namespace's annotations, in addition to its labels. Add `namespace_annotation_fields.namespace_annotations` to customize or suppress the output field (default: `.kubernetes.namespace_annotations`).
2+
3+
authors: srstrickland
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fixes an issue where components selected for an explicit reload remained selected for later configuration reloads. This could unnecessarily restart unchanged components and reset their in-memory state.
2+
3+
authors: arunpidugu

‎lib/codecs/benches/codecs/character_delimited_bytes.rs‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ fn decoding(c: &mut Criterion) {
5151
let framer = Framer::CharacterDelimited(
5252
param
5353
.max_length
54-
.map(|ml| CharacterDelimitedDecoder::new_with_max_length(b'a', ml))
55-
.unwrap_or(CharacterDelimitedDecoder::new(b'a')),
54+
.map_or(CharacterDelimitedDecoder::new(b'a'), |ml| {
55+
CharacterDelimitedDecoder::new_with_max_length(b'a', ml)
56+
}),
5657
);
5758
let deserializer = Deserializer::Bytes(BytesDeserializer);
5859
let decoder = Decoder::new(framer, deserializer);
@@ -61,15 +62,15 @@ fn decoding(c: &mut Criterion) {
6162
},
6263
|(mut decoder, mut input)| loop {
6364
match decoder.decode_eof(&mut input) {
64-
Ok(Some(_)) => continue,
65+
Ok(Some(_)) => {}
6566
Ok(None) => break,
6667
Err(_) => {
6768
unreachable!()
6869
}
6970
}
7071
},
7172
BatchSize::SmallInput,
72-
)
73+
);
7374
},
7475
);
7576
}
@@ -79,7 +80,7 @@ criterion_group!(
7980
name = benches;
8081
config = Criterion::default()
8182
.warm_up_time(Duration::from_secs(5))
82-
.measurement_time(Duration::from_secs(120))
83+
.measurement_time(Duration::from_mins(2))
8384
// degree of noise to ignore in measurements, here 1%
8485
.noise_threshold(0.01)
8586
// likelihood of noise registering as difference, here 5%

‎lib/codecs/benches/codecs/encoder.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn encoder(c: &mut Criterion) {
5454
bytes.put_u8(b'\n');
5555
},
5656
BatchSize::SmallInput,
57-
)
57+
);
5858
});
5959

6060
group.throughput(Throughput::Bytes(input.size_of() as u64));
@@ -67,7 +67,7 @@ fn encoder(c: &mut Criterion) {
6767
bytes.put_u8(b'\n');
6868
},
6969
BatchSize::SmallInput,
70-
)
70+
);
7171
});
7272

7373
group.throughput(Throughput::Bytes(input.size_of() as u64));
@@ -80,7 +80,7 @@ fn encoder(c: &mut Criterion) {
8080
bytes.put_u8(b'\n');
8181
},
8282
BatchSize::SmallInput,
83-
)
83+
);
8484
});
8585

8686
group.throughput(Throughput::Bytes(input.size_of() as u64));
@@ -97,7 +97,7 @@ fn encoder(c: &mut Criterion) {
9797
encoder.encode(input.clone(), &mut bytes).unwrap();
9898
},
9999
BatchSize::SmallInput,
100-
)
100+
);
101101
});
102102
}
103103

‎lib/codecs/benches/codecs/main.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![warn(clippy::pedantic)]
2+
13
use criterion::criterion_main;
24

35
mod character_delimited_bytes;

‎lib/codecs/benches/codecs/newline_bytes.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ fn decoding(c: &mut Criterion) {
6161
},
6262
|(mut decoder, mut input)| loop {
6363
match decoder.decode_eof(&mut input) {
64-
Ok(Some(_)) => continue,
64+
Ok(Some(_)) => {}
6565
Ok(None) => break,
6666
Err(_) => {
6767
unreachable!()
6868
}
6969
}
7070
},
7171
BatchSize::SmallInput,
72-
)
72+
);
7373
},
7474
);
7575
}
@@ -79,7 +79,7 @@ criterion_group!(
7979
name = benches;
8080
config = Criterion::default()
8181
.warm_up_time(Duration::from_secs(5))
82-
.measurement_time(Duration::from_secs(120))
82+
.measurement_time(Duration::from_mins(2))
8383
// degree of noise to ignore in measurements, here 1%
8484
.noise_threshold(0.01)
8585
// likelihood of noise registering as difference, here 5%

‎lib/codecs/src/common/length_delimited.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl LengthDelimitedCoderOptions {
6060
builder.big_endian();
6161
} else {
6262
builder.little_endian();
63-
};
63+
}
6464
builder.new_codec()
6565
}
6666
}

0 commit comments

Comments
 (0)