Skip to main content

OtlpParser

Trait OtlpParser 

Source
pub trait OtlpParser {
    // Required methods
    fn parse_file(&self, path: &Path) -> Result<ParsedTelemetry>;
    fn parse_bytes(&self, data: &[u8]) -> Result<ParsedTelemetry>;
}
Expand description

Trait for parsing OTLP data from different formats

Required Methods§

Source

fn parse_file(&self, path: &Path) -> Result<ParsedTelemetry>

Parse OTLP data from a file

Source

fn parse_bytes(&self, data: &[u8]) -> Result<ParsedTelemetry>

Parse OTLP data from bytes

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§