pub struct GitHubReporter;Expand description
Reports exceptions by calling the gh CLI.
Requires gh to be installed and authenticated.
Each new exception becomes a GitHub Issue; duplicates get a comment.
Implementations§
Trait Implementations§
Source§impl Debug for GitHubReporter
impl Debug for GitHubReporter
Source§impl Default for GitHubReporter
impl Default for GitHubReporter
Source§impl ExceptionReporter for GitHubReporter
impl ExceptionReporter for GitHubReporter
Source§fn check_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if gh CLI is installed and available in PATH.
Source§fn report<'life0, 'life1, 'async_trait>(
&'life0 self,
batch: &'life1 ExceptionBatch,
) -> Pin<Box<dyn Future<Output = CollectorResult<ReportResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn report<'life0, 'life1, 'async_trait>(
&'life0 self,
batch: &'life1 ExceptionBatch,
) -> Pin<Box<dyn Future<Output = CollectorResult<ReportResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Report an exception batch by creating GitHub Issues.
For each record in the batch, creates a new issue.
Records with duplicate_of set get a comment on the existing issue instead.
Auto Trait Implementations§
impl Freeze for GitHubReporter
impl RefUnwindSafe for GitHubReporter
impl Send for GitHubReporter
impl Sync for GitHubReporter
impl Unpin for GitHubReporter
impl UnsafeUnpin for GitHubReporter
impl UnwindSafe for GitHubReporter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more