temp tracing
test-org/prometheus-exporter/pipeline/pr-rc This commit looks good Details

feature/1126
prplV 2025-03-07 12:14:45 +03:00
parent 5c1a3a6875
commit 99c8aad930
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ use crate::structs::v3::PrometheusMetrics;
use prometheus::{ Encoder, Gauge, Registry, TextEncoder};
use std::sync::{ Arc, MutexGuard };
use crate::AppState;
use tracing::{ error, info, warn };
use tracing::{ debug, error, info, warn };
use crate::metrics::{MetricsProcesser, MetricsValueType};
/// An `Update` endpoint
@ -30,6 +30,7 @@ pub async fn update_metrics(
let endpoint = &request.endpoint_name;
for i in request.metrics {
debug!("Processing metric: {:?}", &i);
let metric_name = format!("{}_{}_{}", service, endpoint, &i.id);
match MetricsProcesser::get_type_of_value(&i) {
MetricsValueType::Array |