Skip to content

Commit

Permalink
chore(log_to_metric transform): add missing Cargo feature (vectordotd…
Browse files Browse the repository at this point in the history
…ev#18308)

The `log_to_metric` transform was missing a corresponding Cargo feature. Therefore, when compiling
Vector with a reduced set of features, this transform was always included even if not requested.

This is the only transform that was missing a Cargo feature.

Signed-off-by: Hugo Hromic <hhromic@gmail.com>
  • Loading branch information
hhromic authored Aug 18, 2023
1 parent afdc66e commit 69621bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ transforms-logs = [
"transforms-aws_ec2_metadata",
"transforms-dedupe",
"transforms-filter",
"transforms-log_to_metric",
"transforms-lua",
"transforms-metric_to_log",
"transforms-pipelines",
Expand All @@ -591,6 +592,7 @@ transforms-logs = [
transforms-metrics = [
"transforms-aggregate",
"transforms-filter",
"transforms-log_to_metric",
"transforms-lua",
"transforms-metric_to_log",
"transforms-pipelines",
Expand All @@ -603,6 +605,7 @@ transforms-aggregate = []
transforms-aws_ec2_metadata = ["dep:arc-swap"]
transforms-dedupe = ["dep:lru"]
transforms-filter = []
transforms-log_to_metric = []
transforms-lua = ["dep:mlua", "vector-core/lua"]
transforms-metric_to_log = []
transforms-pipelines = ["transforms-filter", "transforms-route"]
Expand Down
4 changes: 4 additions & 0 deletions src/internal_events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ mod journald;
mod kafka;
#[cfg(feature = "sources-kubernetes_logs")]
mod kubernetes_logs;
#[cfg(feature = "transforms-log_to_metric")]
mod log_to_metric;
mod logplex;
#[cfg(feature = "sinks-loki")]
Expand All @@ -89,6 +90,7 @@ mod mongodb_metrics;
#[cfg(feature = "sources-nginx_metrics")]
mod nginx_metrics;
mod open;
#[cfg(feature = "transforms-log_to_metric")]
mod parser;
#[cfg(feature = "sources-postgresql_metrics")]
mod postgresql_metrics;
Expand Down Expand Up @@ -213,6 +215,7 @@ pub(crate) use self::journald::*;
pub(crate) use self::kafka::*;
#[cfg(feature = "sources-kubernetes_logs")]
pub(crate) use self::kubernetes_logs::*;
#[cfg(feature = "transforms-log_to_metric")]
pub(crate) use self::log_to_metric::*;
#[cfg(feature = "sources-heroku_logs")]
pub(crate) use self::logplex::*;
Expand All @@ -224,6 +227,7 @@ pub(crate) use self::lua::*;
pub(crate) use self::metric_to_log::*;
#[cfg(feature = "sources-nginx_metrics")]
pub(crate) use self::nginx_metrics::*;
#[cfg(feature = "transforms-log_to_metric")]
pub(crate) use self::parser::*;
#[cfg(feature = "sources-postgresql_metrics")]
pub(crate) use self::postgresql_metrics::*;
Expand Down
1 change: 1 addition & 0 deletions src/transforms/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub mod aws_ec2_metadata;
pub mod dedupe;
#[cfg(feature = "transforms-filter")]
pub mod filter;
#[cfg(feature = "transforms-log_to_metric")]
pub mod log_to_metric;
#[cfg(feature = "transforms-lua")]
pub mod lua;
Expand Down

0 comments on commit 69621bd

Please sign in to comment.