pub struct DatadogExporter { /* private fields */ }Expand description
Exports traces to Datadog APM via the Datadog Trace API.
Env vars:
DD_API_KEY— Datadog API keyDD_SITE— Datadog site (default:datadoghq.com)DD_SERVICE— service name tag (default:agentforge)DD_ENV— environment tag (default:production)
Implementations§
Trait Implementations§
Source§impl TraceExporter for DatadogExporter
impl TraceExporter for DatadogExporter
Source§fn export<'life0, 'life1, 'async_trait>(
&'life0 self,
trace: &'life1 Trace,
) -> Pin<Box<dyn Future<Output = Result<(), ExporterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn export<'life0, 'life1, 'async_trait>(
&'life0 self,
trace: &'life1 Trace,
) -> Pin<Box<dyn Future<Output = Result<(), ExporterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Export a single trace to the backend.
Source§fn export_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
traces: &'life1 [Trace],
) -> Pin<Box<dyn Future<Output = Vec<Result<(), ExporterError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn export_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
traces: &'life1 [Trace],
) -> Pin<Box<dyn Future<Output = Vec<Result<(), ExporterError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Export a batch of traces (default: loop over
export).Auto Trait Implementations§
impl Freeze for DatadogExporter
impl !RefUnwindSafe for DatadogExporter
impl Send for DatadogExporter
impl Sync for DatadogExporter
impl Unpin for DatadogExporter
impl UnsafeUnpin for DatadogExporter
impl !UnwindSafe for DatadogExporter
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