Skip to content

Commit

Permalink
chore(nats sink): Refactor to use StreamSink components (#18243)
Browse files Browse the repository at this point in the history
* Move to stream based sink

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>

* Add request settings

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>

* Updated docs and comments

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>

* Dont need to take metadata

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>

* Clippy

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>

* Made Subject a Template in config

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>

---------

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>
  • Loading branch information
StephenWakely authored Aug 17, 2023
1 parent 7a1c49c commit 294c1dd
Show file tree
Hide file tree
Showing 12 changed files with 1,098 additions and 756 deletions.
4 changes: 0 additions & 4 deletions src/internal_events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ mod lua;
mod metric_to_log;
#[cfg(feature = "sources-mongodb_metrics")]
mod mongodb_metrics;
#[cfg(feature = "sinks-nats")]
mod nats;
#[cfg(feature = "sources-nginx_metrics")]
mod nginx_metrics;
mod open;
Expand Down Expand Up @@ -224,8 +222,6 @@ pub(crate) use self::loki::*;
pub(crate) use self::lua::*;
#[cfg(feature = "transforms-metric_to_log")]
pub(crate) use self::metric_to_log::*;
#[cfg(feature = "sinks-nats")]
pub(crate) use self::nats::*;
#[cfg(feature = "sources-nginx_metrics")]
pub(crate) use self::nginx_metrics::*;
pub(crate) use self::parser::*;
Expand Down
33 changes: 0 additions & 33 deletions src/internal_events/nats.rs

This file was deleted.

Loading

0 comments on commit 294c1dd

Please sign in to comment.