Struct highlightio::HighlightConfig
source · pub struct HighlightConfig {
pub project_id: String,
pub service_name: Option<String>,
pub service_version: Option<String>,
pub logger: Box<dyn Log>,
}
Fields§
§project_id: String
Your highlight.io Project ID
service_name: Option<String>
The name of your app.
service_version: Option<String>
The version of your app. We recommend setting this to the most recent deploy SHA of your app.
logger: Box<dyn Log>
The current logger (implements log::Log).
By default, Highlight will initialize an env_logger for you, but if you want to provide a custom logger, you can specify it here. If you provide a custom logger, do not make it global, as Highlight will do it for you.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HighlightConfig
impl Send for HighlightConfig
impl Sync for HighlightConfig
impl Unpin for HighlightConfig
impl !UnwindSafe for HighlightConfig
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
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