@@ -18,22 +18,27 @@ pub mod api {
18
18
#[ non_exhaustive]
19
19
pub struct ConnectionMeta {
20
20
pub id : u64 ,
21
+ pub timestamp : Timestamp ,
21
22
}
22
23
#[ cfg( any( test, feature = "testing" ) ) ]
23
24
impl crate :: event:: snapshot:: Fmt for ConnectionMeta {
24
25
fn fmt ( & self , fmt : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
25
26
let mut fmt = fmt. debug_struct ( "ConnectionMeta" ) ;
26
27
fmt. field ( "id" , & self . id ) ;
28
+ fmt. field ( "timestamp" , & self . timestamp ) ;
27
29
fmt. finish ( )
28
30
}
29
31
}
30
32
#[ derive( Clone , Debug ) ]
31
33
#[ non_exhaustive]
32
- pub struct EndpointMeta { }
34
+ pub struct EndpointMeta {
35
+ pub timestamp : Timestamp ,
36
+ }
33
37
#[ cfg( any( test, feature = "testing" ) ) ]
34
38
impl crate :: event:: snapshot:: Fmt for EndpointMeta {
35
39
fn fmt ( & self , fmt : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
36
40
let mut fmt = fmt. debug_struct ( "EndpointMeta" ) ;
41
+ fmt. field ( "timestamp" , & self . timestamp ) ;
37
42
fmt. finish ( )
38
43
}
39
44
}
@@ -133,13 +138,15 @@ pub mod api {
133
138
pub capacity : usize ,
134
139
#[ doc = " The number of entries in the map" ]
135
140
pub entries : usize ,
141
+ pub lifetime : core:: time:: Duration ,
136
142
}
137
143
#[ cfg( any( test, feature = "testing" ) ) ]
138
144
impl crate :: event:: snapshot:: Fmt for PathSecretMapUninitialized {
139
145
fn fmt ( & self , fmt : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
140
146
let mut fmt = fmt. debug_struct ( "PathSecretMapUninitialized" ) ;
141
147
fmt. field ( "capacity" , & self . capacity ) ;
142
148
fmt. field ( "entries" , & self . entries ) ;
149
+ fmt. field ( "lifetime" , & self . lifetime ) ;
143
150
fmt. finish ( )
144
151
}
145
152
}
@@ -637,8 +644,12 @@ pub mod tracing {
637
644
event : & api:: PathSecretMapUninitialized ,
638
645
) {
639
646
let parent = self . parent ( meta) ;
640
- let api:: PathSecretMapUninitialized { capacity, entries } = event;
641
- tracing :: event ! ( target : "path_secret_map_uninitialized" , parent : parent , tracing :: Level :: DEBUG , capacity = tracing :: field :: debug ( capacity) , entries = tracing :: field :: debug ( entries) ) ;
647
+ let api:: PathSecretMapUninitialized {
648
+ capacity,
649
+ entries,
650
+ lifetime,
651
+ } = event;
652
+ tracing :: event ! ( target : "path_secret_map_uninitialized" , parent : parent , tracing :: Level :: DEBUG , capacity = tracing :: field :: debug ( capacity) , entries = tracing :: field :: debug ( entries) , lifetime = tracing :: field :: debug ( lifetime) ) ;
642
653
}
643
654
#[ inline]
644
655
fn on_path_secret_map_background_handshake_requested (
@@ -921,23 +932,29 @@ pub mod builder {
921
932
#[ derive( Clone , Debug ) ]
922
933
pub struct ConnectionMeta {
923
934
pub id : u64 ,
935
+ pub timestamp : Timestamp ,
924
936
}
925
937
impl IntoEvent < api:: ConnectionMeta > for ConnectionMeta {
926
938
#[ inline]
927
939
fn into_event ( self ) -> api:: ConnectionMeta {
928
- let ConnectionMeta { id } = self ;
940
+ let ConnectionMeta { id, timestamp } = self ;
929
941
api:: ConnectionMeta {
930
942
id : id. into_event ( ) ,
943
+ timestamp : timestamp. into_event ( ) ,
931
944
}
932
945
}
933
946
}
934
947
#[ derive( Clone , Debug ) ]
935
- pub struct EndpointMeta { }
948
+ pub struct EndpointMeta {
949
+ pub timestamp : Timestamp ,
950
+ }
936
951
impl IntoEvent < api:: EndpointMeta > for EndpointMeta {
937
952
#[ inline]
938
953
fn into_event ( self ) -> api:: EndpointMeta {
939
- let EndpointMeta { } = self ;
940
- api:: EndpointMeta { }
954
+ let EndpointMeta { timestamp } = self ;
955
+ api:: EndpointMeta {
956
+ timestamp : timestamp. into_event ( ) ,
957
+ }
941
958
}
942
959
}
943
960
#[ derive( Clone , Debug ) ]
@@ -1030,14 +1047,20 @@ pub mod builder {
1030
1047
pub capacity : usize ,
1031
1048
#[ doc = " The number of entries in the map" ]
1032
1049
pub entries : usize ,
1050
+ pub lifetime : core:: time:: Duration ,
1033
1051
}
1034
1052
impl IntoEvent < api:: PathSecretMapUninitialized > for PathSecretMapUninitialized {
1035
1053
#[ inline]
1036
1054
fn into_event ( self ) -> api:: PathSecretMapUninitialized {
1037
- let PathSecretMapUninitialized { capacity, entries } = self ;
1055
+ let PathSecretMapUninitialized {
1056
+ capacity,
1057
+ entries,
1058
+ lifetime,
1059
+ } = self ;
1038
1060
api:: PathSecretMapUninitialized {
1039
1061
capacity : capacity. into_event ( ) ,
1040
1062
entries : entries. into_event ( ) ,
1063
+ lifetime : lifetime. into_event ( ) ,
1041
1064
}
1042
1065
}
1043
1066
}
0 commit comments