Struct opentelemetry_otlp::MetricsExporter [−][src]
pub struct MetricsExporter { /* fields omitted */ }
Expand description
Export metrics in OTEL format.
Implementations
pub fn new<T: ExportKindFor + Send + Sync + 'static>(
config: ExporterConfig,
tonic_config: TonicConfig,
export_selector: T
) -> Result<MetricsExporter>
[src]
pub fn new<T: ExportKindFor + Send + Sync + 'static>(
config: ExporterConfig,
tonic_config: TonicConfig,
export_selector: T
) -> Result<MetricsExporter>
[src]Create a new OTLP metrics exporter.
Trait Implementations
Determines the correct ExportKind
that should be used when exporting data
for the given metric instrument. Read more
Auto Trait Implementations
impl !RefUnwindSafe for MetricsExporter
impl Send for MetricsExporter
impl Sync for MetricsExporter
impl Unpin for MetricsExporter
impl !UnwindSafe for MetricsExporter
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more