Skip to content

Commit 75a3409

Browse files
committed
history http/https fix, logging
1 parent 28f71a5 commit 75a3409

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/agent/services/lazer_exporter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ struct SymbolResponse {
252252

253253
async fn fetch_symbols(history_url: &Url) -> Result<Vec<SymbolResponse>> {
254254
let mut url = history_url.clone();
255-
url.set_scheme("http").map_err(|_| anyhow!("invalid url"))?;
256255
url.set_path("/history/v1/symbols");
257256
let client = Client::new();
258257
let response = client.get(url).send().await?.error_for_status()?;
@@ -369,6 +368,8 @@ mod lazer_exporter {
369368
S: Send + Sync + 'static,
370369
{
371370
let mut lazer_symbols = get_lazer_symbol_map(&config.history_url).await;
371+
tracing::info!("Retrieved {} Lazer feeds with hermes symbols from symbols endpoint: {}", lazer_symbols.len(), &config.history_url);
372+
372373
let mut publish_interval = tokio::time::interval(config.publish_interval_duration);
373374
let mut symbol_fetch_interval =
374375
tokio::time::interval(config.symbol_fetch_interval_duration);

0 commit comments

Comments
 (0)