@@ -171,8 +171,10 @@ pub struct ClientOptions {
171
171
/// When automatic session tracking is enabled, a new "user-mode" session
172
172
/// is started at the time of `sentry::init`, and will persist for the
173
173
/// application lifetime.
174
+ #[ cfg( feature = "release-health" ) ]
174
175
pub auto_session_tracking : bool ,
175
176
/// Determine how Sessions are being tracked.
177
+ #[ cfg( feature = "release-health" ) ]
176
178
pub session_mode : SessionMode ,
177
179
/// Border frames which indicate a border from a backtrace to
178
180
/// useless internals. Some are automatically included.
@@ -223,7 +225,8 @@ impl fmt::Debug for ClientOptions {
223
225
224
226
let integrations: Vec < _ > = self . integrations . iter ( ) . map ( |i| i. name ( ) ) . collect ( ) ;
225
227
226
- f. debug_struct ( "ClientOptions" )
228
+ let mut debug_struct = f. debug_struct ( "ClientOptions" ) ;
229
+ debug_struct
227
230
. field ( "dsn" , & self . dsn )
228
231
. field ( "debug" , & self . debug )
229
232
. field ( "release" , & self . release )
@@ -251,9 +254,14 @@ impl fmt::Debug for ClientOptions {
251
254
. field ( "http_proxy" , & self . http_proxy )
252
255
. field ( "https_proxy" , & self . https_proxy )
253
256
. field ( "shutdown_timeout" , & self . shutdown_timeout )
254
- . field ( "accept_invalid_certs" , & self . accept_invalid_certs )
257
+ . field ( "accept_invalid_certs" , & self . accept_invalid_certs ) ;
258
+
259
+ #[ cfg( feature = "release-health" ) ]
260
+ debug_struct
255
261
. field ( "auto_session_tracking" , & self . auto_session_tracking )
256
- . field ( "session_mode" , & self . session_mode )
262
+ . field ( "session_mode" , & self . session_mode ) ;
263
+
264
+ debug_struct
257
265
. field ( "extra_border_frames" , & self . extra_border_frames )
258
266
. field ( "trim_backtraces" , & self . trim_backtraces )
259
267
. field ( "user_agent" , & self . user_agent )
@@ -286,7 +294,9 @@ impl Default for ClientOptions {
286
294
https_proxy : None ,
287
295
shutdown_timeout : Duration :: from_secs ( 2 ) ,
288
296
accept_invalid_certs : false ,
297
+ #[ cfg( feature = "release-health" ) ]
289
298
auto_session_tracking : false ,
299
+ #[ cfg( feature = "release-health" ) ]
290
300
session_mode : SessionMode :: Application ,
291
301
extra_border_frames : vec ! [ ] ,
292
302
trim_backtraces : true ,
0 commit comments