Skip to content

Commit 46f5a0a

Browse files
author
Ariel Ben-Yehuda
committed
fix: load agent metadata even for aws-metadata-no-defaults
1 parent b63ec0c commit 46f5a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/profiler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,9 +587,9 @@ async fn profiler_tick<E: ProfilerEngine>(
587587
// the constructor. See the struct comments for why this is.
588588
// This code runs at most once.
589589
if agent_metadata.is_none() {
590-
#[cfg(feature = "aws-metadata")]
590+
#[cfg(feature = "aws-metadata-no-defaults")]
591591
let md = crate::metadata::aws::load_agent_metadata().await?;
592-
#[cfg(not(feature = "aws-metadata"))]
592+
#[cfg(not(feature = "aws-metadata-no-defaults"))]
593593
let md = crate::metadata::AgentMetadata::Other;
594594
tracing::debug!("loaded metadata");
595595
agent_metadata.replace(md);

0 commit comments

Comments
 (0)