Skip to content

Commit

Permalink
update span namespace for azure spring apps and google cloud run func…
Browse files Browse the repository at this point in the history
…tions v1 (#711)
  • Loading branch information
duncanpharvey authored Nov 8, 2024
1 parent 573e678 commit 85c32c8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions trace-utils/src/trace_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,23 +504,21 @@ pub fn enrich_span_with_mini_agent_metadata(
) {
if let Some(azure_spring_app_hostname) = &mini_agent_metadata.azure_spring_app_hostname {
span.meta.insert(
"azurespringapp.hostname".to_string(),
"asa.hostname".to_string(),
azure_spring_app_hostname.to_string(),
);
}
if let Some(azure_spring_app_name) = &mini_agent_metadata.azure_spring_app_name {
span.meta.insert(
"azurespringapp.name".to_string(),
azure_spring_app_name.to_string(),
);
span.meta
.insert("asa.name".to_string(), azure_spring_app_name.to_string());
}
if let Some(gcp_project_id) = &mini_agent_metadata.gcp_project_id {
span.meta
.insert("project_id".to_string(), gcp_project_id.to_string());
.insert("gcrfx.project_id".to_string(), gcp_project_id.to_string());
}
if let Some(gcp_region) = &mini_agent_metadata.gcp_region {
span.meta
.insert("location".to_string(), gcp_region.to_string());
.insert("gcrfx.location".to_string(), gcp_region.to_string());
}
if let Some(mini_agent_version) = &mini_agent_metadata.version {
span.meta.insert(
Expand Down

0 comments on commit 85c32c8

Please sign in to comment.