opentracingrust_zipkin/tracer/
error.rs

1use data_encoding;
2use thrift;
3
4use opentracingrust::Error;
5
6
7pub fn data_encoding_error(error: data_encoding::DecodeError) -> Error {
8    Error::Msg(format!("{:?}", error))
9}
10
11pub fn thrift_error(error: thrift::Error) -> Error {
12    Error::Msg(format!("{:?}", error))
13}