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
sourceimpl<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,
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request