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: StringYour 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§
Source§impl Default for HighlightConfig
impl Default for HighlightConfig
Source§fn default() -> HighlightConfig
fn default() -> HighlightConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for HighlightConfig
impl !UnwindSafe for HighlightConfig
impl Freeze for HighlightConfig
impl Send for HighlightConfig
impl Sync for HighlightConfig
impl Unpin for HighlightConfig
impl UnsafeUnpin 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
impl<T> ErasedDestructor for Twhere
T: 'static,
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