Crate otlp_arrow_library

Crate otlp_arrow_library 

Source
Expand description

OTLP Arrow Flight Library

A cross-platform Rust library for receiving OpenTelemetry Protocol (OTLP) messages via gRPC and writing them to local files in Arrow IPC Streaming format.

§Features

  • OTLP gRPC reception
  • Arrow IPC file storage
  • Public API for embedded usage
  • Configurable via YAML, environment variables, or programmatic API
  • Optional remote forwarding
  • Mock service for testing

§Example

use otlp_arrow_library::{OtlpLibrary, Config};

let config = Config::default();
let library = OtlpLibrary::new(config).await?;

// Export traces
// library.export_trace(span).await?;

Re-exports§

pub use api::public::OtlpLibrary;
pub use config::AuthConfig;
pub use config::Config;
pub use config::ConfigBuilder;
pub use config::DashboardConfig;
pub use config::ForwardingConfig;
pub use config::ForwardingProtocol;
pub use error::OtlpConfigError;
pub use error::OtlpError;
pub use error::OtlpExportError;
pub use error::OtlpServerError;
pub use mock::service::MockOtlpService;
pub use otlp::OtlpSpanExporter;

Modules§

api
Public API module
config
Configuration module
dashboard
Dashboard HTTP server module
error
Error types for OTLP Arrow Library
mock
Mock service module
otlp
OpenTelemetry Protocol (OTLP) module

Functions§

init_logging
Initialize structured logging