diff --git a/src/sinks/websocket/config.rs b/src/sinks/websocket/config.rs index 6027273ee4275..76a3391ff0eac 100644 --- a/src/sinks/websocket/config.rs +++ b/src/sinks/websocket/config.rs @@ -94,7 +94,7 @@ impl SinkConfig for WebSocketSinkConfig { } fn input(&self) -> Input { - Input::log() + Input::new(self.encoding.config().input_type()) } fn acknowledgements(&self) -> &AcknowledgementsConfig { diff --git a/website/cue/reference/components/sinks/websocket.cue b/website/cue/reference/components/sinks/websocket.cue index f38a55091b4e9..d46777404de88 100644 --- a/website/cue/reference/components/sinks/websocket.cue +++ b/website/cue/reference/components/sinks/websocket.cue @@ -67,9 +67,16 @@ components: sinks: websocket: { } input: { - logs: true - metrics: null - traces: false + logs: true + metrics: { + counter: true + distribution: true + gauge: true + histogram: true + summary: true + set: true + } + traces: true } telemetry: metrics: {