Struct grafana_plugin_sdk::backend::HCLogJson
source · pub struct HCLogJson { /* private fields */ }
Expand description
A tracing
event formatter which writes events in a format compatible with hclog.
This should be used as the FormatEvent
in a FmtSubscriber
by plugins
so that the parent Grafana process can interpret events correctly, with extra fields
included.
This struct should not need to be instantiated directly; instead, users should use the
backend::layer
function to create a preconfigured
Layer
which can then be installed, perhaps alongside other
layers.
Trait Implementations§
source§impl<S, N> FormatEvent<S, N> for HCLogJsonwhere
S: Subscriber + for<'lookup> LookupSpan<'lookup>,
N: for<'writer> FormatFields<'writer> + 'static,
impl<S, N> FormatEvent<S, N> for HCLogJsonwhere
S: Subscriber + for<'lookup> LookupSpan<'lookup>,
N: for<'writer> FormatFields<'writer> + 'static,
source§fn format_event(
&self,
ctx: &FmtContext<'_, S, N>,
writer: Writer<'_>,
event: &Event<'_>
) -> Resultwhere
S: Subscriber + for<'a> LookupSpan<'a>,
fn format_event(
&self,
ctx: &FmtContext<'_, S, N>,
writer: Writer<'_>,
event: &Event<'_>
) -> Resultwhere
S: Subscriber + for<'a> LookupSpan<'a>,
Auto Trait Implementations§
impl RefUnwindSafe for HCLogJson
impl Send for HCLogJson
impl Sync for HCLogJson
impl Unpin for HCLogJson
impl UnwindSafe for HCLogJson
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request