#[non_exhaustive]pub enum OtelExporterType {
OtlpHttp,
File,
}Expand description
Backend exporter for the CLI’s OpenTelemetry pipeline.
Maps to the COPILOT_OTEL_EXPORTER_TYPE environment variable on the
spawned CLI process. Wire values are "otlp-http" and "file".
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OtlpHttp
Export via OTLP HTTP to the endpoint configured by
TelemetryConfig::otlp_endpoint.
File
Export to a JSON-lines file at the path configured by
TelemetryConfig::file_path.
Implementations§
Trait Implementations§
Source§impl Clone for OtelExporterType
impl Clone for OtelExporterType
Source§fn clone(&self) -> OtelExporterType
fn clone(&self) -> OtelExporterType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OtelExporterType
impl Debug for OtelExporterType
Source§impl<'de> Deserialize<'de> for OtelExporterType
impl<'de> Deserialize<'de> for OtelExporterType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OtelExporterType
impl PartialEq for OtelExporterType
Source§fn eq(&self, other: &OtelExporterType) -> bool
fn eq(&self, other: &OtelExporterType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OtelExporterType
impl Serialize for OtelExporterType
impl Copy for OtelExporterType
impl Eq for OtelExporterType
impl StructuralPartialEq for OtelExporterType
Auto Trait Implementations§
impl Freeze for OtelExporterType
impl RefUnwindSafe for OtelExporterType
impl Send for OtelExporterType
impl Sync for OtelExporterType
impl Unpin for OtelExporterType
impl UnsafeUnpin for OtelExporterType
impl UnwindSafe for OtelExporterType
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