@@ -12,8 +12,6 @@ pub const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
12
12
/// The 8 character short SHA of the latest commit.
13
13
pub const VERGEN_GIT_SHA : & str = env ! ( "VERGEN_GIT_SHA_SHORT" ) ;
14
14
15
- /// The build timestamp.
16
- pub const VERGEN_BUILD_TIMESTAMP : & str = env ! ( "VERGEN_BUILD_TIMESTAMP" ) ;
17
15
18
16
/// The target triple.
19
17
pub const VERGEN_CARGO_TARGET_TRIPLE : & str = env ! ( "VERGEN_CARGO_TARGET_TRIPLE" ) ;
@@ -26,7 +24,6 @@ pub const BUILD_PROFILE_NAME: &str = env!("OP_RBUILDER_BUILD_PROFILE");
26
24
27
25
pub const VERSION : VersionInfo = VersionInfo {
28
26
version : CARGO_PKG_VERSION ,
29
- build_timestamp : VERGEN_BUILD_TIMESTAMP ,
30
27
cargo_features : VERGEN_CARGO_FEATURES ,
31
28
git_sha : VERGEN_GIT_SHA ,
32
29
target_triple : VERGEN_CARGO_TARGET_TRIPLE ,
@@ -172,8 +169,6 @@ pub fn record_flag_gauge_metrics(builder_args: &OpRbuilderArgs) {
172
169
pub struct VersionInfo {
173
170
/// The version of the application.
174
171
pub version : & ' static str ,
175
- /// The build timestamp of the application.
176
- pub build_timestamp : & ' static str ,
177
172
/// The cargo features enabled for the build.
178
173
pub cargo_features : & ' static str ,
179
174
/// The Git SHA of the build.
@@ -187,9 +182,8 @@ pub struct VersionInfo {
187
182
impl VersionInfo {
188
183
/// This exposes reth's version information over prometheus.
189
184
pub fn register_version_metrics ( & self ) {
190
- let labels: [ ( & str , & str ) ; 6 ] = [
185
+ let labels: [ ( & str , & str ) ; 5 ] = [
191
186
( "version" , self . version ) ,
192
- ( "build_timestamp" , self . build_timestamp ) ,
193
187
( "cargo_features" , self . cargo_features ) ,
194
188
( "git_sha" , self . git_sha ) ,
195
189
( "target_triple" , self . target_triple ) ,
0 commit comments