@@ -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" ) ;
@@ -36,13 +34,10 @@ pub const LONG_VERSION: &str = concat!(
36
34
env!( "OP_RBUILDER_LONG_VERSION_2" ) ,
37
35
"\n " ,
38
36
env!( "OP_RBUILDER_LONG_VERSION_3" ) ,
39
- "\n " ,
40
- env!( "OP_RBUILDER_LONG_VERSION_4" ) ,
41
37
) ;
42
38
43
39
pub const VERSION : VersionInfo = VersionInfo {
44
40
version : CARGO_PKG_VERSION ,
45
- build_timestamp : VERGEN_BUILD_TIMESTAMP ,
46
41
cargo_features : VERGEN_CARGO_FEATURES ,
47
42
git_sha : VERGEN_GIT_SHA ,
48
43
target_triple : VERGEN_CARGO_TARGET_TRIPLE ,
@@ -188,8 +183,6 @@ pub fn record_flag_gauge_metrics(builder_args: &OpRbuilderArgs) {
188
183
pub struct VersionInfo {
189
184
/// The version of the application.
190
185
pub version : & ' static str ,
191
- /// The build timestamp of the application.
192
- pub build_timestamp : & ' static str ,
193
186
/// The cargo features enabled for the build.
194
187
pub cargo_features : & ' static str ,
195
188
/// The Git SHA of the build.
@@ -203,9 +196,8 @@ pub struct VersionInfo {
203
196
impl VersionInfo {
204
197
/// This exposes reth's version information over prometheus.
205
198
pub fn register_version_metrics ( & self ) {
206
- let labels: [ ( & str , & str ) ; 6 ] = [
199
+ let labels: [ ( & str , & str ) ; 5 ] = [
207
200
( "version" , self . version ) ,
208
- ( "build_timestamp" , self . build_timestamp ) ,
209
201
( "cargo_features" , self . cargo_features ) ,
210
202
( "git_sha" , self . git_sha ) ,
211
203
( "target_triple" , self . target_triple ) ,
0 commit comments