Skip to content

Commit

Permalink
Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Aug 1, 2024
1 parent 0a7b27e commit ee19183
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions core/lib/vlog/src/opentelemetry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ impl OpenTelemetry {
where
S: tracing::Subscriber + for<'span> LookupSpan<'span> + Send + Sync,
{
let Some(logging_endpoint) = self.logging_endpoint.clone() else {
return None;
};

let logging_endpoint = self.logging_endpoint.clone()?;
let resource = self.service.clone().into_otlp_resource();

let exporter = opentelemetry_otlp::new_exporter()
Expand Down Expand Up @@ -195,9 +192,7 @@ impl OpenTelemetry {
where
S: tracing::Subscriber + for<'span> LookupSpan<'span> + Send + Sync,
{
let Some(tracing_endpoint) = self.tracing_endpoint.clone() else {
return None;
};
let tracing_endpoint = self.tracing_endpoint.clone()?;
// `otel::tracing` should be a level info to emit opentelemetry trace & span
// `otel` set to debug to log detected resources, configuration read and inferred
let filter = self
Expand Down

0 comments on commit ee19183

Please sign in to comment.