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()
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;
.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()