Skip to content

Commit ddd6768

Browse files
[release-1.26] fix istio_build metric (#1535)
* fix istio_build metric * fmt --------- Co-authored-by: zirain <zirain2009@gmail.com>
1 parent 2f60195 commit ddd6768

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/version.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ impl BuildInfo {
4545
build_profile: BUILD_RUST_PROFILE.to_string(),
4646
build_status: BUILD_STATUS.to_string(),
4747
git_tag: BUILD_TAG.to_string(),
48-
istio_version: env::var("ISTIO_VERSION").unwrap_or_else(|_| "unknown".to_string()),
48+
istio_version: env::var("ISTIO_META_ISTIO_VERSION")
49+
.unwrap_or_else(|_| "unknown".to_string()),
4950
}
5051
}
5152
}

0 commit comments

Comments
 (0)