pub struct StdErrorLogFieldsBuilder<'a>(_);
Expand description

A specialized span log builder for the standard error log fields.

This builder automatically inserts the field LogField::new("event", "error").

Implementations

Adds the field LogField::new("error.kind", kind).

kind is the type or “kind” of an error.

E.g., "Exception", "OSError"

Adds the field LogField::new("message", message).

message is a concise, human-readable, one-line message explaining the event.

E.g., "Could not connect to backend", "Cache invalidation succeeded"

Adds the field LogField::new("stack", {stack trace}).

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.