garrison 0.7.2

Garrison - 面向 Rust 生态的一站式身份认证鉴权框架
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Copyright (c) 2026 Kirky.X. All rights reserved.
//! See LICENSE for full license text.

//! `GarrisonOtelError` 转换实现(从 mod.rs 迁移,spec R-L7-003)。

#[cfg(feature = "observability-otlp")]
use super::GarrisonOtelError;

#[cfg(feature = "observability-otlp")]
impl From<opentelemetry_otlp::ExporterBuildError> for GarrisonOtelError {
    fn from(e: opentelemetry_otlp::ExporterBuildError) -> Self {
        Self::Exporter(e.to_string())
    }
}