pub mod boundaries;
pub mod broker;
mod conversions;
pub mod data;
pub mod database;
mod envelope;
mod error;
mod failure;
pub mod ml;
pub mod network;
pub mod observability;
#[cfg(feature = "opentelemetry")]
pub mod opentelemetry_integration;
pub mod protocol;
pub mod redaction;
pub mod schema;
#[cfg(feature = "sentry")]
pub mod sentry_integration;
pub mod trace_context;
#[cfg(feature = "tracing")]
pub mod tracing_integration;
pub mod transformation;
pub use boundaries::{
BoundaryContextError, BrokerContext, BrokerContextOptions, BrokerOperation, HttpContext,
OrchestratorContext, OrchestratorContextOptions, WorkerContext, broker_context_from_message,
http_context_from_request, orchestrator_context_from_step, worker_context_from_task,
};
pub use broker::{
BrokerConnectionError, BrokerTimeoutError, MessageAcknowledgementError, MessageConsumeError,
MessagePosition, MessagePublishError,
};
pub use data::{
DataFormatError, DataLoadingError, DataValidationError, MissingColumnError, MissingDataError,
SchemaMismatchError,
};
pub use database::{DatabaseConnectionError, QueryExecutionError, TransactionError};
pub use envelope::ErrorEnvelope;
pub use error::DataError;
pub use failure::{FailureKind, FailureMetadata, InvalidFailureMetadata};
pub use ml::{
ConvergenceError, CrossValidationError, HyperparameterError, ModelEvaluationError,
ModelInferenceError, ModelTrainingError, PredictionError, TrainingTimeoutError,
};
pub use network::{ConnectionTimeoutError, HostUnreachableError, ProtocolError};
pub use observability::{
InvalidOperationContext, ObservabilityEvent, OperationContext, OperationContextBuilder,
};
#[cfg(feature = "opentelemetry")]
pub use opentelemetry_integration::{exception_to_otel_attributes, record_otel_exception};
pub use protocol::{
CycleRecord, ENVELOPE_SCHEMA_ID, ENVELOPE_SCHEMA_VERSION, EnvelopeNode, EnvelopeNodeKind,
ExceptionRecord, TruncationMarker,
};
pub use redaction::{
fingerprint, redact_if_url, redact_secret, redact_url, redact_urls_in_text, remove_secret,
};
pub use schema::{DtypeMismatchError, IndexAlignmentError, MergeKeyError, SchemaEvolutionError};
#[cfg(feature = "sentry")]
pub use sentry_integration::enrich_sentry_event;
pub use trace_context::{
TraceContextConflict, W3CTraceContext, parse_traceparent, trace_context_from_mapping,
};
#[cfg(feature = "tracing")]
pub use tracing_integration::emit_error;
pub use transformation::{
DataNormalizationError, DataTransformationError, FeatureEngineeringError,
};
pub type Result<T> = std::result::Result<T, DataError>;