pub struct FileSetMetrics { /* private fields */ }Expand description
Metrics produced by the file writer.
You can enumerate the metrics using the emit::metric::Source implementation. See [emit::metric] for details.
Implementations§
Source§impl FileSetMetrics
impl FileSetMetrics
Sourcepub fn file_set_read_failed(&self) -> usize
pub fn file_set_read_failed(&self) -> usize
Attempting to read the set of log files failed.
Sourcepub fn file_open_failed(&self) -> usize
pub fn file_open_failed(&self) -> usize
Attempting to open a log file failed.
Sourcepub fn file_create(&self) -> usize
pub fn file_create(&self) -> usize
A new log file was created.
Sourcepub fn file_create_failed(&self) -> usize
pub fn file_create_failed(&self) -> usize
Attempting to create a new log file failed.
Sourcepub fn file_write_failed(&self) -> usize
pub fn file_write_failed(&self) -> usize
Attempting to write to a log file failed.
Sourcepub fn file_delete(&self) -> usize
pub fn file_delete(&self) -> usize
A log file was deleted.
Sourcepub fn file_delete_failed(&self) -> usize
pub fn file_delete_failed(&self) -> usize
Attempting to delete a log file failed.
Sourcepub fn event_format_failed(&self) -> usize
pub fn event_format_failed(&self) -> usize
Attempting to format an event into a batch failed and was discarded.
This happens before the event is written to any log files.
Sourcepub fn configuration_failed(&self) -> usize
pub fn configuration_failed(&self) -> usize
Attempting to configure the emitter failed.
This happens when file paths or other configuration properties are malformed. The emitter won’t write any events until configuration is fixed and the process is restarted.
Trait Implementations§
Source§impl Source for FileSetMetrics
impl Source for FileSetMetrics
Source§fn sample_metrics<S: Sampler>(&self, sampler: S)
fn sample_metrics<S: Sampler>(&self, sampler: S)
Produce a current sample for all metrics in the source.
Source§fn and_sample<U>(self, other: U) -> And<Self, U>where
Self: Sized,
fn and_sample<U>(self, other: U) -> And<Self, U>where
Self: Sized,
Chain this source to
other, sampling metrics from both.Auto Trait Implementations§
impl Freeze for FileSetMetrics
impl RefUnwindSafe for FileSetMetrics
impl Send for FileSetMetrics
impl Sync for FileSetMetrics
impl Unpin for FileSetMetrics
impl UnwindSafe for FileSetMetrics
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