Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuCoder committed Jul 6, 2024
1 parent b1be9c4 commit c0863b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exes/rest/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use lazy_static::lazy_static;
lazy_static! {
static ref METER_NAME: &'static str = "";
static ref REQUESTS: Counter<u64> = {
global::meter(&METER_NAME)
global::meter(**&METER_NAME)
.u64_counter("rest.http_requests_total")
.with_description("Amount of requests processed by the rest reverse proxy")
.init()
Expand Down
7 changes: 5 additions & 2 deletions libs/leash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use serde::de::DeserializeOwned;
use shared::config::Settings;
use std::str::FromStr;
use std::{future::Future, pin::Pin};
use tokio::runtime::Handle;
use tokio::sync::oneshot;
use tracing::{error, info, trace};
use tracing_subscriber::filter::Directive;
Expand Down Expand Up @@ -52,7 +51,11 @@ where
.as_ref()
.and_then(|f| f.metrics.clone())
{
let otlp_exporter = opentelemetry_otlp::new_exporter().tonic();
let otlp_exporter = opentelemetry_otlp::new_exporter()
.tonic()
.with_endpoint(&meter_config.endpoint)
.with_protocol(meter_config.protocol)
.with_timeout(meter_config.timeout);
// Then pass it into pipeline builder
let _ = opentelemetry_otlp::new_pipeline()
.tracing()
Expand Down

0 comments on commit c0863b9

Please sign in to comment.