pub struct MtlsMaterial {
pub client_cert_chain_pem: Vec<u8>,
pub client_key_pem: Vec<u8>,
pub trust_bundle_pem: Vec<u8>,
}Expand description
mTLS material for the gRPC transport. Requires the grpc-mtls feature.
PEM-encoded. The CA is used to verify the collector’s server cert; the client cert + key authenticate this workload to the collector.
Pass it to TelemetryBuilder::with_mtls for a fixed snapshot, or wrap it
in StaticCertSource. For SVID-style rotation implement CertSource
(service-kit does, on its SvidWatcher) and use
TelemetryBuilder::with_mtls_source.
Fields§
§client_cert_chain_pem: Vec<u8>PEM-encoded client certificate chain (leaf + intermediates).
client_key_pem: Vec<u8>PEM-encoded client private key matching client_cert_chain_pem.
trust_bundle_pem: Vec<u8>PEM-encoded trust bundle — collector cert must chain to one of these.
Trait Implementations§
Source§impl Clone for MtlsMaterial
impl Clone for MtlsMaterial
Auto Trait Implementations§
impl Freeze for MtlsMaterial
impl RefUnwindSafe for MtlsMaterial
impl Send for MtlsMaterial
impl Sync for MtlsMaterial
impl Unpin for MtlsMaterial
impl UnsafeUnpin for MtlsMaterial
impl UnwindSafe for MtlsMaterial
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request